Adds visible messages when someone operates a recorder, like happens with PDAs, and some other tweaks (#18374)

* visible messages for tape recorder interaction

* scratchy noises from emagged recorders changed to audible msg

* cl

* swaps out "the tape recorder" for "\the [src]" where appropriate
This commit is contained in:
Llywelwyn
2024-02-11 18:54:39 +00:00
committed by GitHub
parent c8c1c2e62f
commit a80bacd095
2 changed files with 56 additions and 9 deletions
@@ -92,8 +92,9 @@
if(use_check_and_message(usr))
return
usr.visible_message("[SPAN_BOLD("\The [usr]")] presses a button on \the [src].")
if(emagged)
to_chat(usr, SPAN_WARNING("The tape recorder makes a scratchy noise."))
src.audible_message(SPAN_WARNING("\The [src] makes a scratchy noise."), hearing_distance = 3)
return
icon_state = "taperecorderrecording"
if(time_recorded < 3600 && !playing)
@@ -119,10 +120,10 @@
if(use_check_and_message(usr))
return
usr.visible_message("[SPAN_BOLD("\The [usr]")] presses a button on \the [src].")
if(emagged)
to_chat(usr, SPAN_WARNING("The tape recorder makes a scratchy noise."))
src.audible_message(SPAN_WARNING("\The [src] makes a scratchy noise."), hearing_distance = 3)
return
if(recording)
recording = FALSE
timestamp += time_recorded
@@ -143,8 +144,9 @@
if(use_check_and_message(usr))
return
usr.visible_message("[SPAN_BOLD("\The [usr]")] presses a button on \the [src].")
if(emagged)
to_chat(usr, SPAN_WARNING("The tape recorder makes a scratchy noise."))
src.audible_message(SPAN_WARNING("\The [src] makes a scratchy noise."), hearing_distance = 3)
return
if(recording || playing)
to_chat(usr, SPAN_WARNING("You can't clear the memory while playing or recording!"))
@@ -216,11 +218,12 @@
if(use_check_and_message(usr))
return
usr.visible_message("[SPAN_BOLD("\The [usr]")] presses a button on \the [src].")
if(emagged)
to_chat(usr, SPAN_WARNING("The tape recorder makes a scratchy noise."))
src.audible_message(SPAN_WARNING("\The [src] makes a scratchy noise."), hearing_distance = 3)
return
if(!can_print)
to_chat(usr, SPAN_WARNING("The recorder can't print that fast!"))
to_chat(usr, SPAN_WARNING("\The [src] can't print that fast!"))
return
if(recording || playing)
to_chat(usr, SPAN_WARNING("You can't print the transcript while playing or recording!"))
@@ -276,8 +279,9 @@
if(!recording && !playing)
if(use_check_and_message(usr))
return
usr.visible_message("[SPAN_BOLD("\The [usr]")] presses a button on \the [src].")
if(emagged)
to_chat(usr, SPAN_WARNING("The tape recorder makes a scratchy noise."))
src.audible_message(SPAN_WARNING("\The [src] makes a scratchy noise."), hearing_distance = 3)
return
icon_state = "taperecorderrecording"
if(time_recorded < 3600 && !playing)
@@ -294,10 +298,11 @@
icon_state = "taperecorderidle"
return
else
to_chat(usr, SPAN_WARNING("Either your tape recorder's memory is full, or it is currently playing back its memory."))
to_chat(usr, SPAN_WARNING("Either \the [src]'s memory is full, or it is currently playing back its memory."))
else
if(use_check_and_message(usr))
return
usr.visible_message("[SPAN_BOLD("\The [usr]")] presses a button on \the [src].")
if(recording)
recording = FALSE
timestamp += time_recorded
@@ -306,7 +311,7 @@
icon_state = "taperecorderidle"
return
else if(emagged)
to_chat(usr, SPAN_WARNING("The tape recorder's buttons doesn't react!"))
to_chat(usr, SPAN_WARNING("\The [src]'s buttons doesn't react!"))
return
else if(playing)
playing = FALSE