From d6059af2b199abc2240d20b66d7008dbb848b570 Mon Sep 17 00:00:00 2001 From: Michael Townsend Date: Thu, 15 Jun 2023 16:08:38 -0400 Subject: [PATCH] - put alien allow in the outfitting options - prevent queueing up multiple explosions from the unstable automaton --- script/events.js | 3 +++ script/path.js | 1 + 2 files changed, 4 insertions(+) diff --git a/script/events.js b/script/events.js index cd4cc50..19c1d17 100644 --- a/script/events.js +++ b/script/events.js @@ -83,6 +83,7 @@ var Events = { startCombat: function(scene) { Engine.event('game event', 'combat'); Events.fought = false; + Events.won = false; var desc = $('#description', Events.eventPanel()); $('
').text(scene.notification).appendTo(desc); @@ -567,6 +568,7 @@ var Events = { if(enemyHp <= 0 && !Events.won) { // Success! + Events.won = true; if (explosion) { Events.explode(enemy, $('#wanderer'), explosion); } @@ -601,6 +603,7 @@ var Events = { Events.checkPlayerDeath(); } else if(hp <= 0 && !Events.won) { + Events.won = true; Events.winFight(); } Events.updateFighterDiv(target); diff --git a/script/path.js b/script/path.js index a102a76..19283ef 100644 --- a/script/path.js +++ b/script/path.js @@ -173,6 +173,7 @@ var Path = { 'energy cell': {type: 'tool', desc: _('emits a soft red glow') }, 'bayonet': {type: 'weapon' }, 'charm': {type: 'tool'}, + 'alien alloy': { type: 'tool' }, 'medicine': {type: 'tool', desc: _('restores') + ' ' + World.MEDS_HEAL + ' ' + _('hp') } }, Room.Craftables, Fabricator.Craftables);