Skip to content

Commit

Permalink
Effect turns count now added instead of replaced
Browse files Browse the repository at this point in the history
  • Loading branch information
msx80 committed Jul 6, 2024
1 parent 63dee92 commit be4fc52
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ public boolean isEquipped(Item item) {


public void addEffect(Effect e) {
effects.put(e, e.turns);
effects.put(e, effects.getOrDefault(e,0)+e.turns);
ricalcola();

}


Expand Down

0 comments on commit be4fc52

Please sign in to comment.