mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-07 14:59:13 +00:00
Moves singulo and supermatter dmis into obj/engine, renamed from obj/tesla_engine Moves Halloween, Christmas, and misc holiday items to obj/holiday Moves lollipops to obj/food Moves crates, closets, and storage to obj/storage Moves assemblies to obj/assemblies Renames decals.dmi to signs.dmi ...because they're signs and not decals Moves statues, cutouts, instruments, art supplies, and crayons to obj/art Moves balloons, plushes, toys, cards, dice, the hourglass, and TCG to obj/toys Moves guns, swords, shields to obj/weapons
43 lines
1.3 KiB
Plaintext
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/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/Initialize(mapload)
|
|
. = ..()
|
|
AddElement(/datum/element/kneejerk)
|
|
|
|
/obj/item/gavelhammer/suicide_act(mob/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/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_warning("[user] strikes [src] with [I]."))
|
|
user.changeNext_move(CLICK_CD_MELEE)
|
|
else
|
|
return ..()
|