mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Instrument Update (#11645)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
19b8044f61
commit
d8408a2c59
16
modular_chomp/code/modules/instruments/items.dm
Normal file
16
modular_chomp/code/modules/instruments/items.dm
Normal file
@@ -0,0 +1,16 @@
|
||||
/obj/item/instrument/keytar
|
||||
name = "portable keyboard"
|
||||
desc = "A keyboard, for those interested in the piano on the go! "
|
||||
icon = 'icons/obj/musician_yw.dmi'
|
||||
icon_state = "keyboard"
|
||||
item_state = "keyboard"
|
||||
attack_verb = list("smashed")
|
||||
allowed_instrument_ids = "piano"
|
||||
|
||||
/obj/item/instrument/xylophone
|
||||
name = "xylophone"
|
||||
desc = "A percussion instrument consisting of a series of wooden bars graduated in length."
|
||||
icon = 'icons/obj/musician_yw.dmi'
|
||||
icon_state = "xylophone"
|
||||
attack_verb = list("smashed")
|
||||
allowed_instrument_ids = "xylophone"
|
||||
13
modular_chomp/code/modules/instruments/stationary.dm
Normal file
13
modular_chomp/code/modules/instruments/stationary.dm
Normal file
@@ -0,0 +1,13 @@
|
||||
/obj/structure/musician/attackby(obj/item/W, mob/user)
|
||||
if(W.has_tool_quality(TOOL_WRENCH))
|
||||
playsound(src, W.usesound, 100, 1)
|
||||
if(anchored)
|
||||
user.visible_message(span_filter_notice("[user] begins unsecuring \the [src] from the floor."), span_filter_notice("You start unsecuring \the [src] from the floor."))
|
||||
else
|
||||
user.visible_message(span_filter_notice("[user] begins securing \the [src] to the floor."), span_filter_notice("You start securing \the [src] to the floor."))
|
||||
|
||||
if(do_after(user, 20 * W.toolspeed))
|
||||
if(!src) return
|
||||
to_chat(user, span_notice("You [anchored? "un" : ""]secured \the [src]!"))
|
||||
anchored = !anchored
|
||||
return
|
||||
Reference in New Issue
Block a user