From e39d0c7ea01325f39113ac74d8dd65710ebdb59f Mon Sep 17 00:00:00 2001 From: Chris Weed Date: Sun, 14 Jul 2024 16:15:06 -0500 Subject: [PATCH] Readjusted health --- island.ts | 4 ++++ pirate.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/island.ts b/island.ts index 59a9d6d..33ca001 100644 --- a/island.ts +++ b/island.ts @@ -186,6 +186,10 @@ namespace Island { setTimeout(() => { // Add the islands riches to the boat! TreasureStats.updateTreasure({ onBoat: _island.riches, pulledFromIsland: _island.id }) + // Empty the island of it's treasure and set it's risk to 0 since it's ours now + _island.riches = 0 + _island.risk = 0 + _island.ownedBy = 'players' }, openTreasureAnimation.length * 100) setTimeout(() => { diff --git a/pirate.ts b/pirate.ts index c575421..12fab29 100644 --- a/pirate.ts +++ b/pirate.ts @@ -58,7 +58,7 @@ class Pirate { topBoundary: number, statLocation: number[] }) { - this.health = 1 + this.health = 3 this.facing = 'right' this._topBoundary = topBoundary this._statLocation = statLocation