Play the thief sound even if you only lost bonus points
This commit is contained in:
parent
c4dbdcb650
commit
564d247657
@ -730,12 +730,16 @@ const TILE_TYPES = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (level.take_all_tools_from_actor(other) && other === level.player) {
|
let lost = level.take_all_tools_from_actor(other);
|
||||||
level.sfx.play_once('thief', me.cell);
|
|
||||||
}
|
|
||||||
if (other.type.is_player) {
|
if (other.type.is_player) {
|
||||||
|
if (level.bonus_points > 0) {
|
||||||
|
lost = true;
|
||||||
|
}
|
||||||
level.adjust_bonus(0, 0.5);
|
level.adjust_bonus(0, 0.5);
|
||||||
}
|
}
|
||||||
|
if (lost && other === level.player) {
|
||||||
|
level.sfx.play_once('thief', me.cell);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
thief_keys: {
|
thief_keys: {
|
||||||
@ -747,12 +751,16 @@ const TILE_TYPES = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (level.take_all_keys_from_actor(other) && other === level.player) {
|
let lost = level.take_all_keys_from_actor(other);
|
||||||
level.sfx.play_once('thief', me.cell);
|
|
||||||
}
|
|
||||||
if (other.type.is_player) {
|
if (other.type.is_player) {
|
||||||
|
if (level.bonus_points > 0) {
|
||||||
|
lost = true;
|
||||||
|
}
|
||||||
level.adjust_bonus(0, 0.5);
|
level.adjust_bonus(0, 0.5);
|
||||||
}
|
}
|
||||||
|
if (lost && other === level.player) {
|
||||||
|
level.sfx.play_once('thief', me.cell);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
no_sign: {
|
no_sign: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user