aboutsummaryrefslogtreecommitdiff
path: root/src/crplayer.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-08 02:16:45 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-08 02:16:45 -0300
commitab9f606371a1df23e9cacbffa0811db7a9e50100 (patch)
treeb5bca97b18977197eb4b5b33f1f1076dcd22e70b /src/crplayer.cc
parent0590a5f1b3e0ffe295d7894a16b9d8aff3fae586 (diff)
downloadgame-ab9f606371a1df23e9cacbffa0811db7a9e50100.tar.gz
game-ab9f606371a1df23e9cacbffa0811db7a9e50100.zip
more `cract.cc` functions
Diffstat (limited to 'src/crplayer.cc')
-rw-r--r--src/crplayer.cc9
1 files changed, 6 insertions, 3 deletions
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;
}