mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
New stacks now auto-split if amount > max_amount
This commit is contained in:
@@ -36,7 +36,11 @@
|
||||
/obj/item/stack/Initialize(mapload, new_amount=null , merge = TRUE)
|
||||
. = ..()
|
||||
if(new_amount)
|
||||
amount = new_amount
|
||||
if(new_amount > max_amount)
|
||||
amount = max_amount
|
||||
new type(loc, new_amount - max_amount, merge)
|
||||
else
|
||||
amount = new_amount
|
||||
if(!merge_type)
|
||||
merge_type = type
|
||||
if(merge)
|
||||
|
||||
Reference in New Issue
Block a user