Skip to content

Commit

Permalink
Using boat cash to determine pirates
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikketer committed Jul 17, 2024
1 parent da744ec commit a342b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Travel {

export function init() {
const oddsOfBoatBattle = 70
const result = Math.min(TreasureStats.getTotal() / 1200, oddsOfBoatBattle / 100) * 100
const result = Math.min(TreasureStats.currentTreasure.onBoat / 300, oddsOfBoatBattle / 100) * 100

scene.setBackgroundColor(0)
scene.setBackgroundImage(assets.image`empty`)
Expand Down

0 comments on commit a342b07

Please sign in to comment.