mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 02:24:11 +01:00
Mice can play synthesisers (#90610)
## About The Pull Request  This PR allows mice to play synthesisers, which they will prioritise over running away from people if they see one (but eating cheese is more important than that). ## Why It's Good For The Game  ## Changelog 🆑 add: Mice can play synthesisers /🆑
This commit is contained in:
@@ -7,12 +7,19 @@
|
||||
allowed_instrument_ids = "piano"
|
||||
var/circuit_type = /obj/item/circuit_component/synth
|
||||
var/shell_capacity = SHELL_CAPACITY_SMALL
|
||||
/// Can a mouse play this instrument?
|
||||
var/mouse_playable = TRUE
|
||||
|
||||
/obj/item/instrument/piano_synth/Initialize(mapload)
|
||||
. = ..()
|
||||
song.allowed_instrument_ids = SSinstruments.synthesizer_instrument_ids
|
||||
AddComponent(/datum/component/shell, list(new circuit_type), shell_capacity)
|
||||
|
||||
/obj/item/instrument/piano_synth/attack_animal(mob/living/simple_animal/user, list/modifiers)
|
||||
if (!mouse_playable || !ismouse(user))
|
||||
return ..()
|
||||
song.ui_interact(user)
|
||||
|
||||
/obj/item/instrument/piano_synth/headphones
|
||||
name = "headphones"
|
||||
desc = "Unce unce unce unce. Boop!"
|
||||
@@ -32,6 +39,7 @@
|
||||
instrument_range = 1
|
||||
circuit_type = /obj/item/circuit_component/synth/headphones
|
||||
shell_capacity = SHELL_CAPACITY_TINY
|
||||
mouse_playable = FALSE
|
||||
|
||||
/obj/item/instrument/piano_synth/headphones/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user