]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Refactor Crayons to use shared charges system and autonetworking. Adds auto rechargin...
authorDavid <david.owen.dev@gmail.com>
Fri, 10 Oct 2025 19:45:48 +0000 (13:45 -0600)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 19:45:48 +0000 (19:45 +0000)
commit3503cb52d28eb44a9c3a1a18b13d1a82e8110d66
tree815e0a02f1db8d8f753e9e6d5c6339c0a23e7575
parent766c2b875948851c1944fd22275b267d0b1131d0
Refactor Crayons to use shared charges system and autonetworking. Adds auto recharging crayon. (#40575)

* Added special crayon with infinite charges for borg usage.

* Use battery system to manage charges.

* Reverted extra changes

* Set charge on init

* removed init assignment

* Added comments to crayoncomponent

* tweaked comments

* Working with the new charges component, but at what cost?

* Remvoed extra field

* Apply suggestion from @slarticodefast

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Apply suggestion from @slarticodefast

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Apply suggestion from @slarticodefast

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Apply suggestion from @slarticodefast

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Fix renamed variables and descriptions in comments

* Variable naming, comment cleanup and autonetworking.

* Fix for test case, modified on init

* Cleaned up/merged charges logic

* review

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Client/Crayon/CrayonComponent.cs [deleted file]
Content.Client/Crayon/CrayonSystem.cs
Content.Server/Crayon/CrayonComponent.cs [deleted file]
Content.Server/Crayon/CrayonSystem.cs
Content.Shared/Crayon/CrayonComponent.cs [new file with mode: 0644]
Content.Shared/Crayon/SharedCrayonComponent.cs [deleted file]
Resources/Prototypes/Entities/Objects/Fun/crayons.yml