[Commands] Cleanup #spawnstatus Command. (#2144)

* [Commands] Cleanup #spawnstatus Command.
- Cleanup messages and logic.

* Further cleanup and consolidation, add inline GetTimer() as timer is protected.
This commit is contained in:
Kinglykrab
2022-05-06 19:12:29 -04:00
committed by GitHub
parent 04f3d6286c
commit 8dcc810b43
5 changed files with 127 additions and 117 deletions
+1
View File
@@ -67,6 +67,7 @@ public:
bool NPCPointerValid() { return (npcthis!=nullptr); }
void SetNPCPointer(NPC* n) { npcthis = n; }
void SetNPCPointerNull() { npcthis = nullptr; }
Timer GetTimer() { return timer; }
void SetTimer(uint32 duration) { timer.Start(duration); }
uint32 GetKillCount() { return killcount; }
protected: