Skip to content

Commit

Permalink
*Add a capacity upgrade for janitorial cyborg light replacers (tgstat…
Browse files Browse the repository at this point in the history
…ion#86351)

## About The Pull Request
This is a researchable upgrade for janitorial cyborgs. It gives them
slightly more than double the amount of lights, and it is researchable
in the same suite of upgrades.

## Why It's Good For The Game
I often found myself wanting more lights, or wanting to fix small broken
windows as a cyborg, and this PR adds a solution.

## Changelog
:cl:
add: Add a capacity upgrade for janitorial cyborg light replacers
/:cl:
  • Loading branch information
lbnesquik authored Sep 9, 2024
1 parent d1aef87 commit f6c8c46
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/objects/items/devices/lightreplacer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,12 @@
. = ..()
ADD_TRAIT(src, TRAIT_NODROP, CYBORG_ITEM_TRAIT)

/obj/item/lightreplacer/cyborg/advanced
name = "high capacity light replacer"
desc = "A higher capacity light replacer. Refill with broken or working lightbulbs, or sheets of glass."
icon_state = "lightreplacer_high"
max_uses = 50

/obj/item/lightreplacer/blue
name = "bluespace light replacer"
desc = "A modified light replacer that zaps lights into place. Refill with broken or working lightbulbs, or sheets of glass."
Expand Down
11 changes: 11 additions & 0 deletions code/game/objects/items/robot/robot_upgrades.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,17 @@

items_to_add = list(/obj/item/plunger/cyborg)

/obj/item/borg/upgrade/high_capacity_light_replacer
name = "janitor cyborg high capacity replacer"
desc = "Increases the amount of lights that can be stored in the replacer."
icon_state = "module_janitor"
require_model = TRUE
model_type = list(/obj/item/robot_model/janitor)
model_flags = BORG_MODEL_JANITOR

items_to_add = list (/obj/item/lightreplacer/cyborg/advanced)
items_to_remove = list(/obj/item/lightreplacer/cyborg)

/obj/item/borg/upgrade/syndicate
name = "illegal equipment module"
desc = "Unlocks the hidden, deadlier functions of a cyborg."
Expand Down
14 changes: 14 additions & 0 deletions code/modules/research/designs/mechfabricator_designs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,20 @@
RND_CATEGORY_MECHFAB_CYBORG_MODULES + RND_SUBCATEGORY_MECHFAB_CYBORG_MODULES_JANITOR
)

/datum/design/borg_upgrade_high_capacity_replacer
name = "High Capacity Light Replacer"
id = "borg_upgrade_high_capacity_replacer"
build_type = MECHFAB
build_path = /obj/item/borg/upgrade/high_capacity_light_replacer
materials = list(
/datum/material/iron = SHEET_MATERIAL_AMOUNT*1.125,
/datum/material/glass = SHEET_MATERIAL_AMOUNT*0.75,
)
construction_time = 4 SECONDS
category = list(
RND_CATEGORY_MECHFAB_CYBORG_MODULES + RND_SUBCATEGORY_MECHFAB_CYBORG_MODULES_JANITOR
)

/datum/design/borg_upgrade_rolling_table
name = "Rolling Table Dock"
id = "borg_upgrade_rolling_table"
Expand Down
1 change: 1 addition & 0 deletions code/modules/research/techweb/nodes/cyborg_nodes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"borg_upgrade_expand",
"borg_upgrade_prt",
"borg_upgrade_plunger",
"borg_upgrade_high_capacity_replacer",
"borg_upgrade_selfrepair",
"borg_upgrade_thrusters",
"borg_upgrade_trashofholding",
Expand Down
Binary file modified icons/obj/service/janitor.dmi
Binary file not shown.

0 comments on commit f6c8c46

Please sign in to comment.