mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-25 08:34:23 +00:00
* Personalized combat messages part 2 (#52890) Adds more "personalized" combat messages for all participants in a fight: the attacker, the victim and the spectators * Personalized combat messages part 2 * Update misc.dm Co-authored-by: kingofkosmos <riki.sundberg@gmail.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
// Contains:
|
|
// Gavel Hammer
|
|
// Gavel Block
|
|
|
|
/obj/item/gavelhammer
|
|
name = "gavel hammer"
|
|
desc = "Order, order! No bombs in my courthouse."
|
|
icon = 'icons/obj/items_and_weapons.dmi'
|
|
icon_state = "gavelhammer"
|
|
force = 5
|
|
throwforce = 6
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
attack_verb_continuous = list("bashes", "batters", "judges", "whacks")
|
|
attack_verb_simple = list("bash", "batter", "judge", "whack")
|
|
resistance_flags = FLAMMABLE
|
|
|
|
/obj/item/gavelhammer/suicide_act(mob/user)
|
|
user.visible_message("<span class='suicide'>[user] has sentenced [user.p_them()]self to death with [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
|
playsound(loc, 'sound/items/gavel.ogg', 50, TRUE, -1)
|
|
return (BRUTELOSS)
|
|
|
|
/obj/item/gavelblock
|
|
name = "gavel block"
|
|
desc = "Smack it with a gavel hammer when the assistants get rowdy."
|
|
icon = 'icons/obj/items_and_weapons.dmi'
|
|
icon_state = "gavelblock"
|
|
force = 2
|
|
throwforce = 2
|
|
w_class = WEIGHT_CLASS_TINY
|
|
resistance_flags = FLAMMABLE
|
|
|
|
/obj/item/gavelblock/attackby(obj/item/I, mob/user, params)
|
|
if(istype(I, /obj/item/gavelhammer))
|
|
playsound(loc, 'sound/items/gavel.ogg', 100, TRUE)
|
|
user.visible_message("<span class='warning'>[user] strikes [src] with [I].</span>")
|
|
user.changeNext_move(CLICK_CD_MELEE)
|
|
else
|
|
return ..()
|