Various Fixes.

generified the Worldboss module; removed the spammy-section as of currently, will be readded at a later stage.
This commit is contained in:
2022-06-24 18:10:45 +02:00
parent e942ac43fa
commit 84a5933490
20 changed files with 274 additions and 176 deletions
+4 -5
View File
@@ -5,7 +5,7 @@ from core.command_param_types import Any, Const, Time, Options
from core.decorators import instance, command
from core.igncore import IgnCore
from core.registry import Registry
from modules.standard.news.worldboss_controller import WorldBossController
from modules.standard.news.worldboss_controller import WorldBossController, TimerObj
class TimerTime(Time):
@@ -83,10 +83,9 @@ class TimerController:
blob = ""
if self.worldboss.timer_data:
blob += "<header>Automatic Timers</header>\n"
for row in self.worldboss.timer_data:
msg, cnt = getmsg(self.worldboss.show_user(row))
blob += msg
count += cnt
blob += self.worldboss.getWBTimer()
x: TimerObj = None
count += len([x for x in self.worldboss.timer_data if (x.time+x.get_respawn_timer()) < x.getTime()])
blob += "\n\n<header>Manual Timers</header>\n"
for timer in data:
repeats = ""