mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 13:09:11 +01:00
More globals (#19111)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
|
||||
GLOBAL_DATUM(sleevemate_mob, /mob/living/carbon/human/dummy/mannequin)
|
||||
|
||||
//SleeveMate!
|
||||
/obj/item/sleevemate
|
||||
@@ -290,15 +290,15 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
|
||||
return //Uninstalled it?
|
||||
|
||||
//Lazzzyyy.
|
||||
if(!sleevemate_mob)
|
||||
sleevemate_mob = new()
|
||||
if(!GLOB.sleevemate_mob)
|
||||
GLOB.sleevemate_mob = new()
|
||||
|
||||
if(!(soulcatcher_pref_flags & SOULCATCHER_ALLOW_CAPTURE))
|
||||
to_chat(usr,span_notice("[sleevemate_mob] can't be transferred!"))
|
||||
to_chat(usr,span_notice("[GLOB.sleevemate_mob] can't be transferred!"))
|
||||
return
|
||||
|
||||
put_mind(sleevemate_mob)
|
||||
SC.catch_mob(sleevemate_mob)
|
||||
put_mind(GLOB.sleevemate_mob)
|
||||
SC.catch_mob(GLOB.sleevemate_mob)
|
||||
to_chat(usr,span_notice("Mind transferred into Soulcatcher!"))
|
||||
|
||||
if(href_list["mindupload"])
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#define RMS_STONE 5
|
||||
#define RMS_RAND 6
|
||||
|
||||
var/list/RMS_random_malfunction = list(/obj/item/fbp_backup_cell,
|
||||
GLOBAL_LIST_INIT(RMS_random_malfunction, list(/obj/item/fbp_backup_cell,
|
||||
/obj/item/trash/rkibble,
|
||||
/obj/item/clothing/gloves/bluespace/deluxe,
|
||||
/obj/item/flame/lighter/supermatter/syndismzippo,
|
||||
@@ -20,7 +20,8 @@ var/list/RMS_random_malfunction = list(/obj/item/fbp_backup_cell,
|
||||
/obj/item/clothing/shoes/clown_shoes,
|
||||
/obj/item/clothing/mask/gas/clown_hat,
|
||||
/obj/item/pda/clown,
|
||||
/mob/living/simple_mob/vore/catgirl)
|
||||
/mob/living/simple_mob/vore/catgirl
|
||||
))
|
||||
|
||||
/obj/item/rms
|
||||
name = "Rapid Material Synthesizer"
|
||||
@@ -135,7 +136,7 @@ var/list/RMS_random_malfunction = list(/obj/item/fbp_backup_cell,
|
||||
if(do_after(user, 5, target = A))
|
||||
if(overcharge)
|
||||
if(prob(5)) //5% chance for malfunction
|
||||
var/thing_to_spawn = pick(RMS_random_malfunction)
|
||||
var/thing_to_spawn = pick(GLOB.RMS_random_malfunction)
|
||||
product = new thing_to_spawn
|
||||
else
|
||||
product = choose_overcharge(user)
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
|
||||
/obj/item/card/id/Initialize(mapload)
|
||||
. = ..()
|
||||
var/datum/job/J = job_master.GetJob(rank)
|
||||
var/datum/job/J = GLOB.job_master.GetJob(rank)
|
||||
if(J)
|
||||
access = J.get_access()
|
||||
|
||||
|
||||
@@ -52,10 +52,10 @@
|
||||
//Chaplain null rod removes ALL unholy traits.
|
||||
REMOVE_TRAITS_IN(M, UNHOLY_TRAIT)
|
||||
|
||||
if(cult && (M.mind in cult.current_antagonists) && prob(33))
|
||||
if(GLOB.cult && (M.mind in GLOB.cult.current_antagonists) && prob(33))
|
||||
to_chat(M, span_danger("The power of [src] clears your mind of the cult's influence!"))
|
||||
to_chat(user, span_danger("You wave [src] over [M]'s head and see their eyes become clear, their mind returning to normal."))
|
||||
cult.remove_antagonist(M.mind)
|
||||
GLOB.cult.remove_antagonist(M.mind)
|
||||
M.visible_message(span_danger("\The [user] waves \the [src] over \the [M]'s head."))
|
||||
else
|
||||
to_chat(user, span_danger("The rod appears to do nothing."))
|
||||
|
||||
Reference in New Issue
Block a user