mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
Merge pull request #13085 from SteelSlayer/drone-no-flash
Maintenance drones no longer get a flash
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
|
||||
/obj/item/robot_module/New()
|
||||
..()
|
||||
modules += new /obj/item/flash/cyborg(src)
|
||||
add_default_robot_items()
|
||||
emag = new /obj/item/toy/sword(src)
|
||||
emag.name = "Placeholder Emag Item"
|
||||
|
||||
@@ -38,6 +38,10 @@
|
||||
QDEL_NULL(emag)
|
||||
return ..()
|
||||
|
||||
// By default, all robots will get the items in this proc, unless you override it for your specific module. See: ../robot_module/drone
|
||||
/obj/item/robot_module/proc/add_default_robot_items()
|
||||
modules += new /obj/item/flash/cyborg(src)
|
||||
|
||||
/obj/item/robot_module/proc/fix_modules()
|
||||
for(var/obj/item/I in modules)
|
||||
I.flags |= NODROP
|
||||
@@ -562,6 +566,9 @@
|
||||
|
||||
fix_modules()
|
||||
|
||||
/obj/item/robot_module/drone/add_default_robot_items()
|
||||
return
|
||||
|
||||
/obj/item/robot_module/drone/respawn_consumable(mob/living/silicon/robot/R)
|
||||
var/obj/item/reagent_containers/spray/cleaner/C = locate() in modules
|
||||
C.reagents.add_reagent("cleaner", 3)
|
||||
|
||||
Reference in New Issue
Block a user