mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-05 19:30:54 +01:00
6b9c333636
* Adds Fines * Forgot one * Enhanced Clarity * Fixes issue with linked account * If no crime stated, states in the fine message * Updates fine scanner sprite * Updates fine scanner behavior * Adds comment to records * Apply suggestions from code review Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * Removes capitalization --------- Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com>
83 lines
3.0 KiB
Plaintext
83 lines
3.0 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_WARNING("The baton feels off balance in your hand due to your judo training!")
|
|
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_state = "judo"
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
layer_over_suit = TRUE
|
|
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/fine_scanner,
|
|
/obj/item/detective_scanner)
|
|
|
|
/obj/item/storage/belt/judobelt/update_weight()
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
|
|
/obj/item/storage/belt/judobelt/Initialize(mapload)
|
|
. = ..()
|
|
style = new()
|
|
|
|
/obj/item/storage/belt/judobelt/equipped(mob/user, slot)
|
|
. = ..()
|
|
if(!ishuman(user))
|
|
return
|
|
if(slot == ITEM_SLOT_BELT)
|
|
var/mob/living/carbon/human/H = user
|
|
if(HAS_TRAIT(user, TRAIT_PACIFISM))
|
|
to_chat(H, SPAN_WARNING("The arts of Corporate Judo echo uselessly in your head, the thought of violence disgusts you!"))
|
|
return
|
|
style.teach(H, TRUE)
|
|
to_chat(H, SPAN_USERDANGER("The belt's nanites infuse you with the prowess of a black belt in Corporate Judo!"))
|
|
to_chat(H, SPAN_DANGER("See the martial arts tab for an explanation of combos."))
|
|
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(ITEM_SLOT_BELT) == src)
|
|
style.remove(H)
|
|
to_chat(user, SPAN_SCIRADIO("You suddenly forget the arts of Corporate Judo..."))
|
|
|
|
//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_DANGER("[A] [picked_hit_type] [D]!"), \
|
|
SPAN_USERDANGER("[A] [picked_hit_type] you!"))
|
|
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>")
|