summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 01:13:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 01:13:11 +0300
commit8d12abe6ff4114a04b8fc9549e8f44683fed9e3d (patch)
tree29055adc729bfe298b09feecf044af1ddde64b64 /src/being
parenta9877525597aa94f1d974b8f45567b4168cf6c8e (diff)
downloadplus-8d12abe6ff4114a04b8fc9549e8f44683fed9e3d.tar.gz
plus-8d12abe6ff4114a04b8fc9549e8f44683fed9e3d.tar.bz2
plus-8d12abe6ff4114a04b8fc9549e8f44683fed9e3d.tar.xz
plus-8d12abe6ff4114a04b8fc9549e8f44683fed9e3d.zip
Remove function setInventoryItem from playerinfo.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/playerinfo.cpp11
-rw-r--r--src/being/playerinfo.h6
2 files changed, 0 insertions, 17 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index d76de03fc..a6ec14c27 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -208,17 +208,6 @@ void clearInventory()
mInventory->clear();
}
-void setInventoryItem(const int index, const int id,
- const int amount, const uint8_t refine)
-{
- bool equipment = false;
- const ItemType::Type itemType = ItemDB::get(id).getType();
- if (itemType != ItemType::UNUSABLE && itemType != ItemType::USABLE)
- equipment = true;
- if (mInventory)
- mInventory->setItem(index, id, amount, refine, 1, equipment, false);
-}
-
Equipment *getEquipment()
{
return mEquipment;
diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h
index e3b156d9e..f61c50325 100644
--- a/src/being/playerinfo.h
+++ b/src/being/playerinfo.h
@@ -155,12 +155,6 @@ namespace PlayerInfo
void clear();
/**
- * Changes the inventory item at the given slot.
- */
- void setInventoryItem(const int index, const int id,
- const int amount, const uint8_t refine);
-
- /**
* Returns the player's equipment.
*/
Equipment *getEquipment() A_WARN_UNUSED;