finished the game (i will probably not be touching this again)
This commit is contained in:
@@ -434,6 +434,17 @@ bool Character::CanAct() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Character::IsInvulnerable() const {
|
||||
for (const StatusEffect& status : statuses)
|
||||
if (GetStatusEffectInfo(status.type).invulnerable)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Character::HasHyperArmor() const {
|
||||
return body && body->combat.HasHyperArmor();
|
||||
}
|
||||
|
||||
bool Character::DodgesHits() const {
|
||||
for (const StatusEffect& status : statuses)
|
||||
if (GetStatusEffectInfo(status.type).dodgesHits)
|
||||
|
||||
Reference in New Issue
Block a user