From 796f7e2c2ace55462acfa50e5085d4d048047e68 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Apr 2013 20:09:22 +0300 Subject: 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. --- src/resources/iteminfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/iteminfo.h') 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 -- cgit v1.2.3-60-g2f50