summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-14 20:09:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-14 23:35:07 +0300
commit796f7e2c2ace55462acfa50e5085d4d048047e68 (patch)
tree878c6f36f001774047cc26fa7fb68f474920bbf0 /src/resources/iteminfo.h
parent6b5c7e7a5ed32abfc98d9acdebacc50c68a91a1d (diff)
downloadmanaverse-796f7e2c2ace55462acfa50e5085d4d048047e68.tar.gz
manaverse-796f7e2c2ace55462acfa50e5085d4d048047e68.tar.bz2
manaverse-796f7e2c2ace55462acfa50e5085d4d048047e68.tar.xz
manaverse-796f7e2c2ace55462acfa50e5085d4d048047e68.zip
add basic client side only support for pets.
now pets cant move and dont have any ai. pet can be only spawn at player position if equiped item with assigned pet.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index 0a3b20c61..afea431ee 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -256,6 +256,12 @@ class ItemInfo final
bool isRemoveItemId(int id) const A_WARN_UNUSED;
+ void setPet(const int pet)
+ { mPet = pet; }
+
+ int getPet() const
+ { return mPet; }
+
/** Effects to be shown when weapon attacks - see also effects.xml */
std::string mMissileParticleFile;
@@ -331,6 +337,7 @@ class ItemInfo final
int mMissEffectId;
int maxFloorOffset;
Cursor::Cursor mPickupCursor;
+ int mPet;
};
#endif