[MIRROR] Fixes Stray Cargo Pod event runtime [MDB IGNORE] (#15359)

* Fixes Stray Cargo Pod event runtime (#68721)

* Fixes Stray Cargo Pod event runtime

* warning

* Update code/modules/cargo/packs.dm

* Update code/modules/cargo/packs.dm

* Fixes Stray Cargo Pod event runtime

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-08-02 18:41:30 +01:00
committed by GitHub
co-authored by ShizCalev
parent 24790a2ba3
commit d334ffbc14
2 changed files with 8 additions and 2 deletions
+5
View File
@@ -48,6 +48,8 @@
if(paying_account)
C = new /obj/structure/closet/crate/secure/owned(A, paying_account)
C.name = "[crate_name] - Purchased by [paying_account.account_holder]"
else if(!crate_type)
CRASH("tried to generate a supply pack without a valid crate type")
else
C = new crate_type(A)
C.name = crate_name
@@ -2745,6 +2747,9 @@
crate_type = null
special_pod = /obj/structure/closet/supplypod/bluespacepod
/datum/supply_pack/misc/empty/generate(atom/A, datum/bank_account/paying_account)
return
/datum/supply_pack/misc/religious_supplies
name = "Religious Supplies Crate"
desc = "Keep your local chaplain happy and well-supplied, lest they call down judgement upon your cargo bay. Contains two bottles of holywater, bibles, chaplain robes, and burial garmets."
+3 -2
View File
@@ -52,8 +52,9 @@
pack_type = pick(stray_spawnable_supply_packs)
var/datum/supply_pack/SP = new pack_type
var/obj/structure/closet/crate/crate = SP.generate(null)
crate.locked = FALSE //Unlock secure crates
crate.update_appearance()
if(crate) //empty supply packs are a thing! get memed on.
crate.locked = FALSE //Unlock secure crates
crate.update_appearance()
var/obj/structure/closet/supplypod/pod = make_pod()
new /obj/effect/pod_landingzone(LZ, pod, crate)