Adds an RLD upgrade to engineering borgs (#3583)

## About The Pull Request

Adds an RLD to the cyborg engineering upgrades, in the same techweb. No
longer shall man live in darkness.
## Why It's Good For The Game

PLEASE I DONT NEED TO SPEND 6000 YEARS MAKING LIGHTS!! 
I want FLOORLIGHTS, I want CHEMLIGHTS, let me SEE!!
## Proof Of Testing
<details>
<summary>Screenshots/Videos</summary>


![image](https://github.com/user-attachments/assets/0c1ab884-dbf9-4826-b06e-42f288572d83)


![image](https://github.com/user-attachments/assets/74c66b34-224b-4db7-9e74-2d009ed02fe8)



</details>

## Changelog
🆑
add: With a new upgrade, Borgs get an RLD. Let there be light.
/🆑
This commit is contained in:
Manatee
2025-04-22 01:29:56 +03:00
committed by GitHub
parent e1ff95b7dd
commit ff8abdf09c
4 changed files with 64 additions and 2 deletions
+41
View File
@@ -231,6 +231,47 @@
matter = 100
max_matter = 100
/obj/item/construction/rld/cyborg
name = "Cyborg rapid-light-device"
desc = "A device used to rapidly provide lighting sources to an area. Runs off a cyborg's internal power supply"
// Energy Use
var/energyfactor = 0.050 * STANDARD_CELL_CHARGE
/obj/item/construction/rld/cyborg/get_matter(mob/user)
if(!iscyborg(user))
return 0
var/mob/living/silicon/robot/borgy = user
if(!borgy.cell)
return 0
max_matter = borgy.cell.maxcharge
return borgy.cell.charge
/obj/item/construction/rld/cyborg/useResource(amount, mob/user)
if(!iscyborg(user))
return 0
var/mob/living/silicon/robot/borgy = user
if(!borgy.cell)
if(user)
balloon_alert(user, "no cell found!")
return 0
. = borgy.cell.use(amount * energyfactor)
if(!. && user)
balloon_alert(user, "insufficient charge!")
return .
/obj/item/construction/rld/cyborg/checkResource(amount, mob/user)
if(!iscyborg(user))
return 0
var/mob/living/silicon/robot/borgy = user
if(!borgy.cell)
if(user)
balloon_alert(user, "no cell found!")
return 0
. = borgy.cell.charge >= (amount * energyfactor)
if(!. && user)
balloon_alert(user, "insufficient charge!")
return .
#undef LIGHT_TUBE_COST
#undef FLOOR_LIGHT_COST
#undef GLOW_STICK_COST