spaceify
This commit is contained in:
parent
2df4dc5829
commit
d675cddafb
12
js/game.js
12
js/game.js
@ -2637,7 +2637,7 @@ export class Level extends LevelInterface {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//only used for glass block atm
|
//only used for glass block atm
|
||||||
if (actor.type.on_death) {
|
if (actor.type.on_death) {
|
||||||
actor.type.on_death(actor, this);
|
actor.type.on_death(actor, this);
|
||||||
}
|
}
|
||||||
@ -2805,11 +2805,11 @@ export class Level extends LevelInterface {
|
|||||||
// to destroy it
|
// to destroy it
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//only used for electrified floor atm
|
//only used for electrified floor atm
|
||||||
if (tile.type.on_death && !tile.type.is_actor) {
|
if (tile.type.on_death && !tile.type.is_actor) {
|
||||||
tile.type.on_death(tile, this);
|
tile.type.on_death(tile, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
let old_type = tile.type;
|
let old_type = tile.type;
|
||||||
let new_type = TILE_TYPES[name];
|
let new_type = TILE_TYPES[name];
|
||||||
|
|||||||
@ -1978,7 +1978,7 @@ const TILE_TYPES = {
|
|||||||
layer: LAYERS.terrain,
|
layer: LAYERS.terrain,
|
||||||
wire_propagation_mode: 'all',
|
wire_propagation_mode: 'all',
|
||||||
on_begin(me, level) {
|
on_begin(me, level) {
|
||||||
level._set_tile_prop(me, 'is_active', false);
|
level._set_tile_prop(me, 'is_active', false);
|
||||||
level._set_tile_prop(me, 'wire_directions', 15);
|
level._set_tile_prop(me, 'wire_directions', 15);
|
||||||
level.recalculate_circuitry_next_wire_phase = true;
|
level.recalculate_circuitry_next_wire_phase = true;
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user