Skip to content

Commit

Permalink
Fix reward
Browse files Browse the repository at this point in the history
  • Loading branch information
phisn committed May 12, 2024
1 parent c27b04e commit 0bf2d31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-game/src/game/reward/default-reward.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class DefaultGameReward implements Reward {
this.nextLevel = nextFlag(runtime, this.rocket)

this.steps = 0
this.maxSteps = 5000 // ~~ 5 min
this.maxSteps = 10000 // ~~ 5 min
this.hasBeenInCaptureFor = 0
this.stepsSinceCapture = 0
}
Expand All @@ -46,6 +46,7 @@ export class DefaultGameReward implements Reward {
let reward = 0
steps()
++this.steps
++this.stepsSinceCapture

if (this.steps >= this.maxSteps) {
return [-1, true]
Expand Down

0 comments on commit 0bf2d31

Please sign in to comment.