fixes material crates not shipping

This commit is contained in:
qweq12yt
2021-03-30 12:33:23 -03:00
parent b4ec612b4e
commit 04f90b749f
5 changed files with 60 additions and 11 deletions
+4 -1
View File
@@ -21,7 +21,10 @@
/datum/supply_pack/proc/generate(atom/A, datum/bank_account/paying_account)
var/obj/structure/closet/crate/C
if(paying_account)
C = new /obj/structure/closet/crate/secure/owned(A, paying_account)
if(ispath(crate_type, /obj/structure/closet/secure_closet/goodies))
C = new /obj/structure/closet/secure_closet/goodies/owned(A, paying_account)
else
C = new /obj/structure/closet/crate/secure/owned(A, paying_account)
C.name = "[crate_name] - Purchased by [paying_account.account_holder]"
else
C = new crate_type(A)