Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,19 @@
name = "brass battle-hammer"
desc = "A brass hammer glowing with energy."
icon_state = "ratvarian_hammer"
force = 15
throwforce = 15
force = 23
throwforce = 23
armour_penetration = -30
sharpness = SHARP_NONE
attack_verb = list("bashed", "smitted", "hammered", "attacked")
clockwork_desc = "A powerful hammer of Ratvarian making. Enemies hit with it would be flung back."
clockwork_desc = "A powerful twohanded hammer of Ratvarian making. Enemies hit by it will be flung back."

/obj/item/clockwork/weapon/brass_battlehammer/Initialize(mapload)
. = ..()
AddComponent(/datum/component/two_handed, require_twohands = TRUE)

/obj/item/clockwork/weapon/brass_battlehammer/attack(mob/living/target, mob/living/carbon/human/user)
. = ..()
if(!is_servant_of_ratvar(target))
var/atom/throw_target = get_edge_target_turf(target, get_dir(src, get_step_away(target, src)))
target.throw_at(throw_target, 1, 4)

/obj/item/clockwork/weapon/brass_battlehammer/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
if(isliving(hit_atom))
var/mob/living/L = hit_atom
if(is_servant_of_ratvar(L))
if(L.put_in_active_hand(src))
L.visible_message(span_warning("[L] catches [src] out of the air!"))
else
L.visible_message(span_warning("[src] bounces off of [L], as if repelled by an unseen force!"))
else if(!..())
if(!L.anti_magic_check())
var/atom/throw_target = get_edge_target_turf(L, get_dir(src, get_step_away(L, src)))
L.throw_at(throw_target, 1, 4)
else
..()