Merge pull request #37681 from kevinz000/patch-499
Fixes supply pod duping
This commit is contained in:
committed by
CitadelStationBot
parent
11c1e8fbf7
commit
4b36831fbe
@@ -17,6 +17,7 @@
|
|||||||
armor = list("melee" = 30, "bullet" = 50, "laser" = 50, "energy" = 100, "bomb" = 90, "bio" = 0, "rad" = 0, "fire" = 80, "acid" = 80)
|
armor = list("melee" = 30, "bullet" = 50, "laser" = 50, "energy" = 100, "bomb" = 90, "bio" = 0, "rad" = 0, "fire" = 80, "acid" = 80)
|
||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
anchorable = FALSE
|
anchorable = FALSE
|
||||||
|
var/generated = FALSE
|
||||||
var/datum/supply_order/SupplyOrder
|
var/datum/supply_order/SupplyOrder
|
||||||
|
|
||||||
/obj/structure/closet/supplypod/bluespacepod
|
/obj/structure/closet/supplypod/bluespacepod
|
||||||
@@ -45,7 +46,9 @@
|
|||||||
/obj/structure/closet/supplypod/open()
|
/obj/structure/closet/supplypod/open()
|
||||||
var/turf/T = get_turf(src)
|
var/turf/T = get_turf(src)
|
||||||
opened = TRUE
|
opened = TRUE
|
||||||
SupplyOrder.generate(T)//not called during populateContents as supplyorder generation requires a turf
|
if(!generated)
|
||||||
|
generated = TRUE
|
||||||
|
SupplyOrder.generate(T)//not called during populateContents as supplyorder generation requires a turf
|
||||||
update_icon()
|
update_icon()
|
||||||
playsound(src, open_sound, 15, 1, -3)
|
playsound(src, open_sound, 15, 1, -3)
|
||||||
if(istype(src,/obj/structure/closet/supplypod/bluespacepod))
|
if(istype(src,/obj/structure/closet/supplypod/bluespacepod))
|
||||||
|
|||||||
Reference in New Issue
Block a user