mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Conversion many Globals to Managed Globals (Part 1) (#10665)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
06f0821bcf
commit
f7219329ca
@@ -26,11 +26,11 @@
|
||||
var/A = null
|
||||
|
||||
if(!randomise_selection)
|
||||
A = tgui_input_list(user, "Area to teleport to", "Teleport", teleportlocs)
|
||||
A = tgui_input_list(user, "Area to teleport to", "Teleport", GLOB.teleportlocs)
|
||||
else
|
||||
A = pick(teleportlocs)
|
||||
A = pick(GLOB.teleportlocs)
|
||||
|
||||
var/area/thearea = teleportlocs[A]
|
||||
var/area/thearea = GLOB.teleportlocs[A]
|
||||
|
||||
return list(thearea)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
return list(user)
|
||||
|
||||
/spell/rune_write/cast(null, mob/user = usr)
|
||||
if(!cultwords["travel"])
|
||||
if(!GLOB.cultwords["travel"])
|
||||
runerandom()
|
||||
var/list/runes = list("Teleport", "Teleport Other", "Spawn a Tome", "Change Construct Type", "Convert", "EMP", "Drain Blood", "See Invisible", "Resurrect", "Hide Runes", "Reveal Runes", "Astral Journey", "Manifest a Ghost", "Imbue Talisman", "Sacrifice", "Wall", "Free Cultist", "Summon Cultist", "Deafen", "Blind", "BloodBoil", "Communicate", "Stun")
|
||||
var/r = tgui_input_list(user, "Choose a rune to scribe", "Rune Scribing", runes, timeout=30 SECONDS)
|
||||
@@ -30,145 +30,145 @@
|
||||
if(cast_check(1))
|
||||
var/beacon
|
||||
if(user)
|
||||
beacon = tgui_input_list(user, "Select the last rune", "Rune Scribing", rnwords, timeout=30 SECONDS)
|
||||
R.word1=cultwords["travel"]
|
||||
R.word2=cultwords["self"]
|
||||
beacon = tgui_input_list(user, "Select the last rune", "Rune Scribing", GLOB.rnwords, timeout=30 SECONDS)
|
||||
R.word1=GLOB.cultwords["travel"]
|
||||
R.word2=GLOB.cultwords["self"]
|
||||
R.word3=beacon
|
||||
R.check_icon()
|
||||
if("Teleport Other")
|
||||
if(cast_check(1))
|
||||
var/beacon
|
||||
if(user)
|
||||
beacon = tgui_input_list(user, "Select the last rune", "Rune Scribing", rnwords, timeout=30 SECONDS)
|
||||
R.word1=cultwords["travel"]
|
||||
R.word2=cultwords["other"]
|
||||
beacon = tgui_input_list(user, "Select the last rune", "Rune Scribing", GLOB.rnwords, timeout=30 SECONDS)
|
||||
R.word1=GLOB.cultwords["travel"]
|
||||
R.word2=GLOB.cultwords["other"]
|
||||
R.word3=beacon
|
||||
R.check_icon()
|
||||
if("Spawn a Tome")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["see"]
|
||||
R.word2=cultwords["blood"]
|
||||
R.word3=cultwords["hell"]
|
||||
R.word1=GLOB.cultwords["see"]
|
||||
R.word2=GLOB.cultwords["blood"]
|
||||
R.word3=GLOB.cultwords["hell"]
|
||||
R.check_icon()
|
||||
if("Change Construct Type")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["hell"]
|
||||
R.word2=cultwords["destroy"]
|
||||
R.word3=cultwords["other"]
|
||||
R.word1=GLOB.cultwords["hell"]
|
||||
R.word2=GLOB.cultwords["destroy"]
|
||||
R.word3=GLOB.cultwords["other"]
|
||||
R.check_icon()
|
||||
if("Convert")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["join"]
|
||||
R.word2=cultwords["blood"]
|
||||
R.word3=cultwords["self"]
|
||||
R.word1=GLOB.cultwords["join"]
|
||||
R.word2=GLOB.cultwords["blood"]
|
||||
R.word3=GLOB.cultwords["self"]
|
||||
R.check_icon()
|
||||
if("EMP")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["destroy"]
|
||||
R.word2=cultwords["see"]
|
||||
R.word3=cultwords["technology"]
|
||||
R.word1=GLOB.cultwords["destroy"]
|
||||
R.word2=GLOB.cultwords["see"]
|
||||
R.word3=GLOB.cultwords["technology"]
|
||||
R.check_icon()
|
||||
if("Drain Blood")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["travel"]
|
||||
R.word2=cultwords["blood"]
|
||||
R.word3=cultwords["self"]
|
||||
R.word1=GLOB.cultwords["travel"]
|
||||
R.word2=GLOB.cultwords["blood"]
|
||||
R.word3=GLOB.cultwords["self"]
|
||||
R.check_icon()
|
||||
if("See Invisible")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["see"]
|
||||
R.word2=cultwords["hell"]
|
||||
R.word3=cultwords["join"]
|
||||
R.word1=GLOB.cultwords["see"]
|
||||
R.word2=GLOB.cultwords["hell"]
|
||||
R.word3=GLOB.cultwords["join"]
|
||||
R.check_icon()
|
||||
if("Resurrect")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["blood"]
|
||||
R.word2=cultwords["join"]
|
||||
R.word3=cultwords["hell"]
|
||||
R.word1=GLOB.cultwords["blood"]
|
||||
R.word2=GLOB.cultwords["join"]
|
||||
R.word3=GLOB.cultwords["hell"]
|
||||
R.check_icon()
|
||||
if("Hide Runes")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["hide"]
|
||||
R.word2=cultwords["see"]
|
||||
R.word3=cultwords["blood"]
|
||||
R.word1=GLOB.cultwords["hide"]
|
||||
R.word2=GLOB.cultwords["see"]
|
||||
R.word3=GLOB.cultwords["blood"]
|
||||
R.check_icon()
|
||||
if("Astral Journey")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["hell"]
|
||||
R.word2=cultwords["travel"]
|
||||
R.word3=cultwords["self"]
|
||||
R.word1=GLOB.cultwords["hell"]
|
||||
R.word2=GLOB.cultwords["travel"]
|
||||
R.word3=GLOB.cultwords["self"]
|
||||
R.check_icon()
|
||||
if("Manifest a Ghost")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["blood"]
|
||||
R.word2=cultwords["see"]
|
||||
R.word3=cultwords["travel"]
|
||||
R.word1=GLOB.cultwords["blood"]
|
||||
R.word2=GLOB.cultwords["see"]
|
||||
R.word3=GLOB.cultwords["travel"]
|
||||
R.check_icon()
|
||||
if("Imbue Talisman")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["hell"]
|
||||
R.word2=cultwords["technology"]
|
||||
R.word3=cultwords["join"]
|
||||
R.word1=GLOB.cultwords["hell"]
|
||||
R.word2=GLOB.cultwords["technology"]
|
||||
R.word3=GLOB.cultwords["join"]
|
||||
R.check_icon()
|
||||
if("Sacrifice")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["hell"]
|
||||
R.word2=cultwords["blood"]
|
||||
R.word3=cultwords["join"]
|
||||
R.word1=GLOB.cultwords["hell"]
|
||||
R.word2=GLOB.cultwords["blood"]
|
||||
R.word3=GLOB.cultwords["join"]
|
||||
R.check_icon()
|
||||
if("Reveal Runes")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["blood"]
|
||||
R.word2=cultwords["see"]
|
||||
R.word3=cultwords["hide"]
|
||||
R.word1=GLOB.cultwords["blood"]
|
||||
R.word2=GLOB.cultwords["see"]
|
||||
R.word3=GLOB.cultwords["hide"]
|
||||
R.check_icon()
|
||||
if("Wall")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["destroy"]
|
||||
R.word2=cultwords["travel"]
|
||||
R.word3=cultwords["self"]
|
||||
R.word1=GLOB.cultwords["destroy"]
|
||||
R.word2=GLOB.cultwords["travel"]
|
||||
R.word3=GLOB.cultwords["self"]
|
||||
R.check_icon()
|
||||
if("Freedom")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["travel"]
|
||||
R.word2=cultwords["technology"]
|
||||
R.word3=cultwords["other"]
|
||||
R.word1=GLOB.cultwords["travel"]
|
||||
R.word2=GLOB.cultwords["technology"]
|
||||
R.word3=GLOB.cultwords["other"]
|
||||
R.check_icon()
|
||||
if("Cultsummon")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["join"]
|
||||
R.word2=cultwords["other"]
|
||||
R.word3=cultwords["self"]
|
||||
R.word1=GLOB.cultwords["join"]
|
||||
R.word2=GLOB.cultwords["other"]
|
||||
R.word3=GLOB.cultwords["self"]
|
||||
R.check_icon()
|
||||
if("Deafen")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["hide"]
|
||||
R.word2=cultwords["other"]
|
||||
R.word3=cultwords["see"]
|
||||
R.word1=GLOB.cultwords["hide"]
|
||||
R.word2=GLOB.cultwords["other"]
|
||||
R.word3=GLOB.cultwords["see"]
|
||||
R.check_icon()
|
||||
if("Blind")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["destroy"]
|
||||
R.word2=cultwords["see"]
|
||||
R.word3=cultwords["other"]
|
||||
R.word1=GLOB.cultwords["destroy"]
|
||||
R.word2=GLOB.cultwords["see"]
|
||||
R.word3=GLOB.cultwords["other"]
|
||||
R.check_icon()
|
||||
if("BloodBoil")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["destroy"]
|
||||
R.word2=cultwords["see"]
|
||||
R.word3=cultwords["blood"]
|
||||
R.word1=GLOB.cultwords["destroy"]
|
||||
R.word2=GLOB.cultwords["see"]
|
||||
R.word3=GLOB.cultwords["blood"]
|
||||
R.check_icon()
|
||||
if("Communicate")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["self"]
|
||||
R.word2=cultwords["other"]
|
||||
R.word3=cultwords["technology"]
|
||||
R.word1=GLOB.cultwords["self"]
|
||||
R.word2=GLOB.cultwords["other"]
|
||||
R.word3=GLOB.cultwords["technology"]
|
||||
R.check_icon()
|
||||
if("Stun")
|
||||
if(cast_check(1))
|
||||
R.word1=cultwords["join"]
|
||||
R.word2=cultwords["hide"]
|
||||
R.word3=cultwords["technology"]
|
||||
R.word1=GLOB.cultwords["join"]
|
||||
R.word2=GLOB.cultwords["hide"]
|
||||
R.word3=GLOB.cultwords["technology"]
|
||||
R.check_icon()
|
||||
else
|
||||
to_chat(user, span_warning("You do not have enough space to write a proper rune."))
|
||||
|
||||
Reference in New Issue
Block a user