Merge pull request #8089 from TheFurryFeline/TFF-Possibly_Fix_Cleanbots

[Bugfix] Maybe Fix Cleanbots
This commit is contained in:
Atermonera
2021-05-20 20:51:22 -07:00
committed by GitHub
2 changed files with 2 additions and 20 deletions
+2 -19
View File
@@ -14,7 +14,6 @@
var/cleaning = 0
var/wet_floors = 0
var/spray_blood = 0
var/blood = 1
var/list/target_types = list()
/mob/living/bot/cleanbot/New()
@@ -164,8 +163,7 @@
data["on"] = on
data["open"] = open
data["locked"] = locked
data["blood"] = blood
data["patrol"] = will_patrol
data["vocal"] = vocal
@@ -185,10 +183,6 @@ mob/living/bot/cleanbot/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_
else
turn_on()
. = TRUE
if("blood")
blood = !blood
get_targets()
. = TRUE
if("patrol")
will_patrol = !will_patrol
patrol_path = null
@@ -216,18 +210,7 @@ mob/living/bot/cleanbot/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_
return 1
/mob/living/bot/cleanbot/proc/get_targets()
target_types = list()
target_types += /obj/effect/decal/cleanable/blood/oil
target_types += /obj/effect/decal/cleanable/vomit
target_types += /obj/effect/decal/cleanable/crayon
target_types += /obj/effect/decal/cleanable/liquid_fuel
target_types += /obj/effect/decal/cleanable/mucus
target_types += /obj/effect/decal/cleanable/dirt
target_types += /obj/effect/decal/cleanable/filth
if(blood)
target_types += /obj/effect/decal/cleanable/blood
target_types = list(/obj/effect/decal/cleanable)
/* Assembly */
-1
View File
@@ -14,7 +14,6 @@
vocal = 1
cleaning = 0
blood = 0
var/red_switch = 0
var/blue_switch = 0
var/green_switch = 0