Add a new experimental tile: sand
This commit is contained in:
parent
6b0bb9cb3d
commit
1c5f63b61b
@ -1261,6 +1261,7 @@ const EDITOR_PALETTE = [{
|
||||
'gate_blue',
|
||||
'gate_yellow',
|
||||
'gate_green',
|
||||
'sand',
|
||||
],
|
||||
}];
|
||||
|
||||
|
||||
@ -893,6 +893,8 @@ export const LL_TILESET_LAYOUT = Object.assign({}, CC2_TILESET_LAYOUT, {
|
||||
gate_green: [3, 39],
|
||||
|
||||
skeleton_key: [4, 39],
|
||||
|
||||
sand: [10, 40],
|
||||
});
|
||||
|
||||
export class Tileset {
|
||||
|
||||
@ -612,6 +612,11 @@ const TILE_TYPES = {
|
||||
! other.has_item('hiking_boots'));
|
||||
},
|
||||
},
|
||||
sand: {
|
||||
draw_layer: DRAW_LAYERS.terrain,
|
||||
blocks_collision: COLLISION.block_cc1 | COLLISION.block_cc2,
|
||||
speed_factor: 0.5,
|
||||
},
|
||||
|
||||
// Hazards
|
||||
fire: {
|
||||
@ -2189,6 +2194,7 @@ const TILE_TYPES = {
|
||||
is_item: true,
|
||||
is_tool: true,
|
||||
blocks_collision: COLLISION.block_cc1 | (COLLISION.monster_solid & ~COLLISION.rover),
|
||||
item_ignores: new Set(['sand']),
|
||||
// FIXME uhh these "ignore" that dirt and gravel block us, but they don't ignore the on_arrive, so, uhhhh
|
||||
},
|
||||
// Other tools
|
||||
|
||||
Loading…
Reference in New Issue
Block a user