The Blue Moon Branch is an enhanced fork of Nova Sector. This repository contains development branches for contributing to The Blue Moon Branch and NovaSector.
This PR is a deliverable for a bounty. Most of the bounty was implemented except for visual attachment.
The changes included in this PR enables the "power cord implant" to directly charge from power cells.
Added a static typecache synth_charge_whitelist for easily whitelisting of objects/cells to be used for charging.
Added power cell compatibility to the existing code by re-writing it to be more ubiquitous.
Refactored /obj/item/apc_powercord significantly and repathed it to /obj/item/synth_powercord.
Renamed /obj/item/organ/internal/cyberimp/arm/power_cord from "power cord implant" to "charging implant".
Added hard-delete protection in /obj/item/apc_powercord in case the cell was rigged to explode.
How This Contributes To The Nova Sector Roleplay Experience
Bounty Descriptuon
"Unlocks the space-age technology of inductive-charging for our synthetic humanoids. This would be adding functionality to the power-cord implant to function on cells outside of an APC (stealing some functionality from Ethereals, who can already do this). The implant would thus be renamed to "Charging Implant" instead, and would require a minor sprite update so that the cell looks visually attached to the cord when draining power from it, in-hand (mob sprite change not required here).
This would be beneficial for Synthetic Humanoids who usually don't leave their workplace often and max out the room's APC rather quickly, and Synthetics carrying around batteries to snack on is very flavorful - not to mention very helpful for synthetic miners."
Testimony from Lieutenant Commander Data
>"I initiated the testing process as per your instructions. Commencing with the connection to a standard power cell, followed by testing with an EPS conduit's inverter. I monitored the energy transfer, automatic disconnection, and subsequent internal power cell charge.
>
> Connection to a standard power cell was successful. The power cord effectively received energy, and the automatic disconnection mechanism engaged as the minimum energy level was reached. Subsequently, my internal power cell was observed to have increased to its maximum level. Testing with an EPS conduit's inverter also yielded positive results. The power cord efficiently interfaced with the inverter, underwent the automatic disconnection process upon reaching the minimum energy level, and successfully increased the internal power cell charge to its maximum level.
>
>The implant appears to function as intended, demonstrating reliability and safety. The new power cord implant offers a more direct and efficient method of energy transfer, minimizing downtime for recharging. Prior to the new design, I relied on traditional charging methods, often requiring a dedicated charging station. The new implant enhances my operational efficiency by allowing for on-the-go charging, which aligns with the principles of productivity and adaptability.
>
> Given the positive results of the testing and the potential operational benefits, I would cautiously recommend the implant to other synthetic life forms. I trust that the information I have provided will be valuable in Nanotrasen's decision-making process. If there are further inquiries or if additional assistance is required, please do not hesitate to contact me.
>
>Respectfully,
>Lieutenant Commander Data,
>United Federation of Planets, Starfleet
Proof of Testing
Tested extensively by a well-known "Soong-type" synthetic intelligence and android-lifeform, Lieutenant Commander Data.
About The Pull Request
This PR is a deliverable for a bounty. Most of the bounty was implemented except for visual attachment.
The changes included in this PR enables the "power cord implant" to directly charge from power cells.
synth_charge_whitelist
for easily whitelisting of objects/cells to be used for charging./obj/item/apc_powercord
significantly and repathed it to/obj/item/synth_powercord
./obj/item/organ/internal/cyberimp/arm/power_cord
from "power cord implant" to "charging implant"./obj/item/apc_powercord
in case the cell was rigged to explode.How This Contributes To The Nova Sector Roleplay Experience
Bounty Descriptuon
Proof of Testing
Tested extensively by a well-known "Soong-type" synthetic intelligence and android-lifeform, Lieutenant Commander Data.
Changelog
:cl: add: Enabled the synth power cord implant to charge from any power cell. Renamed it to charging implant. /:cl: