aboutsummaryrefslogtreecommitdiff
path: root/src/objects.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-10 03:32:22 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-10 03:32:22 -0300
commit699341773dda3ae14a5025b9285bdd05c99bc234 (patch)
treea166fcb1fef64f31520a6a26d94a6c83799efce3 /src/objects.hh
parentcd8f3f412c2a5f49ee25aab83079a655b88d6def (diff)
downloadgame-699341773dda3ae14a5025b9285bdd05c99bc234.tar.gz
game-699341773dda3ae14a5025b9285bdd05c99bc234.zip
most `info.cc` functions
Diffstat (limited to 'src/objects.hh')
-rw-r--r--src/objects.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/objects.hh b/src/objects.hh
index 48dbedf..3d312ac 100644
--- a/src/objects.hh
+++ b/src/objects.hh
@@ -62,6 +62,14 @@ struct ObjectType {
|| this->getFlag(WAND);
}
+ ObjectType getDisguise(void){
+ if(this->getFlag(DISGUISE)){
+ return (int)this->getAttribute(DISGUISETARGET);
+ }else{
+ return *this;
+ }
+ }
+
bool operator==(const ObjectType &Other) const {
return this->TypeID == Other.TypeID;
}