Skip to content

Commit

Permalink
fix #9: Strife - multiplier doesn't work on maps in a hub
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaulwurff committed Sep 20, 2022
1 parent d8477aa commit 2b45908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion issues/board/Kanban.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ kanban-plugin: basic
## to do

- [ ] [[Add a MaxMonsterCount option]]
- [ ] [[Strife - multiplier doesn't work on maps in a hub]]
- [ ] [[individual sliders for each monster class]]


Expand All @@ -17,6 +16,7 @@ kanban-plugin: basic

## done

- [ ] [[Strife - multiplier doesn't work on maps in a hub]]
- [ ] [[add a check to not multiply non-counting monsters]]


Expand Down
6 changes: 3 additions & 3 deletions zscript/x5_EventHandler.zs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ class x5_EventHandler : EventHandler
int multiplier = x5_multiplier;
int timeToAct = (multiplier >= 100) ? BEFORE_RANDOMIZED : AFTER_RANDOMIZED;

if (level.time == AFTER_RANDOMIZED + 1 && multiplier > 100)
if (level.maptime == AFTER_RANDOMIZED + 1 && multiplier > 100)
nudgeCloned();

if (level.time == TIME_TO_PRINT)
if (level.maptime == TIME_TO_PRINT)
{
x5_Density.printMonsterDensity();
return;
}
else if (level.time != timeToAct)
else if (level.maptime != timeToAct)
{
return;
}
Expand Down

0 comments on commit 2b45908

Please sign in to comment.