From 87d795296070d418d0ab3d662dc26aad2682f91a Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 7 May 2021 18:54:56 -0600 Subject: [PATCH] Fix lilypad splash duration being slightly longer than expected --- js/game.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/game.js b/js/game.js index d723a25..f57a030 100644 --- a/js/game.js +++ b/js/game.js @@ -2730,6 +2730,11 @@ export class Level extends LevelInterface { } let tile = new Tile(type); this._init_animation(tile); + // Note that newly-spawned animations don't have their cooldown decremented right away, and + // in the case of lilypads, this has gameplay implications. I can't just not tick them down + // or the renderer will break, so cheat by extending the duration by a tic + this._set_tile_prop(tile, 'movement_speed', tile.movement_speed + 3); + this._set_tile_prop(tile, 'movement_cooldown', tile.movement_cooldown + 3); this.add_tile(tile, cell); this.add_actor(tile); }