Randomizes the reactive armor in the RD's office (#17888)

* Randomizes the reactive armor in the RD's office

* subtypesof

* Update code/modules/clothing/suits/armor.dm

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>

* final stuff

* convert to initalize

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2022-06-02 22:47:11 +01:00
committed by GitHub
co-authored by Sirryan2002
parent 886de124e2
commit e9e8c45839
3 changed files with 13 additions and 4 deletions
+3 -3
View File
@@ -114,9 +114,9 @@
location_override = "the Captain's Office"
/datum/theft_objective/reactive
name = "the reactive teleport armor"
typepath = /obj/item/clothing/suit/armor/reactive/teleport
protected_jobs = list("Research Director")
name = "any type of reactive armor"
typepath = /obj/item/clothing/suit/armor/reactive
protected_jobs = list("Research Director", "Scientist", "Roboticist") //no one with protolathe access, who will often be handed a core
location_override = "the Research Director's Office"
/datum/theft_objective/steal/documents
@@ -54,7 +54,7 @@
new /obj/item/radio/headset/heads/rd(src)
new /obj/item/tank/internals/air(src)
new /obj/item/clothing/mask/gas(src)
new /obj/item/clothing/suit/armor/reactive/teleport(src)
new /obj/item/clothing/suit/armor/reactive/random(src)
new /obj/item/flash(src)
new /obj/item/laser_pointer(src)
new /obj/item/door_remote/research_director(src)
+9
View File
@@ -442,6 +442,15 @@
disable(rand(2, 5))
return TRUE
/obj/item/clothing/suit/armor/reactive/random //Spawner for random reactive armor
name = "Random Reactive Armor"
/obj/item/clothing/suit/armor/reactive/random/Initialize(mapload)
. = ..()
var/spawnpath = pick(subtypesof(/obj/item/clothing/suit/armor/reactive) - /obj/item/clothing/suit/armor/reactive/random)
new spawnpath(loc)
qdel(src)
//All of the armor below is mostly unused