Delta-v/Content.Server/Polymorph/Components
Bakke 036b05b276
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>
(cherry picked from commit a9b797a0917868fc888b612e59fd22d07b5f8118)
2024-01-26 21:38:44 +01:00
..
PolymorphOnCollideComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
PolymorphableComponent.cs Fix robusted dionas not being recoverable (#21636) 2024-01-26 21:38:44 +01:00
PolymorphedEntityComponent.cs Action container rejig (#20260) 2023-09-27 21:59:12 +02:00