mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 16:44:33 +01:00
eee8878024
* datumized spells * finished * last changes * conflict * Update code/datums/spells/alien_spells/transfer_plasma.dm * conflicts * shitty runtime fix until i get to this tomorrow * Update code/datums/spell.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spell_handler/alien_spell_handler.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/alien_spells/regurgitate.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/alien_spells/regurgitate.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/bloodcrawl.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/bloodcrawl.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/antagonists/vampire/vampire_powers/hemomancer_powers.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/antagonists/vampire/vampire_powers/vampire_powers.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/awaymissions/mission_code/ruins/wizardcrash.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/research/xenobiology/xenobiology.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/carbon/superheroes.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/conjure.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/ethereal_jaunt.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/emplosion.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/turf_teleport.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/wizard_spells.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/wizard_spells.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/dna/mutations/mutation_powers.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/wizard_spells.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/datums/spells/wizard_spells.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/dna/mutations/mutation_powers.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/gamemodes/miniantags/revenant/revenant_abilities.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * guess who just rework the entire malf ai actionsf ai * gc better --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
75 lines
3.2 KiB
Plaintext
75 lines
3.2 KiB
Plaintext
/datum/spell/touch/banana
|
|
name = "Banana Touch"
|
|
desc = "A spell popular at wizard birthday parties, this spell will put on a clown costume on the target, \
|
|
stun them with a loud HONK, and mutate them to make them more entertaining! \
|
|
Warning : Effects are permanent on non-wizards."
|
|
hand_path = /obj/item/melee/touch_attack/banana
|
|
school = "transmutation"
|
|
|
|
base_cooldown = 30 SECONDS
|
|
clothes_req = TRUE
|
|
cooldown_min = 100 //50 deciseconds reduction per rank
|
|
action_icon_state = "clown"
|
|
|
|
/obj/item/melee/touch_attack/banana
|
|
name = "banana touch"
|
|
desc = "It's time to start clowning around."
|
|
catchphrase = "NWOLC YRGNA"
|
|
on_use_sound = 'sound/items/AirHorn.ogg'
|
|
icon_state = "banana_touch"
|
|
item_state = "banana_touch"
|
|
|
|
/datum/spell/touch/banana/apprentice
|
|
hand_path = /obj/item/melee/touch_attack/banana/apprentice
|
|
|
|
/obj/item/melee/touch_attack/banana/apprentice
|
|
|
|
/obj/item/melee/touch_attack/banana/apprentice/afterattack(atom/target, mob/living/carbon/user, proximity)
|
|
if(iswizard(target) && target != user)
|
|
to_chat(user, "<span class='danger'>Seriously?! Honk THEM, not me!</span>")
|
|
return
|
|
..()
|
|
|
|
/obj/item/melee/touch_attack/banana/afterattack(atom/target, mob/living/carbon/user, proximity)
|
|
if(!proximity || target == user || !ishuman(target) || !iscarbon(user) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
|
|
return
|
|
|
|
var/datum/effect_system/smoke_spread/s = new
|
|
s.set_up(5, FALSE, target)
|
|
s.start()
|
|
|
|
to_chat(user, "<font color='red' size='6'>HONK</font>")
|
|
var/mob/living/carbon/human/H = target
|
|
H.bananatouched()
|
|
..()
|
|
|
|
/mob/living/carbon/human/proc/bananatouched()
|
|
to_chat(src, "<font color='red' size='6'>HONK</font>")
|
|
Weaken(14 SECONDS)
|
|
Stuttering(30 SECONDS)
|
|
do_jitter_animation(30 SECONDS)
|
|
|
|
if(iswizard(src) || (mind && mind.special_role == SPECIAL_ROLE_WIZARD_APPRENTICE)) //Wizards get non-cursed clown robes and magical mask.
|
|
unEquip(shoes, TRUE)
|
|
unEquip(wear_mask, TRUE)
|
|
unEquip(head, TRUE)
|
|
unEquip(wear_suit, TRUE)
|
|
equip_to_slot_if_possible(new /obj/item/clothing/head/wizard/clown, SLOT_HUD_HEAD, TRUE, TRUE)
|
|
equip_to_slot_if_possible(new /obj/item/clothing/suit/wizrobe/clown, SLOT_HUD_OUTER_SUIT, TRUE, TRUE)
|
|
equip_to_slot_if_possible(new /obj/item/clothing/shoes/clown_shoes/magical, SLOT_HUD_SHOES, TRUE, TRUE)
|
|
equip_to_slot_if_possible(new /obj/item/clothing/mask/gas/clownwiz, SLOT_HUD_WEAR_MASK, TRUE, TRUE)
|
|
else
|
|
qdel(shoes)
|
|
qdel(wear_mask)
|
|
qdel(w_uniform)
|
|
equip_to_slot_if_possible(new /obj/item/clothing/under/rank/civilian/clown/nodrop, SLOT_HUD_JUMPSUIT, TRUE, TRUE)
|
|
equip_to_slot_if_possible(new /obj/item/clothing/shoes/clown_shoes/nodrop, SLOT_HUD_SHOES, TRUE, TRUE)
|
|
equip_to_slot_if_possible(new /obj/item/clothing/mask/gas/clown_hat/nodrop, SLOT_HUD_WEAR_MASK, TRUE, TRUE)
|
|
dna.SetSEState(GLOB.clumsyblock, TRUE, TRUE)
|
|
dna.SetSEState(GLOB.comicblock, TRUE, TRUE)
|
|
singlemutcheck(src, GLOB.clumsyblock, MUTCHK_FORCED)
|
|
singlemutcheck(src, GLOB.comicblock, MUTCHK_FORCED)
|
|
if(!(iswizard(src) || (mind && mind.special_role == SPECIAL_ROLE_WIZARD_APPRENTICE))) //Mutations are permanent on non-wizards. Can still be removed by genetics fuckery but not mutadone.
|
|
dna.default_blocks.Add(GLOB.clumsyblock)
|
|
dna.default_blocks.Add(GLOB.comicblock)
|