mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 03:26:31 +01:00
Fix storage implant stacking not working (#69291)
(cherry picked from commit 1ff1b4e43f)
Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com>
This commit is contained in:
@@ -29,10 +29,14 @@
|
||||
for(var/X in target.implants)
|
||||
if(istype(X, type))
|
||||
var/obj/item/implant/storage/imp_e = X
|
||||
if(!imp_e.atom_storage || (imp_e.atom_storage && imp_e.atom_storage.max_slots < max_slot_stacking))
|
||||
if(!imp_e.atom_storage)
|
||||
imp_e.create_storage(type = /datum/storage/implant)
|
||||
qdel(src)
|
||||
return TRUE
|
||||
else if(imp_e.atom_storage.max_slots < max_slot_stacking)
|
||||
imp_e.atom_storage.max_slots += initial(imp_e.atom_storage.max_slots)
|
||||
imp_e.atom_storage.max_total_storage += initial(imp_e.atom_storage.max_total_storage)
|
||||
return TRUE
|
||||
return FALSE
|
||||
create_storage(type = /datum/storage/implant)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user