mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
## About The Pull Request 50 files. Sorry about that, I was faster today. Just merge without looking, it'll be fine. This is the end of `/machinery/` & `/stack/` `attackby()`s(that aren't actually meant for being attacked) when these are all merged. Like, 200 left? I think? Also, this one will make light replacer reloading slightly more difficult until whichever one converted the light replacer is merged. If, for some ungodly reason, this one gets merged first. Changes beyond conversion: if a `/porta_turret_construct` somehow became anchored out of sync with its construction steps, it's no longer softlocked you can no longer place an infinite amount of blackboxes into the blackbox recorder a TTV will no longer keep its ghost on your back when you cut its wires while wearing it RCLs will properly update their appearance when initially given their first coil The creator of `robot_suit/attackby()` has been cursed to spend a thousand years in the lake of fire ## Why It's Good For The Game Now that all of these are remade, you can find bugs in them and then get GBP for fixing them(not that my code would ever have bugs). ## Changelog 🆑 fix: It's no longer possible to softlock building a turret(if it ever was) fix: you can no longer stuff the blackbox recorder full with as many blackboxes as you've somehow collected fix: TTVs will no longer remain on your back as a ghost when you cut their wire straps fix: RCLs will now properly update their appearance when given their first coil of cleaners code: 50 files have been converted from attackby() to item_interaction() /🆑
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
// Contains:
|
|
// Gavel
|
|
// Sound Block
|
|
|
|
/obj/item/gavelhammer
|
|
name = "gavel"
|
|
desc = "Order, order! No bombs in my courthouse."
|
|
icon = 'icons/obj/weapons/hammer.dmi'
|
|
icon_state = "gavelhammer"
|
|
icon_angle = -135
|
|
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
|
|
custom_materials = list(/datum/material/wood = SHEET_MATERIAL_AMOUNT * 2)
|
|
|
|
/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 = "sound block"
|
|
desc = "Smack it with a gavel 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
|
|
custom_materials = list(/datum/material/wood = SHEET_MATERIAL_AMOUNT)
|
|
|
|
/obj/item/gavelblock/item_interaction(mob/living/user, obj/item/tool, list/modifiers)
|
|
if(!istype(tool, /obj/item/gavelhammer))
|
|
return NONE
|
|
playsound(loc, 'sound/items/gavel.ogg', 100, TRUE)
|
|
user.visible_message(span_warning("[user] strikes [src] with [tool]."))
|
|
user.changeNext_move(CLICK_CD_MELEE)
|
|
return ITEM_INTERACT_SUCCESS
|