]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Added the ability to refuel torches (and other expendable lights) (#36209)
authormjarduk <66081585+mjarduk@users.noreply.github.com>
Fri, 18 Apr 2025 01:59:41 +0000 (04:59 +0300)
committerGitHub <noreply@github.com>
Fri, 18 Apr 2025 01:59:41 +0000 (21:59 -0400)
commitfb912b3d5cdffeee6674b494780e900f4e866036
tree2312931726df0b7c7b5c11cded01cfc7b04d92fc
parent2c60d6b27f047c4011be6302f9e96af40e1013ef
Added the ability to refuel torches (and other expendable lights) (#36209)

* Added expendable light source refueling. Also fixed it to use the name modifier system so attributes like glue show up.

* Removed a duplicate line of code.

* Replaced TryGetComponent with TryComp, changed a variable name to be a little more clear.

* Removed the removed field "spentDesc" in flares and glowsticks

* Fixed to comply with slarticodefast's review. Name modifiers don't work yet (fixing that tmr)

* Fixed the localization!!!! :DDDD
Content.Server/Light/EntitySystems/ExpendableLightSystem.cs
Content.Shared/Light/Components/SharedExpendableLightComponent.cs
Resources/Locale/en-US/light/components/expendable-light-component.ftl
Resources/Prototypes/Entities/Objects/Misc/torch.yml
Resources/Prototypes/Entities/Objects/Tools/flare.yml
Resources/Prototypes/Entities/Objects/Tools/glowstick.yml