]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix robusted dionas not being recoverable (#21636)
authorBakke <luringens@protonmail.com>
Thu, 4 Jan 2024 13:10:04 +0000 (14:10 +0100)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 13:10:04 +0000 (06:10 -0700)
commita9b797a0917868fc888b612e59fd22d07b5f8118
treeaa661564fc50544c58a15fa2c2a770851de1a043
parentdfc8ca489ccc31de1a53ce12fe539f2458decd0e
Fix robusted dionas not being recoverable (#21636)

* Fix robusted dionas not being recoverable

* Implement a polymorph cooldown field, used for TreeMorph

Allows the polymorphed Diona some time to work off robust harvest
without immediately polymorphing again.

* Minor adjustment to polymorph cooldown timing

* Apply suggestions from code review

Co-authored-by: Kara <lunarautomaton6@gmail.com>
* fix: trigger polymorph revert on destruction

As suggested by mirrorcult, DamageThresholdReached is not the ideal
candidate for reverting a polymorph on destruction, as there exists a
DestructionEventArgs to listen for instead.

---------

Co-authored-by: Kara <lunarautomaton6@gmail.com>
Content.Server/Polymorph/Components/PolymorphableComponent.cs
Content.Server/Polymorph/Systems/PolymorphSystem.cs
Content.Shared/Polymorph/PolymorphPrototype.cs
Resources/Prototypes/Polymorphs/polymorph.yml