From 3d9e907532c273d00e5385a26e61c70d86c144ad Mon Sep 17 00:00:00 2001 From: kappa-sama Date: Tue, 12 Jan 2021 02:19:13 -0500 Subject: [PATCH] fixed --- code/modules/spells/spell_types/togglebuff.dm | 35 +++++++++++++++++++ tgstation.dme | 1 + 2 files changed, 36 insertions(+) create mode 100644 code/modules/spells/spell_types/togglebuff.dm diff --git a/code/modules/spells/spell_types/togglebuff.dm b/code/modules/spells/spell_types/togglebuff.dm new file mode 100644 index 0000000000..404e67b649 --- /dev/null +++ b/code/modules/spells/spell_types/togglebuff.dm @@ -0,0 +1,35 @@ +/obj/effect/proc_holder/spell/self/mantra + name = "Inner Mantra" + desc = "Control your Inner Mantra, gaining strength and durability for a cost." + clothes_req = NONE + mobs_whitelist = list(/mob/living/carbon/human) + charge_max = 100 + antimagic_allowed = TRUE + invocation = "SU'UP'AH S'EI YEN" + invocation_type = "shout" + level_max = 0 + cooldown_min = 100 + +/obj/effect/proc_holder/spell/self/mantra/cast(mob/living/carbon/human/user) + if(user.has_status_effect(STATUS_EFFECT_MANTRA) + user.remove_status_effect(STATUS_EFFECT_MANTRA) + else + user.add_status_effect(STATUS_EFFECT_MANTRA) + +/obj/effect/proc_holder/spell/self/asura + name = "Asura's Wrath" + desc = "Unleash your rage as corrosive power fills your muscles." + clothes_req = NONE + mobs_whitelist = list(/mob/living/carbon/human) + charge_max = 100 + antimagic_allowed = TRUE + invocation = "KYE Y'O'KEN" + invocation_type = "shout" + level_max = 0 + cooldown_min = 100 + +/obj/effect/proc_holder/spell/self/asura/cast(mob/living/carbon/human/user) + if(user.has_status_effect(STATUS_EFFECT_ASURA) + user.remove_status_effect(STATUS_EFFECT_ASURA) + else + user.add_status_effect(STATUS_EFFECT_ASURA) diff --git a/tgstation.dme b/tgstation.dme index 99130d1740..7c43ea60b6 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3402,6 +3402,7 @@ #include "code\modules\spells\spell_types\taeclowndo.dm" #include "code\modules\spells\spell_types\telepathy.dm" #include "code\modules\spells\spell_types\the_traps.dm" +#include "code\modules\spells\spell_types\togglebuff.dm" #include "code\modules\spells\spell_types\touch_attacks.dm" #include "code\modules\spells\spell_types\trigger.dm" #include "code\modules\spells\spell_types\turf_teleport.dm"