Janiborg no longer starts with floor buffer and now can be toggled (#20133)

* Cyborg upgrade floor buffer and toggle mode

* Update code/game/objects/items/robot/robot_upgrades.dm

Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
Henri215
2023-01-20 19:16:34 -05:00
committed by GitHub
co-authored by S34N Ryan
parent 07a7caff1f
commit 9a0ceb5a03
5 changed files with 52 additions and 1 deletions
@@ -107,6 +107,8 @@ GLOBAL_LIST_INIT(robot_verbs_default, list(
var/magpulse = FALSE
var/ionpulse = FALSE // Jetpack-like effect.
var/ionpulse_on = FALSE // Jetpack-like effect.
/// Does it clean the tile under it?
var/floorbuffer = FALSE
var/datum/action/item_action/toggle_research_scanner/scanner = null
var/list/module_actions = list()
@@ -451,7 +451,7 @@
/obj/item/robot_module/janitor/proc/on_cyborg_move(mob/living/silicon/robot/R)
SIGNAL_HANDLER
if(R.stat == DEAD || !isturf(R.loc))
if(R.stat == DEAD || !isturf(R.loc) || !R.floorbuffer)
return
var/turf/tile = R.loc
for(var/A in tile)
@@ -1098,6 +1098,16 @@
construction_time = 120
category = list("Cyborg Upgrade Modules")
/datum/design/borg_upgrade_floorbuffer
name = "Cyborg Upgrade (Floor buffer)"
id = "borg_upgrade_floorbuffer"
build_type = MECHFAB
build_path = /obj/item/borg/upgrade/floorbuffer
req_tech = list("materials" = 4, "engineering" = 4)
materials = list(MAT_METAL=15000, MAT_GLASS=15000)
construction_time = 120
category = list("Cyborg Upgrade Modules")
//Misc
/datum/design/mecha_tracking
name = "Exosuit Tracking Beacon"