Files
vgstation13/code/modules/spells/general/rune_write.dm
ShiftyRail 140a1a663e Various cult 2.0 bugfixes (#19944)
* Various cult 2.0 bugfixes

* Forgot

* I accidentaly removed the ability to draw runes

* Fixed a few things. Removed outdated comment.
2018-10-04 00:38:53 -04:00

172 lines
4.8 KiB
Plaintext

/spell/rune_write
name = "Scribe a Rune"
desc = "Let's you instantly manifest a working rune."
user_type = USER_TYPE_CULT
school = "evocation"
charge_max = 100
charge_type = Sp_RECHARGE
invocation_type = SpI_NONE
spell_flags = CONSTRUCT_CHECK
hud_state = "const_rune"
smoke_amt = 1
/spell/rune_write/choose_targets(mob/user = usr)
return list(user)
/spell/rune_write/cast(null, mob/user = usr)
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 = input(user, "Choose a rune to scribe", "Rune Scribing") in runes //not cancellable.
var/obj/effect/rune_legacy/R = new /obj/effect/rune_legacy(user.loc)
var/list/cultwords = R.cultwords
if(istype(user.loc,/turf))
switch(r)
if("Teleport")
if(cast_check(1))
var/beacon
if(user)
beacon = input(user, "Select the last rune", "Rune Scribing") in rnwords
R.word1=cultwords["travel"]
R.word2=cultwords["self"]
R.word3=beacon
R.check_icon()
if("Teleport Other")
if(cast_check(1))
var/beacon
if(user)
beacon = input(user, "Select the last rune", "Rune Scribing") in rnwords
R.word1=cultwords["travel"]
R.word2=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.check_icon()
if("Change Construct Type")
if(cast_check(1))
R.word1=cultwords["hell"]
R.word2=cultwords["destroy"]
R.word3=cultwords["other"]
R.check_icon()
if("Convert")
if(cast_check(1))
R.word1=cultwords["join"]
R.word2=cultwords["blood"]
R.word3=cultwords["self"]
R.check_icon()
if("EMP")
if(cast_check(1))
R.word1=cultwords["destroy"]
R.word2=cultwords["see"]
R.word3=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.check_icon()
if("See Invisible")
if(cast_check(1))
R.word1=cultwords["see"]
R.word2=cultwords["hell"]
R.word3=cultwords["join"]
R.check_icon()
if("Resurrect")
if(cast_check(1))
R.word1=cultwords["blood"]
R.word2=cultwords["join"]
R.word3=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.check_icon()
if("Astral Journey")
if(cast_check(1))
R.word1=cultwords["hell"]
R.word2=cultwords["travel"]
R.word3=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.check_icon()
if("Imbue Talisman")
if(cast_check(1))
R.word1=cultwords["hell"]
R.word2=cultwords["technology"]
R.word3=cultwords["join"]
R.check_icon()
if("Sacrifice")
if(cast_check(1))
R.word1=cultwords["hell"]
R.word2=cultwords["blood"]
R.word3=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.check_icon()
if("Wall")
if(cast_check(1))
R.word1=cultwords["destroy"]
R.word2=cultwords["travel"]
R.word3=cultwords["self"]
R.check_icon()
if("Freedom")
if(cast_check(1))
R.word1=cultwords["travel"]
R.word2=cultwords["technology"]
R.word3=cultwords["other"]
R.check_icon()
if("Cultsummon")
if(cast_check(1))
R.word1=cultwords["join"]
R.word2=cultwords["other"]
R.word3=cultwords["self"]
R.check_icon()
if("Deafen")
if(cast_check(1))
R.word1=cultwords["hide"]
R.word2=cultwords["other"]
R.word3=cultwords["see"]
R.check_icon()
if("Blind")
if(cast_check(1))
R.word1=cultwords["destroy"]
R.word2=cultwords["see"]
R.word3=cultwords["other"]
R.check_icon()
if("BloodBoil")
if(cast_check(1))
R.word1=cultwords["destroy"]
R.word2=cultwords["see"]
R.word3=cultwords["blood"]
R.check_icon()
if("Communicate")
if(cast_check(1))
R.word1=cultwords["self"]
R.word2=cultwords["other"]
R.word3=cultwords["technology"]
R.check_icon()
if("Stun")
if(cast_check(1))
R.word1=cultwords["join"]
R.word2=cultwords["hide"]
R.word3=cultwords["technology"]
R.check_icon()
else
to_chat(user, "<span class='warning'>You do not have enough space to write a proper rune.</span>")