summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-19 17:09:45 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-19 17:09:45 +0300
commit3c61d57f6d7f627b32b4a8c2f461a8e01e7ac378 (patch)
treef24f8c7f020e9ed628c4b9022d8060b005af8697 /src/inventory.h
parenta7d36a50bb330d4423d3a8dd0177a3da20d5e8f9 (diff)
downloadminetest-3c61d57f6d7f627b32b4a8c2f461a8e01e7ac378.tar.gz
minetest-3c61d57f6d7f627b32b4a8c2f461a8e01e7ac378.tar.bz2
minetest-3c61d57f6d7f627b32b4a8c2f461a8e01e7ac378.zip
item drop multiplication fix
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h3
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)
{