mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 23:17:28 +01:00
Conversion many Globals to Managed Globals (Part 1) (#17121)
* Conversion of some Globals to Managed Globals * Fix * for later --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -483,8 +483,8 @@
|
||||
if(J.mob_type & JOB_SILICON_AI)
|
||||
|
||||
// IsJobAvailable for AI checks that there is an empty core available in this list
|
||||
var/obj/structure/AIcore/deactivated/C = empty_playable_ai_cores[1]
|
||||
empty_playable_ai_cores -= C
|
||||
var/obj/structure/AIcore/deactivated/C = GLOB.empty_playable_ai_cores[1]
|
||||
GLOB.empty_playable_ai_cores -= C
|
||||
|
||||
character.loc = C.loc
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
pass = FALSE
|
||||
|
||||
//Are they on the VERBOTEN LIST?
|
||||
if (prevent_respawns.Find(client?.prefs?.real_name))
|
||||
if (GLOB.prevent_respawns.Find(client?.prefs?.real_name))
|
||||
to_chat(src,span_warning("You've already quit the round as this character. You can't go back now that you've free'd your job slot. Play another character, or wait for the next round."))
|
||||
pass = FALSE
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
var/pref_synth = client.prefs.dirty_synth
|
||||
var/pref_meat = client.prefs.gross_meatbag
|
||||
for(var/datum/trait/T as anything in megalist)
|
||||
var/cost = traits_costs[T]
|
||||
var/cost = GLOB.traits_costs[T]
|
||||
|
||||
if(T.category == TRAIT_TYPE_POSITIVE)
|
||||
traits_left--
|
||||
@@ -57,7 +57,7 @@
|
||||
to_chat(src,span_warning("Your species is not playable. One or more traits appear to have been removed from the game or renamed. Enter character setup to correct this."))
|
||||
break
|
||||
else
|
||||
points_left -= traits_costs[T]
|
||||
points_left -= GLOB.traits_costs[T]
|
||||
|
||||
var/take_flags = initial(T.can_take)
|
||||
if((pref_synth && !(take_flags & SYNTHETICS)) || (pref_meat && !(take_flags & ORGANICS)))
|
||||
|
||||
Reference in New Issue
Block a user