Skip to content

Commit

Permalink
Madness deal damage equals to effect counter
Browse files Browse the repository at this point in the history
  • Loading branch information
msx80 committed Aug 24, 2024
1 parent a290a10 commit 2dc5aa0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class DoorsOfDoom implements Game, GameInterface {
// MUSIC: https://twitter.com/SBieliayev https://www.youtube.com/channel/UCvjkkwGL7g092E1oV7IMffw

private static final int LEVEL_MONSTER_GROWTH = 160; // minimal level at which monsters start to grow
private static final int MADNESS_DAMAGE = 4;
// private static final int MADNESS_DAMAGE = 5;
public static final int WISDOM_DAMAGE = 50;
public static final int EXIT_BONUS = 5000;
public static final int CROWN_POINT = 200;
Expand Down Expand Up @@ -240,8 +240,9 @@ void endTurn() {
}

if (run.pg.hasEffect(Effect.MADNESS)) {
log.add(14, "Your mind deals you ", 6,"" + MADNESS_DAMAGE, 15, " hp!");
run.damage(run.pg, MADNESS_DAMAGE);
int count = run.pg.effects.get(Effect.MADNESS);
log.add(14, "Your mind deals you ", 6,"" + count, 15, " hp!");
run.damage(run.pg, count);
}

run.pg.decEffects();
Expand Down

0 comments on commit 2dc5aa0

Please sign in to comment.