Skip to content

Commit

Permalink
Wingame sequence (exit dungeon)2
Browse files Browse the repository at this point in the history
  • Loading branch information
msx80 committed Aug 22, 2024
1 parent 8dc60b7 commit 9885426
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Run {
public Item lootItem;
public int shake = 0;
public int shakePg = 0;

public boolean exited = false;
public Run() {
pg = new Pg();

Expand Down Expand Up @@ -116,6 +116,7 @@ public long score() {
return level * 10
+ (pg.getInvCount(Item.Diamond) * 100)
+ (pg.getInvCount(Item.Crown) * 1000)
+ (pg.getInvCount(Item.CowardToken) * -15);
+ (pg.getInvCount(Item.CowardToken) * -15)
+ (exited ? DoorsOfDoom.EXIT_BONUS : 0);
}
}

0 comments on commit 9885426

Please sign in to comment.