mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
verb macro system (pr 1/3) (#96720)
## About The Pull Request just macro-izes all the usages of verbs in the codebase as a pre-requisite to my follow up pr that serializes all the verbs arguments so we can tgui-ify the command bar, so we can then put it on the onscreen map. this also basically does the same as #94487 so can easily be integrated into the verb queueing stuff... but does not actually do any verb queueing by itself. basically im just trying to be https://github.com/tgstation/tgstation/labels/Atomic ## Why It's Good For The Game it doesn't really do anything by itself but it does let us do more stuff ## Changelog 🆑 code: the backend to all verbs in the game has been played with, please report any issues to github /🆑 --------- Co-authored-by: harryob <55142896+harryob@users.noreply.github.com>
This commit is contained in:
@@ -126,8 +126,7 @@
|
||||
return FALSE
|
||||
|
||||
|
||||
/obj/item/taperecorder/verb/ejectverb()
|
||||
set name = "Eject Tape"
|
||||
GAME_VERB(/obj/item/taperecorder, ejectverb, "Eject Tape", null)
|
||||
|
||||
if(!can_use(usr))
|
||||
balloon_alert(usr, "can't use!")
|
||||
@@ -161,8 +160,7 @@
|
||||
mytape.storedinfo += "\[[time2text(mytape.used_capacity,"mm:ss", NO_TIMEZONE)]\] [speaker.get_voice()]: [raw_message]"
|
||||
|
||||
|
||||
/obj/item/taperecorder/verb/record()
|
||||
set name = "Start Recording"
|
||||
GAME_VERB(/obj/item/taperecorder, record, "Start Recording", null)
|
||||
|
||||
if(!can_use(usr))
|
||||
balloon_alert(usr, "can't use!")
|
||||
@@ -203,8 +201,7 @@
|
||||
playsound(src, 'sound/items/taperecorder/taperecorder_stop.ogg', 50, FALSE)
|
||||
|
||||
|
||||
/obj/item/taperecorder/verb/stop()
|
||||
set name = "Stop"
|
||||
GAME_VERB(/obj/item/taperecorder, stop, "Stop", null)
|
||||
|
||||
if(!can_use(usr))
|
||||
balloon_alert(usr, "can't use!")
|
||||
@@ -223,8 +220,7 @@
|
||||
update_appearance()
|
||||
update_sound()
|
||||
|
||||
/obj/item/taperecorder/verb/play()
|
||||
set name = "Play Tape"
|
||||
GAME_VERB(/obj/item/taperecorder, play, "Play Tape", null)
|
||||
|
||||
if(!can_use(usr))
|
||||
balloon_alert(usr, "can't use!")
|
||||
@@ -295,8 +291,7 @@
|
||||
if("Eject")
|
||||
eject(user)
|
||||
|
||||
/obj/item/taperecorder/verb/print_transcript()
|
||||
set name = "Print Transcript"
|
||||
GAME_VERB(/obj/item/taperecorder, print_transcript, "Print Transcript", null)
|
||||
|
||||
var/list/transcribed_info = mytape.storedinfo
|
||||
if(!length(transcribed_info))
|
||||
|
||||
Reference in New Issue
Block a user