From 2b44387d4c35a817466a23b6ab5f24408be8cdbd Mon Sep 17 00:00:00 2001 From: Your NameRun Date: Wed, 11 Sep 2024 18:10:28 -0400 Subject: [PATCH 1/2] Adds a new verb that calls for help over nearby radios saves time, a potentially very helpful feature. This was just to test Claude 3.5 Sonnet's ability to code in DM. I will flesh out this verb a little bit later. --- code/modules/helpverb/helpverb.dm | 0 code/modules/mob/mob.dm | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 code/modules/helpverb/helpverb.dm diff --git a/code/modules/helpverb/helpverb.dm b/code/modules/helpverb/helpverb.dm new file mode 100644 index 00000000000..e69de29bb2d diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 88ba3b7e671..90cdf176942 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -26,6 +26,11 @@ * * Parent call */ + +/mob/living + var/last_radio_assist = 0 // To prevent spam + + /mob/Destroy()//This makes sure that mobs with clients/keys are not just deleted from the game. remove_from_mob_list() remove_from_dead_mob_list() @@ -685,6 +690,29 @@ else to_chat(src, "You don't have a mind datum for some reason, so you can't look at your notes, if you had any.") +/mob/verb/radio_assist() + set name = "Radio Assist" + set category = "IC" + set desc = "Call for help using nearby radios." + + var/turf/T = get_turf(src) + if(!T) + return + + var/area/A = get_area(src) + if(!A) + return + + var/obj/item/radio/R = locate() in range(1, src) + if(!R) + to_chat(src, "There are no radios nearby to use!") + return + + var/message = "[src] is calling for help at [T.x], [T.y], [T.z] ([A.name])" + R.talk_into(src, message, null, list(SPAN_COMMAND, SPAN_ROBOT)) + + to_chat(src, "You call for help using the nearby [R.name].") + /** * Add a note to the mind datum */ From 7dd53c7321ea813816d52fd69e60c823e9af25f5 Mon Sep 17 00:00:00 2001 From: BBBBAface Date: Wed, 11 Sep 2024 21:35:02 -0400 Subject: [PATCH 2/2] Delete code/modules/helpverb/helpverb.dm unnecessary file --- code/modules/helpverb/helpverb.dm | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 code/modules/helpverb/helpverb.dm diff --git a/code/modules/helpverb/helpverb.dm b/code/modules/helpverb/helpverb.dm deleted file mode 100644 index e69de29bb2d..00000000000