summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeistache <crie.fernanda@gmail.com>2015-02-22 21:54:57 -0300
committerMeistache <crie.fernanda@gmail.com>2015-02-22 21:54:57 -0300
commitaf083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f (patch)
treea74f78fb56474ea9efcbf8355332b4e6a4a27416
parentbd6b97110b2e73bcdb3ad83c6b605e10bc75736a (diff)
downloadmanamarket-af083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f.tar.gz
manamarket-af083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f.tar.bz2
manamarket-af083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f.tar.xz
manamarket-af083886bb63fa9e3ea7f9ce2fb13aaefd6ea84f.zip
Remembered to add a very important feature: getback from storage (my bad)
-rwxr-xr-xmain.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.py b/main.py
index 61cb1df..eaf2b33 100755
--- a/main.py
+++ b/main.py
@@ -726,6 +726,9 @@ def process_whisper(nick, msg, mapserv):
trader_state.item = item
player_id = beingManager.findId(nick)
if player_id != -10:
+ if uid > MAX_INVENTORY:
+ item.index = storage.find_storage_index(item.id)
+ storage_operation(storage.storage_get, (item.index, item.amount))
mapserv.sendall(trade_request(player_id))
trader_state.timer = time.time()
else: