Makes all global variables handled by the GLOB controller (#13152)

* Handlers converted, now to fix 3532 compile errors

* 3532 compile fixes later, got runtimes on startup

* Well the server loads now atleast

* Take 2

* Oops
This commit is contained in:
AffectedArc07
2020-03-21 03:56:37 +00:00
committed by GitHub
parent c8dbd0190e
commit 210f8badf4
667 changed files with 4243 additions and 4240 deletions
+1 -1
View File
@@ -160,7 +160,7 @@
..()
if(E.limb_name == "head")
var/obj/item/organ/external/head/H = target.get_organ("head")
var/datum/robolimb/robohead = all_robolimbs[H.model]
var/datum/robolimb/robohead = GLOB.all_robolimbs[H.model]
if(robohead.is_monitor) //Ensures that if an IPC gets a head that's got a human hair wig attached to their body, the hair won't wipe.
H.h_style = "Bald"
H.f_style = "Shaved"
+3 -3
View File
@@ -11,7 +11,7 @@
var/see_in_dark = 0
var/see_invisible = 0
var/lighting_alpha
var/eye_colour = "#000000" // Should never be null
var/old_eye_colour = "#000000"
var/flash_protect = 0
@@ -88,14 +88,14 @@
/obj/item/organ/internal/cyberimp/eyes/hud/insert(var/mob/living/carbon/M, var/special = 0)
..()
if(HUD_type)
var/datum/atom_hud/H = huds[HUD_type]
var/datum/atom_hud/H = GLOB.huds[HUD_type]
H.add_hud_to(M)
M.permanent_huds |= H
/obj/item/organ/internal/cyberimp/eyes/hud/remove(var/mob/living/carbon/M, var/special = 0)
. = ..()
if(HUD_type)
var/datum/atom_hud/H = huds[HUD_type]
var/datum/atom_hud/H = GLOB.huds[HUD_type]
M.permanent_huds ^= H
H.remove_hud_from(M)
+4 -4
View File
@@ -46,8 +46,8 @@
if(!(M.disabilities & COLOURBLIND) && (dependent_disabilities & COLOURBLIND)) //If the eyes are colourblind and we're not, carry over the gene.
dependent_disabilities &= ~COLOURBLIND
M.dna.SetSEState(COLOURBLINDBLOCK,1)
genemutcheck(M,COLOURBLINDBLOCK,null,MUTCHK_FORCED)
M.dna.SetSEState(GLOB.colourblindblock,1)
genemutcheck(M,GLOB.colourblindblock,null,MUTCHK_FORCED)
else
M.update_client_colour() //If we're here, that means the mob acquired the colourblindness gene while they didn't have eyes. Better handle it.
@@ -55,8 +55,8 @@
if(!special && (M.disabilities & COLOURBLIND)) //If special is set, that means these eyes are getting deleted (i.e. during set_species())
if(!(dependent_disabilities & COLOURBLIND)) //We only want to change COLOURBLINDBLOCK and such it the eyes are being surgically removed.
dependent_disabilities |= COLOURBLIND
M.dna.SetSEState(COLOURBLINDBLOCK,0)
genemutcheck(M,COLOURBLINDBLOCK,null,MUTCHK_FORCED)
M.dna.SetSEState(GLOB.colourblindblock,0)
genemutcheck(M,GLOB.colourblindblock,null,MUTCHK_FORCED)
. = ..()
/obj/item/organ/internal/eyes/surgeryize()
@@ -515,7 +515,7 @@ Note that amputating the affected organ does in fact remove the infection from t
if(!clean)
// Throw limb around.
if(src && istype(loc,/turf))
dropped_part.throw_at(get_edge_target_turf(src,pick(alldirs)),rand(1,3),30)
dropped_part.throw_at(get_edge_target_turf(src,pick(GLOB.alldirs)),rand(1,3),30)
dir = 2
brute_dam = 0
burn_dam = 0 //Reset the damage on the limb; the damage should have transferred to the parent; we don't want extra damage being re-applied when then limb is re-attached
@@ -663,7 +663,7 @@ Note that amputating the affected organ does in fact remove the infection from t
/obj/item/organ/external/proc/set_company(var/company)
model = company
var/datum/robolimb/R = all_robolimbs[company]
var/datum/robolimb/R = GLOB.all_robolimbs[company]
if(R)
force_icon = R.icon
name = "[R.company] [initial(name)]"
+1 -1
View File
@@ -1,4 +1,4 @@
var/global/list/limb_icon_cache = list()
GLOBAL_LIST_EMPTY(limb_icon_cache)
/obj/item/organ/external/proc/compile_icon()
// I do this so the head's overlays don't get obliterated
+10 -10
View File
@@ -231,11 +231,11 @@
/obj/item/organ/internal/honktumor/insert(mob/living/carbon/M, special = 0)
..()
M.mutations.Add(CLUMSY)
M.mutations.Add(COMICBLOCK)
M.dna.SetSEState(CLUMSYBLOCK,1,1)
M.dna.SetSEState(COMICBLOCK,1,1)
genemutcheck(M,CLUMSYBLOCK,null,MUTCHK_FORCED)
genemutcheck(M,COMICBLOCK,null,MUTCHK_FORCED)
M.mutations.Add(GLOB.comicblock)
M.dna.SetSEState(GLOB.clumsyblock,1,1)
M.dna.SetSEState(GLOB.comicblock,1,1)
genemutcheck(M,GLOB.clumsyblock,null,MUTCHK_FORCED)
genemutcheck(M,GLOB.comicblock,null,MUTCHK_FORCED)
organhonked = world.time
waddle = M.AddComponent(/datum/component/waddling)
squeak = M.AddComponent(/datum/component/squeak, list('sound/items/bikehorn.ogg' = 1), 50)
@@ -244,11 +244,11 @@
. = ..()
M.mutations.Remove(CLUMSY)
M.mutations.Remove(COMICBLOCK)
M.dna.SetSEState(CLUMSYBLOCK,0)
M.dna.SetSEState(COMICBLOCK,0)
genemutcheck(M,CLUMSYBLOCK,null,MUTCHK_FORCED)
genemutcheck(M,COMICBLOCK,null,MUTCHK_FORCED)
M.mutations.Remove(GLOB.comicblock)
M.dna.SetSEState(GLOB.clumsyblock,0)
M.dna.SetSEState(GLOB.comicblock,0)
genemutcheck(M,GLOB.clumsyblock,null,MUTCHK_FORCED)
genemutcheck(M,GLOB.comicblock,null,MUTCHK_FORCED)
QDEL_NULL(waddle)
QDEL_NULL(squeak)
qdel(src)
+8 -8
View File
@@ -1,19 +1,19 @@
var/global/list/all_robolimbs = list()
var/global/list/chargen_robolimbs = list()
var/global/list/selectable_robolimbs = list()
var/global/datum/robolimb/basic_robolimb
GLOBAL_LIST_EMPTY(all_robolimbs)
GLOBAL_LIST_EMPTY(chargen_robolimbs)
GLOBAL_LIST_EMPTY(selectable_robolimbs)
GLOBAL_DATUM(basic_robolimb, /datum/robolimb)
/proc/populate_robolimb_list()
basic_robolimb = new()
GLOB.basic_robolimb = new()
for(var/limb_type in typesof(/datum/robolimb))
var/datum/robolimb/R = new limb_type()
all_robolimbs[R.company] = R
GLOB.all_robolimbs[R.company] = R
if(!R.unavailable_at_chargen)
if(R != "head" && R != "chest" && R != "groin" ) //Part of the method that ensures only IPCs can access head, chest and groin prosthetics.
if(R.has_subtypes) //Ensures solos get added to the list as well be incorporating has_subtypes == 1 and has_subtypes == 2.
chargen_robolimbs[R.company] = R //List only main brands and solo parts.
GLOB.chargen_robolimbs[R.company] = R //List only main brands and solo parts.
if(R.selectable)
selectable_robolimbs[R.company] = R
GLOB.selectable_robolimbs[R.company] = R
/datum/robolimb
var/company = "Unbranded" // Shown when selecting the limb.
+75 -75
View File
@@ -1,39 +1,39 @@
var/static/regex/stun_words = regex("stop|wait|stand still|hold on|halt")
var/static/regex/weaken_words = regex("drop|fall|trip")
var/static/regex/sleep_words = regex("sleep|slumber")
var/static/regex/vomit_words = regex("vomit|throw up")
var/static/regex/silence_words = regex("shut up|silence|ssh|quiet|hush")
var/static/regex/hallucinate_words = regex("see the truth|hallucinate")
var/static/regex/wakeup_words = regex("wake up|awaken")
var/static/regex/heal_words = regex("live|heal|survive|mend|heroes never die")
var/static/regex/hurt_words = regex("die|suffer")
var/static/regex/bleed_words = regex("bleed")
var/static/regex/burn_words = regex("burn|ignite")
var/static/regex/repulse_words = regex("shoo|go away|leave me alone|begone|flee|fus ro dah")
var/static/regex/whoareyou_words = regex("who are you|say your name|state your name|identify")
var/static/regex/saymyname_words = regex("say my name")
var/static/regex/knockknock_words = regex("knock knock")
var/static/regex/statelaws_words = regex("state laws|state your laws")
var/static/regex/move_words = regex("move")
var/static/regex/walk_words = regex("walk|slow down")
var/static/regex/run_words = regex("run")
var/static/regex/helpintent_words = regex("help")
var/static/regex/disarmintent_words = regex("disarm")
var/static/regex/grabintent_words = regex("grab")
var/static/regex/harmintent_words = regex("harm|fight")
var/static/regex/throwmode_words = regex("throw|catch")
var/static/regex/flip_words = regex("flip|rotate|revolve|roll|somersault")
var/static/regex/rest_words = regex("rest")
var/static/regex/getup_words = regex("get up")
var/static/regex/sit_words = regex("sit")
var/static/regex/stand_words = regex("stand")
var/static/regex/dance_words = regex("dance")
var/static/regex/jump_words = regex("jump")
var/static/regex/salute_words = regex("salute")
var/static/regex/deathgasp_words = regex("play dead")
var/static/regex/clap_words = regex("clap|applaud")
var/static/regex/honk_words = regex("ho+nk") //hooooooonk
var/static/regex/multispin_words = regex("like a record baby")
GLOBAL_DATUM_INIT(stun_words, /regex, regex("stop|wait|stand still|hold on|halt"))
GLOBAL_DATUM_INIT(weaken_words, /regex, regex("drop|fall|trip"))
GLOBAL_DATUM_INIT(sleep_words, /regex, regex("sleep|slumber"))
GLOBAL_DATUM_INIT(vomit_words, /regex, regex("vomit|throw up"))
GLOBAL_DATUM_INIT(silence_words, /regex, regex("shut up|silence|ssh|quiet|hush"))
GLOBAL_DATUM_INIT(hallucinate_words, /regex, regex("see the truth|hallucinate"))
GLOBAL_DATUM_INIT(wakeup_words, /regex, regex("wake up|awaken"))
GLOBAL_DATUM_INIT(heal_words, /regex, regex("live|heal|survive|mend|heroes never die"))
GLOBAL_DATUM_INIT(hurt_words, /regex, regex("die|suffer"))
GLOBAL_DATUM_INIT(bleed_words, /regex, regex("bleed"))
GLOBAL_DATUM_INIT(burn_words, /regex, regex("burn|ignite"))
GLOBAL_DATUM_INIT(repulse_words, /regex, regex("shoo|go away|leave me alone|begone|flee|fus ro dah"))
GLOBAL_DATUM_INIT(whoareyou_words, /regex, regex("who are you|say your name|state your name|identify"))
GLOBAL_DATUM_INIT(saymyname_words, /regex, regex("say my name"))
GLOBAL_DATUM_INIT(knockknock_words, /regex, regex("knock knock"))
GLOBAL_DATUM_INIT(statelaws_words, /regex, regex("state laws|state your laws"))
GLOBAL_DATUM_INIT(move_words, /regex, regex("move"))
GLOBAL_DATUM_INIT(walk_words, /regex, regex("walk|slow down"))
GLOBAL_DATUM_INIT(run_words, /regex, regex("run"))
GLOBAL_DATUM_INIT(helpintent_words, /regex, regex("help"))
GLOBAL_DATUM_INIT(disarmintent_words, /regex, regex("disarm"))
GLOBAL_DATUM_INIT(grabintent_words, /regex, regex("grab"))
GLOBAL_DATUM_INIT(harmintent_words, /regex, regex("harm|fight"))
GLOBAL_DATUM_INIT(throwmode_words, /regex, regex("throw|catch"))
GLOBAL_DATUM_INIT(flip_words, /regex, regex("flip|rotate|revolve|roll|somersault"))
GLOBAL_DATUM_INIT(rest_words, /regex, regex("rest"))
GLOBAL_DATUM_INIT(getup_words, /regex, regex("get up"))
GLOBAL_DATUM_INIT(sit_words, /regex, regex("sit"))
GLOBAL_DATUM_INIT(stand_words, /regex, regex("stand"))
GLOBAL_DATUM_INIT(dance_words, /regex, regex("dance"))
GLOBAL_DATUM_INIT(jump_words, /regex, regex("jump"))
GLOBAL_DATUM_INIT(salute_words, /regex, regex("salute"))
GLOBAL_DATUM_INIT(deathgasp_words, /regex, regex("play dead"))
GLOBAL_DATUM_INIT(clap_words, /regex, regex("clap|applaud"))
GLOBAL_DATUM_INIT(honk_words, /regex, regex("ho+nk")) //hooooooonk
GLOBAL_DATUM_INIT(multispin_words, /regex, regex("like a record baby"))
/obj/item/organ/internal/vocal_cords //organs that are activated through speech with the :x channel
name = "vocal cords"
@@ -127,7 +127,7 @@ var/static/regex/multispin_words = regex("like a record baby")
/obj/item/organ/internal/vocal_cords/colossus/prepare_eat()
return
/obj/item/organ/internal/vocal_cords/colossus/can_speak_with()
if(world.time < next_command)
to_chat(owner, "<span class='notice'>You must wait [(next_command - world.time)/10] seconds before Speaking again.</span>")
@@ -172,7 +172,7 @@ var/static/regex/multispin_words = regex("like a record baby")
if(owner.mind.isholy)
power_multiplier *= 2
//Command staff has authority
if(owner.mind.assigned_role in command_positions)
if(owner.mind.assigned_role in GLOB.command_positions)
power_multiplier *= 1.4
//Why are you speaking
if(owner.mind.assigned_role == "Mime")
@@ -210,34 +210,34 @@ var/static/regex/multispin_words = regex("like a record baby")
message = copytext(message, 0, 1)+copytext(message, 1 + length(found_string), length(message) + 1)
//STUN
if(findtext(message, stun_words))
if(findtext(message, GLOB.stun_words))
for(var/V in listeners)
var/mob/living/L = V
L.Stun(3 * power_multiplier)
next_command = world.time + cooldown_stun
//WEAKEN
else if(findtext(message, weaken_words))
else if(findtext(message, GLOB.weaken_words))
for(var/V in listeners)
var/mob/living/L = V
L.Weaken(3 * power_multiplier)
next_command = world.time + cooldown_stun
//SLEEP
else if((findtext(message, sleep_words)))
else if((findtext(message, GLOB.sleep_words)))
for(var/V in listeners)
var/mob/living/L = V
L.Sleeping(2 * power_multiplier)
next_command = world.time + cooldown_stun
//VOMIT
else if((findtext(message, vomit_words)))
else if((findtext(message, GLOB.vomit_words)))
for(var/mob/living/carbon/C in listeners)
C.vomit(10 * power_multiplier)
next_command = world.time + cooldown_stun
//SILENCE
else if((findtext(message, silence_words)))
else if((findtext(message, GLOB.silence_words)))
for(var/mob/living/carbon/C in listeners)
if(owner.mind && (owner.mind.assigned_role == "Librarian" || owner.mind.assigned_role == "Mime"))
power_multiplier *= 3
@@ -245,41 +245,41 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_stun
//HALLUCINATE
else if((findtext(message, hallucinate_words)))
else if((findtext(message, GLOB.hallucinate_words)))
for(var/V in listeners)
var/mob/living/L = V
new /obj/effect/hallucination/delusion(get_turf(L),L,duration=150 * power_multiplier,skip_nearby=0)
next_command = world.time + cooldown_meme
//WAKE UP
else if((findtext(message, wakeup_words)))
else if((findtext(message, GLOB.wakeup_words)))
for(var/V in listeners)
var/mob/living/L = V
L.SetSleeping(0)
next_command = world.time + cooldown_damage
//HEAL
else if((findtext(message, heal_words)))
else if((findtext(message, GLOB.heal_words)))
for(var/V in listeners)
var/mob/living/L = V
L.heal_overall_damage(10 * power_multiplier, 10 * power_multiplier, TRUE, 0, 0)
next_command = world.time + cooldown_damage
//BRUTE DAMAGE
else if((findtext(message, hurt_words)))
else if((findtext(message, GLOB.hurt_words)))
for(var/V in listeners)
var/mob/living/L = V
L.apply_damage(15 * power_multiplier, def_zone = "chest")
next_command = world.time + cooldown_damage
//BLEED
else if((findtext(message, bleed_words)))
else if((findtext(message, GLOB.bleed_words)))
for(var/mob/living/carbon/human/H in listeners)
H.bleed_rate += (5 * power_multiplier)
next_command = world.time + cooldown_damage
//FIRE
else if((findtext(message, burn_words)))
else if((findtext(message, GLOB.burn_words)))
for(var/V in listeners)
var/mob/living/L = V
L.adjust_fire_stacks(1 * power_multiplier)
@@ -287,7 +287,7 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_damage
//REPULSE
else if((findtext(message, repulse_words)))
else if((findtext(message, GLOB.repulse_words)))
for(var/V in listeners)
var/mob/living/L = V
var/throwtarget = get_edge_target_turf(owner, get_dir(owner, get_step_away(L, owner)))
@@ -295,7 +295,7 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_damage
//WHO ARE YOU?
else if((findtext(message, whoareyou_words)))
else if((findtext(message, GLOB.whoareyou_words)))
for(var/V in listeners)
var/mob/living/L = V
/*if(L.mind && L.mind.devilinfo)
@@ -305,34 +305,34 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_meme
//SAY MY NAME
else if((findtext(message, saymyname_words)))
else if((findtext(message, GLOB.saymyname_words)))
for(var/V in listeners)
var/mob/living/L = V
L.say("[owner.name]!") //"Unknown!"
next_command = world.time + cooldown_meme
//KNOCK KNOCK
else if((findtext(message, knockknock_words)))
else if((findtext(message, GLOB.knockknock_words)))
for(var/V in listeners)
var/mob/living/L = V
L.say("Who's there?")
next_command = world.time + cooldown_meme
//STATE LAWS
else if((findtext(message, statelaws_words)))
else if((findtext(message, GLOB.statelaws_words)))
for(var/mob/living/silicon/S in listeners)
S.statelaws(S.laws)
next_command = world.time + cooldown_stun
//MOVE
else if((findtext(message, move_words)))
else if((findtext(message, GLOB.move_words)))
for(var/V in listeners)
var/mob/living/L = V
step(L, pick(cardinal))
step(L, pick(GLOB.cardinal))
next_command = world.time + cooldown_meme
//WALK
else if((findtext(message, walk_words)))
else if((findtext(message, GLOB.walk_words)))
for(var/V in listeners)
var/mob/living/L = V
if(L.m_intent != MOVE_INTENT_WALK)
@@ -342,7 +342,7 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_meme
//RUN
else if((findtext(message, run_words)))
else if((findtext(message, GLOB.run_words)))
for(var/V in listeners)
var/mob/living/L = V
if(L.m_intent != MOVE_INTENT_RUN)
@@ -352,44 +352,44 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_meme
//HELP INTENT
else if((findtext(message, helpintent_words)))
else if((findtext(message, GLOB.helpintent_words)))
for(var/mob/living/carbon/human/H in listeners)
H.a_intent_change(INTENT_HELP)
next_command = world.time + cooldown_meme
//DISARM INTENT
else if((findtext(message, disarmintent_words)))
else if((findtext(message, GLOB.disarmintent_words)))
for(var/mob/living/carbon/human/H in listeners)
H.a_intent_change(INTENT_DISARM)
next_command = world.time + cooldown_meme
//GRAB INTENT
else if((findtext(message, grabintent_words)))
else if((findtext(message, GLOB.grabintent_words)))
for(var/mob/living/carbon/human/H in listeners)
H.a_intent_change(INTENT_GRAB)
next_command = world.time + cooldown_meme
//HARM INTENT
else if((findtext(message, harmintent_words)))
else if((findtext(message, GLOB.harmintent_words)))
for(var/mob/living/carbon/human/H in listeners)
H.a_intent_change(INTENT_HARM)
next_command = world.time + cooldown_meme
//THROW/CATCH
else if((findtext(message, throwmode_words)))
else if((findtext(message, GLOB.throwmode_words)))
for(var/mob/living/carbon/C in listeners)
C.throw_mode_on()
next_command = world.time + cooldown_meme
//FLIP
else if((findtext(message, flip_words)))
else if((findtext(message, GLOB.flip_words)))
for(var/V in listeners)
var/mob/living/L = V
L.emote("flip")
next_command = world.time + cooldown_meme
//REST
else if((findtext(message, rest_words)))
else if((findtext(message, GLOB.rest_words)))
for(var/V in listeners)
var/mob/living/L = V
if(!L.resting)
@@ -397,7 +397,7 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_meme
//GET UP
else if((findtext(message, getup_words)))
else if((findtext(message, GLOB.getup_words)))
for(var/V in listeners)
var/mob/living/L = V
if(L.resting)
@@ -408,7 +408,7 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_damage
//SIT
else if((findtext(message, sit_words)))
else if((findtext(message, GLOB.sit_words)))
for(var/V in listeners)
var/mob/living/L = V
for(var/obj/structure/chair/chair in get_turf(L))
@@ -417,7 +417,7 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_meme
//STAND UP
else if((findtext(message, stand_words)))
else if((findtext(message, GLOB.stand_words)))
for(var/V in listeners)
var/mob/living/L = V
if(L.buckled && istype(L.buckled, /obj/structure/chair))
@@ -425,14 +425,14 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_meme
//DANCE
else if((findtext(message, dance_words)))
else if((findtext(message, GLOB.dance_words)))
for(var/V in listeners)
var/mob/living/L = V
L.emote("dance")
next_command = world.time + cooldown_meme
//JUMP
else if((findtext(message, jump_words)))
else if((findtext(message, GLOB.jump_words)))
for(var/V in listeners)
var/mob/living/L = V
L.say("HOW HIGH?!!")
@@ -440,28 +440,28 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_meme
//SALUTE
else if((findtext(message, salute_words)))
else if((findtext(message, GLOB.salute_words)))
for(var/V in listeners)
var/mob/living/L = V
L.emote("salute")
next_command = world.time + cooldown_meme
//PLAY DEAD
else if((findtext(message, deathgasp_words)))
else if((findtext(message, GLOB.deathgasp_words)))
for(var/V in listeners)
var/mob/living/L = V
L.emote("deathgasp")
next_command = world.time + cooldown_meme
//PLEASE CLAP
else if((findtext(message, clap_words)))
else if((findtext(message, GLOB.clap_words)))
for(var/V in listeners)
var/mob/living/L = V
L.emote("clap")
next_command = world.time + cooldown_meme
//HONK
else if((findtext(message, honk_words)))
else if((findtext(message, GLOB.honk_words)))
spawn(25)
playsound(get_turf(owner), 'sound/items/bikehorn.ogg', 300, 1)
if(owner.mind && owner.mind.assigned_role == "Clown")
@@ -472,7 +472,7 @@ var/static/regex/multispin_words = regex("like a record baby")
next_command = world.time + cooldown_meme
//RIGHT ROUND
else if((findtext(message, multispin_words)))
else if((findtext(message, GLOB.multispin_words)))
for(var/V in listeners)
var/mob/living/L = V
L.SpinAnimation(speed = 10, loops = 5)
+1 -1
View File
@@ -575,7 +575,7 @@
..()
/datum/surgery_step/robotics/external/customize_appearance/end_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool,datum/surgery/surgery)
var/chosen_appearance = input(user, "Select the company appearance for this limb.", "Limb Company Selection") as null|anything in selectable_robolimbs
var/chosen_appearance = input(user, "Select the company appearance for this limb.", "Limb Company Selection") as null|anything in GLOB.selectable_robolimbs
if(!chosen_appearance)
return FALSE
var/obj/item/organ/external/affected = target.get_organ(target_zone)