From 699341773dda3ae14a5025b9285bdd05c99bc234 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 10 Jun 2025 03:32:22 -0300 Subject: most `info.cc` functions --- src/objects.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/objects.hh') 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; } -- cgit v1.2.3