From ab9f606371a1df23e9cacbffa0811db7a9e50100 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Sun, 8 Jun 2025 02:16:45 -0300 Subject: more `cract.cc` functions --- src/crplayer.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/crplayer.cc') diff --git a/src/crplayer.cc b/src/crplayer.cc index 3193843..5b87ec8 100644 --- a/src/crplayer.cc +++ b/src/crplayer.cc @@ -45,12 +45,15 @@ void TPlayer::CheckState(void){ State |= 0x04; } - // TODO(fusion): Not sure about this one. - if(this->Skills[SKILL_DRUNK]->TimerValue() > 0 && this->Skills[SKILL_DRUNK]->Get() == 0){ + // TODO(fusion): I think the result from `Get()` here tells whether the + // player has some drunk suppression item equipped? + if(this->Skills[SKILL_DRUNKEN]->TimerValue() > 0 + && this->Skills[SKILL_DRUNKEN]->Get() == 0){ State |= 0x08; } - if(this->Skills[SKILL_MANASHIELD]->TimerValue() > 0 || this->Skills[SKILL_MANASHIELD]->Get() > 0){ + if(this->Skills[SKILL_MANASHIELD]->TimerValue() > 0 + || this->Skills[SKILL_MANASHIELD]->Get() > 0){ State |= 0x10; } -- cgit v1.2.3