mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
* Migrate martial arts to the new attack chain and same files. * Apply suggestions from CRUNCH review. Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> Signed-off-by: Alan <alfalfascout@users.noreply.github.com> * Apply suggestions from code review. Co-authored-by: warriorstar-orion <orion@snowfrost.garden> Signed-off-by: Alan <alfalfascout@users.noreply.github.com> --------- Signed-off-by: Alan <alfalfascout@users.noreply.github.com> Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
59 lines
2.1 KiB
Plaintext
59 lines
2.1 KiB
Plaintext
/datum/martial_art/adminfu
|
|
name = "Way of the Dancing Admin"
|
|
has_explaination_verb = TRUE
|
|
combos = list(/datum/martial_combo/healing_palm)
|
|
weight = 99999999 //Matt Malvor?
|
|
|
|
/datum/martial_art/adminfu/harm_act(mob/living/carbon/human/A, mob/living/carbon/human/D)
|
|
MARTIAL_ARTS_ACT_CHECK
|
|
if(!D.stat)//do not kill what is dead...
|
|
A.do_attack_animation(D)
|
|
D.visible_message(SPAN_WARNING("[A] manifests a large glowing toolbox and shoves it in [D]'s chest!"), \
|
|
SPAN_USERDANGER("[A] shoves a mystical toolbox in your chest!"))
|
|
D.death()
|
|
|
|
return TRUE
|
|
|
|
|
|
/datum/martial_art/adminfu/disarm_act(mob/living/carbon/human/A, mob/living/carbon/human/D)
|
|
MARTIAL_ARTS_ACT_CHECK
|
|
A.do_attack_animation(D)
|
|
D.Weaken(50 SECONDS, TRUE)
|
|
D.visible_message(
|
|
SPAN_WARNING("[A] pinches [D] in a flurry of places, rendering them helpless!"),
|
|
SPAN_USERDANGER("[A] pinches you at lightning speed! Your body gives out!")
|
|
)
|
|
return TRUE
|
|
|
|
/datum/martial_art/adminfu/grab_act(mob/living/carbon/human/A, mob/living/carbon/human/D)
|
|
MARTIAL_ARTS_ACT_CHECK
|
|
var/obj/item/grab/G = D.grabbedby(A,1)
|
|
if(G)
|
|
G.state = GRAB_NECK
|
|
return TRUE
|
|
|
|
/datum/martial_art/adminfu/explaination_header(user)
|
|
to_chat(user, "[SPAN_NOTICE("Grab")]: Automatic Neck Grab.")
|
|
to_chat(user, "[SPAN_NOTICE("Disarm")]: Stun/weaken")
|
|
to_chat(user, "[SPAN_NOTICE("Harm")]: Death.")
|
|
|
|
/obj/item/adminfu_scroll
|
|
name = "frayed scroll"
|
|
desc = "An aged and frayed scrap of paper written in shifting runes. There are hand-drawn illustrations of pugilism."
|
|
icon = 'icons/obj/wizard.dmi'
|
|
icon_state ="scroll2"
|
|
new_attack_chain = TRUE
|
|
|
|
/obj/item/adminfu_scroll/activate_self(mob/living/carbon/human/user)
|
|
if(!ishuman(user))
|
|
return ..()
|
|
|
|
var/datum/martial_art/adminfu/F = new/datum/martial_art/adminfu(null)
|
|
F.teach(user)
|
|
to_chat(user, SPAN_BOLDANNOUNCEIC("You have learned the ancient martial art of the Admins."))
|
|
user.drop_item_to_ground(src, TRUE)
|
|
visible_message(SPAN_WARNING("You eat [src] to ensure that no-one else can access its power!"))
|
|
playsound(loc, 'sound/items/eatfood.ogg', 50, 0)
|
|
qdel(src)
|
|
return ITEM_INTERACT_COMPLETE
|