Random Rig spawner no longer spawns access locked rigs.

This commit is contained in:
Mechoid
2023-02-20 03:11:11 -08:00
parent 14a10960b7
commit 15fa93c00b
4 changed files with 21 additions and 5 deletions

View File

@@ -276,9 +276,9 @@
icon_state = "generic"
/obj/random/rigsuit/item_to_spawn()
return pick(prob(4);/obj/item/rig/light/hacker,
return pick(prob(4);/obj/item/rig/light/hacker/poi,
prob(5);/obj/item/rig/industrial,
prob(5);/obj/item/rig/eva,
prob(4);/obj/item/rig/light/stealth,
prob(4);/obj/item/rig/light/stealth/poi,
prob(3);/obj/item/rig/hazard,
prob(1);/obj/item/rig/merc/empty)
prob(1);/obj/item/rig/merc/empty/poi)

View File

@@ -194,5 +194,6 @@
LAZYCLEARLIST(req_one_access)
locked = 0
subverted = 1
to_chat(user, "<span class='danger'>You short out the access protocol for the suit.</span>")
if(user)
to_chat(user, "<span class='danger'>You short out the access protocol for the suit.</span>")
return 1

View File

@@ -68,6 +68,11 @@
/obj/item/rig_module/vision,
)
/obj/item/rig/light/hacker/poi/Initialize()
. = ..()
if(!QDELETED(src))
emag_act()
//The cybersuit is not space-proof. It does however, have good siemens_coefficient values
/obj/item/clothing/head/helmet/space/rig/light/hacker
name = "headgear"
@@ -138,3 +143,8 @@
/obj/item/rig_module/stealth_field,
/obj/item/rig_module/vision
)
/obj/item/rig/light/stealth/poi/Initialize()
. = ..()
if(!QDELETED(src))
emag_act()

View File

@@ -43,4 +43,9 @@
initial_modules = list(
/obj/item/rig_module/ai_container,
/obj/item/rig_module/electrowarfare_suite, //might as well
)
)
/obj/item/rig/merc/empty/poi/Initialize()
. = ..()
if(!QDELETED(src))
emag_act()