Skip to content

Commit

Permalink
Readjusted health
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikketer committed Jul 14, 2024
1 parent 8e5fea5 commit e39d0c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions island.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion pirate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e39d0c7

Please sign in to comment.