mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
yes (#51995)
This commit is contained in:
@@ -678,3 +678,30 @@
|
||||
var/obj/item/borg/apparatus/beaker/extra/E = locate() in R.module.modules
|
||||
if (E)
|
||||
R.module.remove_module(E, TRUE)
|
||||
|
||||
/obj/item/borg/upgrade/broomer
|
||||
name = "experimental push broom"
|
||||
desc = "An experimental push broom used for efficiently pushing refuse."
|
||||
icon_state = "cyborg_upgrade3"
|
||||
require_module = TRUE
|
||||
module_type = list(/obj/item/robot_module/janitor)
|
||||
|
||||
/obj/item/borg/upgrade/broomer/action(mob/living/silicon/robot/R, user = usr)
|
||||
. = ..()
|
||||
if (!.)
|
||||
return
|
||||
var/obj/item/pushbroom/cyborg/BR = locate() in R.module.modules
|
||||
if (BR)
|
||||
to_chat(user, "<span class='warning'>This janiborg is already equipped with an experimental broom!</span>")
|
||||
return FALSE
|
||||
BR = new(R.module)
|
||||
R.module.basic_modules += BR
|
||||
R.module.add_module(BR, FALSE, TRUE)
|
||||
|
||||
/obj/item/borg/upgrade/broomer/deactivate(mob/living/silicon/robot/R, user = usr)
|
||||
. = ..()
|
||||
if (!.)
|
||||
return
|
||||
var/obj/item/pushbroom/cyborg/BR = locate() in R.module.modules
|
||||
if (BR)
|
||||
R.module.remove_module(BR, TRUE)
|
||||
|
||||
Reference in New Issue
Block a user