mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-20 04:32:50 +01:00
Merge pull request #8089 from TheFurryFeline/TFF-Possibly_Fix_Cleanbots
[Bugfix] Maybe Fix Cleanbots
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
|
||||
vocal = 1
|
||||
cleaning = 0
|
||||
blood = 0
|
||||
var/red_switch = 0
|
||||
var/blue_switch = 0
|
||||
var/green_switch = 0
|
||||
|
||||
Reference in New Issue
Block a user