summaryrefslogtreecommitdiff
path: root/src/map/storage.cpp
diff options
context:
space:
mode:
authorLed Mitz <smoothshifter@tuta.io>2023-04-03 01:58:15 +0000
committerLed Mitz <smoothshifter@tuta.io>2023-04-03 01:58:15 +0000
commit4887981f15cdae7f19d06471c54e6754e74e6567 (patch)
tree520bcb4e917054af845d79c070cd775ce48a6150 /src/map/storage.cpp
parent74ad8e7c214e6ba60fbbeb0f316373e0420460be (diff)
parent7980f4d21956314e284448f7dcedd58f9c23b355 (diff)
downloadtmwa-4887981f15cdae7f19d06471c54e6754e74e6567.tar.gz
tmwa-4887981f15cdae7f19d06471c54e6754e74e6567.tar.bz2
tmwa-4887981f15cdae7f19d06471c54e6754e74e6567.tar.xz
tmwa-4887981f15cdae7f19d06471c54e6754e74e6567.zip
Merge branch 'item_mode' into 'master'
Item mode See merge request legacy/tmwa!246
Diffstat (limited to 'src/map/storage.cpp')
-rw-r--r--src/map/storage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/storage.cpp b/src/map/storage.cpp
index 1327146..54398f3 100644
--- a/src/map/storage.cpp
+++ b/src/map/storage.cpp
@@ -186,6 +186,12 @@ int storage_storageadd(dumb_ptr<map_session_data> sd, IOff0 index, int amount)
if (amount < 1 || amount > sd->status.inventory[index].amount)
return 0;
+ if (bool(itemdb_search(sd->status.inventory[index].nameid)->mode & ItemMode::NO_STORAGE))
+ {
+ clif_displaymessage(sd->sess, "This item can't be stored."_s);
+ return 0;
+ }
+
// log_tostorage(sd, index, 0);
if (storage_additem(sd, stor, &sd->status.inventory[index], amount) == 0)
{