]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Corrupt borg speech if they are damaged or low power (#35318)
authorQuantum-cross <7065792+Quantum-cross@users.noreply.github.com>
Fri, 14 Mar 2025 15:31:09 +0000 (11:31 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Mar 2025 15:31:09 +0000 (02:31 +1100)
commitfd59427cb5d11ef6b3322f66a7c5ea6366723770
tree099bb3c75f65457e9485f5f5cf7ac94ebf1bea0e
parent50525a11be165a9b2a3d5cd24a64aa2c94a41162
Corrupt borg speech if they are damaged or low power (#35318)

* - Corrupt borg speech the more damaged they are
- Corrupt long borg messages if battery is low or empty

* twiddle values

* Remove RNG based loop, hardcode repeating values for p=0.25 up to 10 repeats.

* Make sure that DamagedSiliconAccentSystem is AFTER ReplacementAccentSystem

* add missing base initializer call

* use Entity<T> pattern for event listener and clarify default values

* Move corruption parameters to datafields

* Add datafields to enable and disable the two types of corruption, and add datafields to override damage values and charge levels to support entities that don't have damageable components or power cells.

* Use nullables for override values

* Move DamagedSiliconAccentComponent to Shared and make it networked

* Add DamagedSiliconAccent to cloning whitelist
Content.Server/Speech/EntitySystems/DamagedSiliconAccentSystem.cs [new file with mode: 0644]
Content.Shared/Speech/Components/DamagedSiliconAccentComponent.cs [new file with mode: 0644]
Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml
Resources/Prototypes/Entities/Mobs/Player/clone.yml