Skip to content

Commit

Permalink
Fix various Mulebot things (#14983)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTyrant25 committed Jul 21, 2023
1 parent 89274b5 commit 4ab8fd6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion code/modules/robotics/bot/mulebot.dm
Expand Up @@ -226,7 +226,7 @@
dat += "<A href='byond://?src=\ref[src];op=stop'>Stop</A><BR>"
dat += "<A href='byond://?src=\ref[src];op=go'>Proceed</A><BR>"
dat += "<A href='byond://?src=\ref[src];op=home'>Return to Home</A><BR>"
dat += "<A href='byond://?src=\ref[src];op=destination'>Set Destination</A><BR>"
dat += "<A href='byond://?src=\ref[src];op=setdest'>Set Destination</A><BR>"
dat += "<A href='byond://?src=\ref[src];op=setid'>Set Bot ID</A><BR>"
dat += "<A href='byond://?src=\ref[src];op=sethome'>Set Home</A><BR>"
dat += "<A href='byond://?src=\ref[src];op=autoret'>Toggle Auto Return Home</A> ([auto_return ? "On":"Off"])<BR>"
Expand Down
13 changes: 3 additions & 10 deletions code/obj/item/device/pda2/bot_control.dm
Expand Up @@ -259,35 +259,28 @@
return_text()
if(..())
return
// Pre scan destinations
beacons = null
src.post_status("bot_beacon", "findbeacon", "delivery", "address_tag", "delivery")

. = list(src.return_text_header())
. += "<h4>M.U.L.E. bot Interlink V0.8</h4>"

if(!src.active)
// list of bots
if(!src.botlist || (src.botlist && src.botlist.len==0))
. += "No bots found.<BR>"

else
for(var/obj/machinery/bot/mulebot/B in src.botlist)
. += "<A href='byond://?src=\ref[src];op=control;bot=\ref[B]'>[B] at [get_area(B)]</A><BR>"



. += "<BR><A href='byond://?src=\ref[src];op=scanbots'>Scan for active bots</A><BR>"

else // bot selected, control it


. += "<B>[src.active]</B><BR> Status: (<A href='byond://?src=\ref[src];op=control;bot=\ref[src.active]'><i>refresh</i></A>)<BR>"

if(!src.botstatus)
. += "Waiting for response...<BR>"
else

. += "Location: [src.botstatus["loca"] ]<BR>"
. += "Mode: "

switch(src.botstatus["mode"])
if(0)
. += "Ready"
Expand Down
4 changes: 2 additions & 2 deletions maps/donut2.dmm
Expand Up @@ -33846,7 +33846,7 @@
},
/obj/machinery/navbeacon{
codes_txt = "delivery;dir=2";
location = "Medbay"
location = "Hydroponics"
},
/turf/simulated/floor/green/side{
dir = 8
Expand Down Expand Up @@ -39650,7 +39650,7 @@
},
/obj/machinery/navbeacon{
codes_txt = "delivery;dir=2";
location = "Hydroponics"
location = "Medbay"
},
/turf/simulated/floor/blue,
/area/station/medical/medbay)
Expand Down

0 comments on commit 4ab8fd6

Please sign in to comment.