mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
-adds framework for weapons based martial arts, implementing a very basic swordsmanship -makes the martial art books more modular -fixes some minor issues with some of the martial art code -adds amohdan swordsmen gear, to be used in a future event/sold by the merchant - fixes #6083
106 lines
3.7 KiB
Plaintext
106 lines
3.7 KiB
Plaintext
#define TAIL_SWEEP "HHD"
|
|
#define SWIFT_DISARM "DDG"
|
|
#define HAMMERING_STRIKE "DHD"
|
|
|
|
/datum/martial_art/kis_khan
|
|
name = "Kis-khan"
|
|
help_verb = /datum/martial_art/kis_khan/proc/kis_khan_help
|
|
no_guns = TRUE
|
|
no_guns_message = "Use of ranged weaponry would be dishonorable."
|
|
|
|
/datum/martial_art/kis_khan/proc/check_streak(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
|
|
if(findtext(streak,TAIL_SWEEP))
|
|
streak = ""
|
|
tail_sweep(A,D)
|
|
return 1
|
|
if(findtext(streak,SWIFT_DISARM))
|
|
streak = ""
|
|
swift_disarm(A,D)
|
|
return 1
|
|
if(findtext(streak,HAMMERING_STRIKE))
|
|
streak = ""
|
|
hammering_strike(A,D)
|
|
return 1
|
|
return 0
|
|
|
|
/datum/martial_art/kis_khan/grab_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
|
|
add_to_streak("G",D)
|
|
if(check_streak(A,D))
|
|
return 1
|
|
D.grabbedby(A,1)
|
|
var/obj/item/weapon/grab/G = A.get_active_hand()
|
|
if(G && prob(50))
|
|
G.state = GRAB_AGGRESSIVE
|
|
D.visible_message("<span class='danger'>[A] gets a strong grip on [D]!</span>")
|
|
return 1
|
|
|
|
/datum/martial_art/kis_khan/harm_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
|
|
add_to_streak("H",D)
|
|
if(check_streak(A,D))
|
|
return 1
|
|
basic_hit(A,D)
|
|
return 1
|
|
|
|
/datum/martial_art/kis_khan/disarm_act(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
|
|
add_to_streak("D",D)
|
|
if(check_streak(A,D))
|
|
return 1
|
|
basic_hit(A,D)
|
|
return 1
|
|
|
|
/datum/martial_art/kis_khan/proc/tail_sweep(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
|
|
if(D.stat || D.weakened)
|
|
return 0
|
|
if(!isunathi(A))
|
|
return 0
|
|
TornadoAnimate(A)
|
|
A.visible_message("<span class='warning'>[A] sweeps [D] with their tail!</span>")
|
|
playsound(get_turf(A), "swing_hit", 50, 1, -1)
|
|
D.apply_damage(5, BRUTE)
|
|
D.Weaken(2)
|
|
return 1
|
|
|
|
/datum/martial_art/kis_khan/proc/swift_disarm(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
|
|
A.do_attack_animation(D)
|
|
if(prob(80))
|
|
if(D.hand)
|
|
if(istype(D.l_hand, /obj/item))
|
|
var/obj/item/I = D.l_hand
|
|
D.drop_item()
|
|
A.put_in_hands(I)
|
|
else
|
|
if(istype(D.r_hand, /obj/item))
|
|
var/obj/item/I = D.r_hand
|
|
D.drop_item()
|
|
A.put_in_hands(I)
|
|
D.visible_message("<span class='danger'>[A] has disarmed [D]!</span>")
|
|
playsound(D, 'sound/weapons/thudswoosh.ogg', 50, 1, -1)
|
|
else
|
|
D.visible_message("<span class='danger'>[A] attempted to disarm [D]!</span>")
|
|
playsound(D, 'sound/weapons/punchmiss.ogg', 25, 1, -1)
|
|
return 1
|
|
|
|
/datum/martial_art/kis_khan/proc/hammering_strike(var/mob/living/carbon/human/A, var/mob/living/carbon/human/D)
|
|
A.do_attack_animation(D)
|
|
A.visible_message("<span class='danger'>[A] slams [D] away!</span>")
|
|
playsound(D.loc, 'sound/weapons/punch1.ogg', 50, 1, -1)
|
|
D.apply_effect(2, WEAKEN)
|
|
var/atom/throw_target = get_edge_target_turf(D, get_dir(D, get_step_away(D, A)))
|
|
D.throw_at(throw_target, 200, 4,A)
|
|
|
|
/datum/martial_art/kis_khan/proc/kis_khan_help()
|
|
set name = "Recall Teachings"
|
|
set desc = "Remember the martial techniques of the Kis-khan."
|
|
set category = "Kis-khan"
|
|
|
|
to_chat(usr, "<b><i>You hiss deeply and remember the traditions...</i></b>")
|
|
to_chat(usr, "<span class='notice'>Tail Sweep</span>: Harm Harm Disarm. Trips the victim with your tail, rendering them prone and unable to move for a short time.")
|
|
to_chat(usr, "<span class='notice'>Swift Disarm</span>: Disarm Disarm Grab. Strikes your target's weapon, trying to disarm it from their hands.")
|
|
to_chat(usr, "<span class='notice'>Hammering Strike</span>: Disarm Harm Disarm. Delivers a strikes that will push the target away from you.")
|
|
|
|
/obj/item/martial_manual/unathi
|
|
name = "kis khan scroll"
|
|
desc = "A parched scroll.It seems to be drawings of some sort of martial art involving tails."
|
|
icon = 'icons/obj/wizard.dmi'
|
|
icon_state = "scroll2"
|
|
martial_art = /datum/martial_art/kis_khan |