mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 23:53:47 +01:00
9225cd5817
* Tweaking sec belts * Update code/game/objects/items/weapons/storage/belt.dm Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> --------- Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> Co-authored-by: Sean <12197162+S34NW@users.noreply.github.com>
84 lines
3.2 KiB
Plaintext
84 lines
3.2 KiB
Plaintext
/datum/martial_art/judo
|
|
name = "Corporate Judo"
|
|
has_explaination_verb = TRUE
|
|
no_baton = TRUE
|
|
combos = list(/datum/martial_combo/judo/discombobulate, /datum/martial_combo/judo/eyepoke, /datum/martial_combo/judo/judothrow, /datum/martial_combo/judo/armbar, /datum/martial_combo/judo/wheelthrow, /datum/martial_combo/judo/goldenblast)
|
|
weight = 5 //takes priority over boxing and drunkneness, less priority than krav or CQC/carp
|
|
no_baton_reason = "<span class='warning'>The baton feels off balance in your hand due to your judo training!</span>"
|
|
can_horizontally_grab = FALSE
|
|
|
|
//Corporate Judo Belt
|
|
|
|
/obj/item/storage/belt/judobelt
|
|
name = "\improper Corporate Judo Belt"
|
|
desc = "Teaches the wearer NT Corporate Judo."
|
|
icon = 'icons/obj/clothing/belts.dmi'
|
|
lefthand_file = 'icons/mob/inhands/equipment/belt_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/equipment/belt_righthand.dmi'
|
|
icon_state = "judobelt"
|
|
item_state = "judo"
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
storage_slots = 3
|
|
max_combined_w_class = 7
|
|
var/datum/martial_art/judo/style
|
|
can_hold = list(
|
|
/obj/item/radio,
|
|
/obj/item/grenade/flashbang,
|
|
/obj/item/grenade/chem_grenade/teargas,
|
|
/obj/item/reagent_containers/spray/pepper,
|
|
/obj/item/restraints/handcuffs,
|
|
/obj/item/flash,
|
|
/obj/item/food/donut,
|
|
/obj/item/flashlight/seclite,
|
|
/obj/item/holosign_creator/security,
|
|
/obj/item/holosign_creator/detective,
|
|
/obj/item/restraints/legcuffs/bola,
|
|
/obj/item/detective_scanner)
|
|
|
|
/obj/item/storage/belt/judobelt/update_weight()
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
|
|
/obj/item/storage/belt/judobelt/Initialize()
|
|
. = ..()
|
|
style = new()
|
|
|
|
/obj/item/storage/belt/judobelt/equipped(mob/user, slot)
|
|
if(!ishuman(user))
|
|
return
|
|
if(slot == SLOT_HUD_BELT)
|
|
var/mob/living/carbon/human/H = user
|
|
if(HAS_TRAIT(user, TRAIT_PACIFISM))
|
|
to_chat(H, "<span class='warning'>The arts of Corporate Judo echo uselessly in your head, the thought of violence disgusts you!</span>")
|
|
return
|
|
style.teach(H, TRUE)
|
|
to_chat(H, "<span class='userdanger'>The belt's nanites infuse you with the prowess of a black belt in Corporate Judo!</span>")
|
|
to_chat(H, "<span class='danger'>See the martial arts tab for an explanation of combos.</span>")
|
|
return
|
|
|
|
/obj/item/storage/belt/judobelt/dropped(mob/user)
|
|
..()
|
|
if(!ishuman(user))
|
|
return
|
|
var/mob/living/carbon/human/H = user
|
|
if(H.get_item_by_slot(SLOT_HUD_BELT) == src)
|
|
style.remove(H)
|
|
to_chat(user, "<span class='sciradio'>You suddenly forget the arts of Corporate Judo...</span>")
|
|
|
|
//Increased harm damage
|
|
/datum/martial_art/judo/harm_act(mob/living/carbon/human/A, mob/living/carbon/human/D)
|
|
MARTIAL_ARTS_ACT_CHECK
|
|
var/picked_hit_type = pick("chops", "slices", "strikes")
|
|
A.do_attack_animation(D, ATTACK_EFFECT_PUNCH)
|
|
D.apply_damage(7, BRUTE)
|
|
playsound(get_turf(D), 'sound/effects/hit_punch.ogg', 50, TRUE, -1)
|
|
D.visible_message("<span class='danger'>[A] [picked_hit_type] [D]!</span>", \
|
|
"<span class='userdanger'>[A] [picked_hit_type] you!</span>")
|
|
add_attack_logs(A, D, "Melee attacked with [src]")
|
|
return TRUE
|
|
|
|
/datum/martial_art/judo/explaination_header(user)
|
|
to_chat(user, "<b><i>You recall the teachings of Corporate Judo.</i></b>")
|
|
|
|
/datum/martial_art/judo/explaination_footer(user)
|
|
to_chat(user, "<b>Your unarmed strikes hit about twice as hard as your peers, on average.</b>")
|