Files
Bubberstation/code/game/objects/items/courtroom.dm
Tim 4397d63a55 Split weapons_and_items.dmi icons into their own categories (#74363)
## About The Pull Request
This sprite file had been a dumping ground for miscellaneous sprites for
the past decade. It's bloated and full of random kinds of icons and even
has a few unused ones. It's time to reorganize them into their own
separate dmi's based on theme.

## Why It's Good For The Game
Better organization and easier access when looking for stuff.

## Changelog
🆑
imageadd: Split all icons in weapons_and_items.dmi to their own
categories
imagedel: Removed some unused icons
/🆑
2023-04-06 08:30:57 +12:00

43 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/weapons/hammer.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/Initialize(mapload)
. = ..()
AddElement(/datum/element/kneejerk)
/obj/item/gavelhammer/suicide_act(mob/living/user)
user.visible_message(span_suicide("[user] has sentenced [user.p_them()]self to death with [src]! It looks like [user.p_theyre()] trying to commit suicide!"))
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/weapons/hammer.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_warning("[user] strikes [src] with [I]."))
user.changeNext_move(CLICK_CD_MELEE)
else
return ..()