mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 04:02:31 +00:00
Merge pull request #5812 from TheGreatKitsune/item-tf-spawn
Item TF spawnpoints
This commit is contained in:
18
modular_chomp/code/game/objects/items.dm
Normal file
18
modular_chomp/code/game/objects/items.dm
Normal file
@@ -0,0 +1,18 @@
|
||||
/obj/item
|
||||
var/item_tf_spawn_allowed = FALSE
|
||||
var/list/ckeys_allowed_itemspawn = list()
|
||||
|
||||
/obj/item/proc/item_tf_spawnpoint_set()
|
||||
if(!item_tf_spawn_allowed)
|
||||
item_tf_spawn_allowed = TRUE
|
||||
item_tf_spawnpoints += src
|
||||
|
||||
/obj/item/proc/item_tf_spawnpoint_used()
|
||||
if(item_tf_spawn_allowed)
|
||||
item_tf_spawn_allowed = FALSE
|
||||
item_tf_spawnpoints -= src
|
||||
|
||||
/obj/item/Destroy(force, ...)
|
||||
if(item_tf_spawn_allowed)
|
||||
item_tf_spawnpoints -= src
|
||||
return ..()
|
||||
@@ -16,6 +16,10 @@
|
||||
display_name = "Vorespawn - Pred"
|
||||
msg = "has arrived on the station"
|
||||
|
||||
/datum/spawnpoint/vore/itemtf
|
||||
display_name = "Item TF spawn"
|
||||
msg = "has arrived on the station"
|
||||
|
||||
/datum/spawnpoint/vore/New()
|
||||
..()
|
||||
turfs = latejoin
|
||||
|
||||
Reference in New Issue
Block a user