mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Unstable Aura will no longer do a hundred times its intended damage. Gambit should no longer give base spell templates. Wards should die properly now. Track will no longer list the user as a valid option. Shields should now stop projectile effects like stunning, if blocked.
32 lines
1021 B
Plaintext
32 lines
1021 B
Plaintext
/datum/technomancer/spell/gambit
|
|
name = "Gambit"
|
|
desc = "This function causes you to receive a random function, including those which you haven't purchased."
|
|
ability_icon_state = "tech_gambit"
|
|
cost = 50
|
|
obj_path = /obj/item/weapon/spell/gambit
|
|
|
|
/var/global/list/all_technomancer_gambit_spells = typesof(/obj/item/weapon/spell) - list(
|
|
/obj/item/weapon/spell,
|
|
/obj/item/weapon/spell/gambit,
|
|
/obj/item/weapon/spell/projectile,
|
|
/obj/item/weapon/spell/aura,
|
|
/obj/item/weapon/spell/insert,
|
|
/obj/item/weapon/spell/spawner,
|
|
/obj/item/weapon/spell/summon)
|
|
|
|
/obj/item/weapon/spell/gambit
|
|
name = "gambit"
|
|
desc = "Do you feel lucky?"
|
|
icon_state = "gambit"
|
|
cast_methods = CAST_USE
|
|
aspect = ASPECT_UNSTABLE
|
|
|
|
/obj/item/weapon/spell/gambit/on_use_cast(mob/living/carbon/human/user)
|
|
if(pay_energy(200))
|
|
adjust_instability(3)
|
|
var/obj/item/weapon/spell/random_spell = pick(all_technomancer_gambit_spells)
|
|
if(random_spell)
|
|
user.drop_from_inventory(src, null)
|
|
user.place_spell_in_hand(random_spell)
|
|
qdel(src)
|