diff options
Diffstat (limited to 'src/inventory.h')
-rw-r--r-- | src/inventory.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h index cb45371e4..d2d23542e 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -59,6 +59,8 @@ public: virtual std::string getText() { return ""; } // Creates an object from the item, to be placed in the world. virtual ServerActiveObject* createSAO(ServerEnvironment *env, u16 id, v3f pos); + // Gets amount of items that dropping one SAO will decrement + virtual u16 getDropCount(){ return getCount(); } /* Quantity methods @@ -279,6 +281,7 @@ public: } ServerActiveObject* createSAO(ServerEnvironment *env, u16 id, v3f pos); + u16 getDropCount(); virtual bool addableTo(InventoryItem *other) { |