]> git.smokeofanarchy.ru Git - space-station-14.git/commit
BatteryWeaponPowerCell tweaks (#33500)
authorKirus59 <145689588+Kirus59@users.noreply.github.com>
Tue, 29 Apr 2025 01:12:25 +0000 (04:12 +0300)
committerGitHub <noreply@github.com>
Tue, 29 Apr 2025 01:12:25 +0000 (21:12 -0400)
commit8c38aa3742efbd48c866485d653d024ef7a69fdc
tree220d0f8fbd683103502d3673878ca87b2411b227
parenta8054c37b1915118cf0a205655bfe83a45002b8e
BatteryWeaponPowerCell tweaks (#33500)

* BatteryWeaponPowerCell tweaks

* add update ammo ev & shuttle guns tweaks

* MilonPL requested changes

* revert changes in OnPowerCellChanged

* Add events to get charge info & change current charge

---------

Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
Content.Server/Power/Components/BatteryComponent.cs
Content.Server/Power/EntitySystems/BatterySystem.cs
Content.Server/PowerCell/PowerCellSystem.cs
Content.Server/Weapons/Ranged/Systems/GunSystem.Battery.cs
Content.Server/Weapons/Ranged/Systems/GunSystem.cs
Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.Battery.cs
Resources/Prototypes/Entities/Objects/Power/powercells.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml
Resources/Prototypes/Entities/Structures/Shuttles/cannons.yml