diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-11 03:30:51 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-11 03:30:51 -0300 |
| commit | 60b89174c6b6300079344267bae60d74347e1fa5 (patch) | |
| tree | 71f97db0af2d5b64e34fcaee72f95ceccb6f433e /src/crmain.cc | |
| parent | b167d45f88cfb824a96c3a5a120c34c30768ecda (diff) | |
| download | game-60b89174c6b6300079344267bae60d74347e1fa5.tar.gz game-60b89174c6b6300079344267bae60d74347e1fa5.zip | |
some announce functions
Diffstat (limited to 'src/crmain.cc')
| -rw-r--r-- | src/crmain.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crmain.cc b/src/crmain.cc index 00cd3e2..52a7c13 100644 --- a/src/crmain.cc +++ b/src/crmain.cc @@ -2,6 +2,7 @@ #include "config.hh" #include "enums.hh" #include "info.hh" +#include "operate.hh" #include "stubs.hh" @@ -590,7 +591,7 @@ int TCreature::Damage(TCreature *Attacker, int Damage, int DamageType){ && this->Outfit.ObjectType == 0){ this->SetTimer(SKILL_ILLUSION, 0, 0, 0, -1); this->Outfit = this->OrgOutfit; - AnnounceChangedCreature(this->ID, 3); // CREATURE_OUTFIT_CHANGED ? + AnnounceChangedCreature(this->ID, CREATURE_OUTFIT_CHANGED); NotifyAllCreatures(this->CrObject, 2, NONE); // CREATURE_APPEAR ? } @@ -834,7 +835,7 @@ int TCreature::Damage(TCreature *Attacker, int Damage, int DamageType){ } } - AnnounceChangedCreature(this->ID, 1); // CREATURE_HITPOINTS_CHANGED ? + AnnounceChangedCreature(this->ID, CREATURE_HEALTH_CHANGED); return Damage; } |
