From 2b4590890ba03c0de6132d7dc84ad5e536810c5b Mon Sep 17 00:00:00 2001 From: Alexander Kromm Date: Wed, 21 Sep 2022 00:18:19 +0700 Subject: [PATCH] fix #9: Strife - multiplier doesn't work on maps in a hub --- issues/board/Kanban.md | 2 +- zscript/x5_EventHandler.zs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/issues/board/Kanban.md b/issues/board/Kanban.md index f1ba9c0..f2f9d8b 100644 --- a/issues/board/Kanban.md +++ b/issues/board/Kanban.md @@ -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]] @@ -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]] diff --git a/zscript/x5_EventHandler.zs b/zscript/x5_EventHandler.zs index 78a80a8..c6255a5 100644 --- a/zscript/x5_EventHandler.zs +++ b/zscript/x5_EventHandler.zs @@ -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; }