mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
Added error log for die roll
This commit is contained in:
parent
de202ac6cc
commit
c4dd85be53
@ -1,5 +1,6 @@
|
|||||||
#include "LegoDieRoll.h"
|
#include "LegoDieRoll.h"
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
|
#include "dLogger.h"
|
||||||
#include "GameMessages.h"
|
#include "GameMessages.h"
|
||||||
|
|
||||||
void LegoDieRoll::OnStartup(Entity* self) {
|
void LegoDieRoll::OnStartup(Entity* self) {
|
||||||
@ -35,6 +36,7 @@ void LegoDieRoll::OnTimerDone(Entity* self, std::string timerName) {
|
|||||||
GameMessages::SendPlayAnimation(self, u"roll-die-6");
|
GameMessages::SendPlayAnimation(self, u"roll-die-6");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Game::logger->Log("LegoDieRoll", "Invalid animation: roll-die-%i\n", dieRoll);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user