mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Instruments can be synced by setting an ID in their UI (#92413)
Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -23,19 +23,22 @@
|
||||
QDEL_NULL(song)
|
||||
return ..()
|
||||
|
||||
/obj/item/instrument/proc/should_stop_playing(atom/music_player)
|
||||
/obj/item/instrument/proc/can_play(atom/music_player)
|
||||
if(!ismob(music_player))
|
||||
return STOP_PLAYING
|
||||
return FALSE
|
||||
var/mob/user = music_player
|
||||
if(user.incapacitated || !((loc == user) || (isturf(loc) && Adjacent(user)))) // sorry, no more TK playing.
|
||||
return STOP_PLAYING
|
||||
if(user.incapacitated)
|
||||
return FALSE
|
||||
if(!Adjacent(user))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/obj/item/instrument/suicide_act(mob/living/user)
|
||||
user.visible_message(span_suicide("[user] begins to play 'Gloomy Sunday'! It looks like [user.p_theyre()] trying to commit suicide!"))
|
||||
return BRUTELOSS
|
||||
|
||||
/obj/item/instrument/ui_interact(mob/user, datum/tgui/ui)
|
||||
song.ui_interact(user)
|
||||
return song.ui_interact(user)
|
||||
|
||||
/obj/item/instrument/violin
|
||||
name = "space violin"
|
||||
|
||||
Reference in New Issue
Block a user