mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
50 lines
2.0 KiB
Plaintext
50 lines
2.0 KiB
Plaintext
/obj/item/katana
|
|
name = "katana"
|
|
desc = "Woefully underpowered in D20."
|
|
icon = 'icons/obj/weapons/sword.dmi'
|
|
icon_state = "katana"
|
|
inhand_icon_state = "katana"
|
|
icon_angle = -45
|
|
lefthand_file = 'icons/mob/inhands/weapons/swords_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/weapons/swords_righthand.dmi'
|
|
obj_flags = CONDUCTS_ELECTRICITY
|
|
force = 40
|
|
throwforce = 10
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
hitsound = 'sound/items/weapons/bladeslice.ogg'
|
|
attack_verb_continuous = list("attacks", "slashes", "slices", "tears", "lacerates", "rips", "dices", "cuts")
|
|
attack_verb_simple = list("attack", "slash", "slice", "tear", "lacerate", "rip", "dice", "cut")
|
|
block_chance = 50
|
|
block_sound = 'sound/items/weapons/parry.ogg'
|
|
pickup_sound = 'sound/items/unsheath.ogg'
|
|
sharpness = SHARP_EDGED
|
|
max_integrity = 200
|
|
armor_type = /datum/armor/item_katana
|
|
resistance_flags = FIRE_PROOF
|
|
var/list/alt_continuous = list("stabs", "pierces", "impales")
|
|
var/list/alt_simple = list("stab", "pierce", "impale")
|
|
|
|
/obj/item/katana/Initialize(mapload)
|
|
. = ..()
|
|
alt_continuous = string_list(alt_continuous)
|
|
alt_simple = string_list(alt_simple)
|
|
AddComponent(/datum/component/alternative_sharpness, SHARP_POINTY, alt_continuous, alt_simple, -15)
|
|
|
|
/obj/item/katana/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK, damage_type = BRUTE)
|
|
if(attack_type == OVERWHELMING_ATTACK)
|
|
final_block_chance = 0 //Not a high freuqnecy blade, sorry pal
|
|
return ..()
|
|
|
|
/datum/armor/item_katana
|
|
fire = 100
|
|
acid = 50
|
|
|
|
/obj/item/katana/suicide_act(mob/living/user)
|
|
user.visible_message(span_suicide("[user] is slitting [user.p_their()] stomach open with [src]! It looks like [user.p_theyre()] trying to commit seppuku!"))
|
|
return BRUTELOSS
|
|
|
|
/obj/item/katana/cursed //used by wizard events, see the tendril_loot.dm file for the miner one
|
|
slot_flags = null
|
|
|
|
//Ninja energy katana is located in the antagonist module.
|