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