Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Fix GLOB. #10
Browse files Browse the repository at this point in the history
  • Loading branch information
AloeNeverDie committed Apr 7, 2024
1 parent 1108447 commit e400280
Show file tree
Hide file tree
Showing 16 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion code/modules/modular_computers/terminal/commands/ban.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
return network_error()
if(!length(arguments))
if (length(GLOB.ntnet_global.banned_nids))
return list("[name]: The following network ids are banned:", jointext(ntnet_global.banned_nids, ", "))
return list("[name]: The following network ids are banned:", jointext(GLOB.ntnet_global.banned_nids, ", "))
else
return "[name]: There are no banned network ids."
else if(length(arguments) == 2)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/modular_computers/terminal/commands/log.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
return "[name]: Error; unable to send email. [EMAIL_SYSADMIN] unavailable or missing."
var/datum/computer_file/data/email_message/M = new()
M.title = "!SENSITIVE! - NTNet System log backup"
M.stored_data = jointext(ntnet_global.logs, "<br>")
M.stored_data = jointext(GLOB.ntnet_global.logs, "<br>")
M.source = S.login
if(!S.send_mail(argument, M))
return "[name]: Error; could not send email to '[argument]'."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ GLOBAL_LIST_INIT(terminal_fails, init_subtypes(/datum/terminal_skill_fail))
return list()
var/datum/computer_file/data/email_message/M = new()
M.title = "!SENSITIVE! - NTNet System log backup"
M.stored_data = jointext(ntnet_global.logs, "<br>")
M.stored_data = jointext(GLOB.ntnet_global.logs, "<br>")
M.source = S.login
if(!S.send_mail(EMAIL_BROADCAST, M))
return list()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@
return

if(href_list["togglep"])
if(!wires.IsIndexCut(PARTICLE_TOGGLE_WIRE))
if(!wires.IsIndexCut(GLOB.PARTICLE_TOGGLE_WIRE))
src.toggle_power()
else if(href_list["scan"])
src.part_scan()

else if(href_list["strengthup"])
if(!wires.IsIndexCut(PARTICLE_STRENGTH_WIRE))
if(!wires.IsIndexCut(GLOB.PARTICLE_STRENGTH_WIRE))
add_strength()

else if(href_list["strengthdown"])
if(!wires.IsIndexCut(PARTICLE_STRENGTH_WIRE))
if(!wires.IsIndexCut(GLOB.PARTICLE_STRENGTH_WIRE))
remove_strength()

src.updateDialog()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@

glass_name = "ice"
glass_desc = "Generally, you're supposed to put something else in there too..."
glass_icon = DRINK_ICON_NOISY
glass_icon = GLOB.DRINK_ICON_NOISY

heating_message = "cracks and melts."
heating_products = list(/datum/reagent/water)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
value = DISPENSER_REAGENT_VALUE

/datum/reagent/carbon/affect_ingest(mob/living/carbon/M, removed)
if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
var/datum/reagents/ingested = M.get_ingested_reagents()
if (ingested && length(ingested.reagent_list) > 1) // Need to have at least 2 reagents - cabon and something to remove
Expand Down Expand Up @@ -428,7 +428,7 @@

glass_name = "sugar"
glass_desc = "The organic compound commonly known as table sugar and sometimes called saccharose. This white, odorless, crystalline powder has a pleasing, sweet taste."
glass_icon = DRINK_ICON_NOISY
glass_icon = GLOB.DRINK_ICON_NOISY
value = DISPENSER_REAGENT_VALUE

/datum/reagent/sugar/affect_blood(mob/living/carbon/human/M, removed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@

/datum/reagent/drink/juice/lime/affect_ingest(mob/living/carbon/M, removed)
..()
if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
M.adjustToxLoss(-0.5 * removed)

Expand All @@ -117,7 +117,7 @@

/datum/reagent/drink/juice/orange/affect_ingest(mob/living/carbon/M, removed)
..()
if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
M.adjustOxyLoss(-2 * removed)

Expand Down Expand Up @@ -177,7 +177,7 @@

/datum/reagent/drink/juice/tomato/affect_ingest(mob/living/carbon/M, removed)
..()
if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
M.heal_organ_damage(0, 0.5 * removed)

Expand Down Expand Up @@ -279,7 +279,7 @@
..()
holder.remove_reagent(/datum/reagent/capsaicin, 10 * removed)

if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
M.heal_organ_damage(0.5 * removed, 0)

Expand Down Expand Up @@ -332,7 +332,7 @@
if(adj_temp > 0)
holder.remove_reagent(/datum/reagent/frostoil, 10 * removed)

if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
..()

Expand Down Expand Up @@ -360,7 +360,7 @@

glass_name = "iced coffee"
glass_desc = "A drink to perk you up and refresh you!"
glass_special = list(DRINK_ICE)
glass_special = list(GLOB.DRINK_ICE)

/datum/reagent/drink/coffee/soy_latte
name = "Soy Latte"
Expand Down Expand Up @@ -508,7 +508,7 @@

glass_name = "soda water"
glass_desc = "Soda water. Why not make a scotch and soda?"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/grapesoda
name = "Grape Soda"
Expand All @@ -519,7 +519,7 @@

glass_name = "grape soda"
glass_desc = "Looks like a delicious drink!"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/tonic
name = "Tonic Water"
Expand All @@ -543,7 +543,7 @@

glass_name = "lemonade"
glass_desc = "Oh the nostalgia..."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/kiraspecial
name = "Kira Special"
Expand All @@ -554,7 +554,7 @@

glass_name = "Kira Special"
glass_desc = "Long live the guy who everyone had mistaken for a girl. Baka!"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/triplecitrus
name = "Triple Citrus"
Expand All @@ -575,7 +575,7 @@

glass_name = "Orange Soda"
glass_desc = "A surprisingly tasty dye."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/rootbeer
name = "Root WeiBeer"
Expand All @@ -586,7 +586,7 @@

glass_name = "Root Beer"
glass_desc = "Yep that sure is some rooty beer."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/apple_soda
name = "Apple Soda"
Expand All @@ -597,7 +597,7 @@

glass_name = "Apple Soda"
glass_desc = "Disappointing cider."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/strawberry_soda
name = "Strawberry Soda"
Expand All @@ -608,7 +608,7 @@

glass_name = "Strawberry Soda"
glass_desc = "Attractive and alliterative."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/porksoda
name = "Pork Soda"
Expand All @@ -620,7 +620,7 @@

glass_name = "Pork Soda"
glass_desc = "I asked for a glass of PORT!"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/milkshake
name = "Milkshake"
Expand Down Expand Up @@ -658,7 +658,7 @@

glass_name = "Nuka-Cola"
glass_desc = "Don't cry, Don't raise your eye, It's only nuclear wasteland"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/nuka_cola/affect_ingest(mob/living/carbon/M, removed)
..()
Expand Down Expand Up @@ -698,7 +698,7 @@

glass_name = "Space Cola"
glass_desc = "A glass of refreshing Space Cola"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/spacemountainwind
name = "Mountain Wind"
Expand All @@ -711,7 +711,7 @@

glass_name = "Space Mountain Wind"
glass_desc = "Space Mountain Wind. As you know, there are no mountains in space, only wind."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/dr_gibb
name = "Dr. Gibb"
Expand All @@ -733,7 +733,7 @@

glass_name = "Space-up"
glass_desc = "Space-up. It helps keep your cool."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/lemon_lime
name = "Lemon Lime"
Expand All @@ -744,7 +744,7 @@

glass_name = "lemon lime soda"
glass_desc = "A tangy substance made of 0.5% natural citrus!"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/doctor_delight
name = "The Doctor's Delight"
Expand All @@ -759,7 +759,7 @@

/datum/reagent/drink/doctor_delight/affect_ingest(mob/living/carbon/M, removed)
..()
if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
M.adjustOxyLoss(-4 * removed)
M.heal_organ_damage(2 * removed, 2 * removed)
Expand Down Expand Up @@ -795,7 +795,7 @@

/datum/reagent/drink/hell_ramen/affect_ingest(mob/living/carbon/M, removed)
..()
if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
M.bodytemperature += 10 * TEMPERATURE_DAMAGE_COEFFICIENT

Expand Down Expand Up @@ -850,7 +850,7 @@

/datum/reagent/drink/beastenergy/affect_ingest(mob/living/carbon/M, removed)
..()
if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
M.drowsyness = max(0, M.drowsyness - 7)
M.make_jittery(2)
Expand Down Expand Up @@ -957,7 +957,7 @@

glass_name = "Cola Float"
glass_desc = "A delicious combination ofice cream and cola"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/vanilla_cola
name = "Vanilla Cola"
Expand All @@ -970,7 +970,7 @@

glass_name = "Vanilla Cola"
glass_desc = "A glass of refreshing Space Cola with hints of vanilla."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/orange_cola
name = "Orange Cola"
Expand All @@ -983,7 +983,7 @@

glass_name = "Orange Cola"
glass_desc = "A glass of refreshing Space Cola with orange flavoring."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/cherry_cola
name = "Cherry Cola"
Expand All @@ -996,7 +996,7 @@

glass_name = "Cherry Cola"
glass_desc = "A glass of refreshing Space Cola with cherry flavoring."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/coffee/coffee_cola
name = "Coffee Cola"
Expand All @@ -1009,7 +1009,7 @@

glass_name = "Coffee Cola"
glass_desc = "All you need is some bread and butter and honey"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/diet_cola
name = "Diet Cola"
Expand All @@ -1022,7 +1022,7 @@

glass_name = "Diet Cola"
glass_desc = "A glass of refreshing Space Cola. This one's calorie-free!"
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/ionbru
name = "Ion-Bru"
Expand All @@ -1035,7 +1035,7 @@

glass_name = "Ion-Bru"
glass_desc = "The official drink of some faraway, mountainous land."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/ironbru
name = "Iron-Bru"
Expand All @@ -1048,7 +1048,7 @@

glass_name = "Iron-Bru"
glass_desc = "The official drink of shipbuilders."
glass_special = list(DRINK_FIZZ)
glass_special = list(GLOB.DRINK_FIZZ)

/datum/reagent/drink/dandelionburdock
name = "Dandelion and Burdock"
Expand Down Expand Up @@ -1115,7 +1115,7 @@

/datum/reagent/drink/tea/affect_ingest(mob/living/carbon/M, removed)
..()
if (METABOLIC_INERTNESS(M) > TRAIT_LEVEL_MINOR)
if (METABOLIC_INERTNESS(M) > GLOB.TRAIT_LEVEL_MINOR)
return
M.adjustToxLoss(-0.5 * removed)

Expand All @@ -1127,7 +1127,7 @@

glass_name = "iced black tea"
glass_desc = "It's the black tea you know and love, but now it's cold."
glass_special = list(DRINK_ICE)
glass_special = list(GLOB.DRINK_ICE)

/datum/reagent/drink/tea/icetea/sweet
name = "Sweet Black Tea"
Expand Down
Loading

0 comments on commit e400280

Please sign in to comment.