mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
[FIX] Turn off autopatrol when an area is assigned (#25335)
* Turn off autopatrol when an area is assigned * why check for true, me dumb * missing update_icon() * test to confirm * overlay updating properly. Fixed and update moved to cleanbot specifically
This commit is contained in:
@@ -696,7 +696,6 @@ Pass a positive integer as an argument to override a bot's default speed.
|
||||
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
//Patrol and summon code!
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
target = null
|
||||
oldloc = null
|
||||
area_locked = null
|
||||
update_icon()
|
||||
|
||||
/mob/living/simple_animal/bot/cleanbot/set_custom_texts()
|
||||
text_hack = "You corrupt [name]'s cleaning software."
|
||||
@@ -173,6 +174,7 @@
|
||||
oldloc = loc
|
||||
|
||||
/mob/living/simple_animal/bot/cleanbot/proc/assign_area()
|
||||
auto_patrol = FALSE // Don't want autopatrol if we are area locked
|
||||
if(area_locked)
|
||||
area_locked = null
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user