Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
300 stars 95 forks source link

[Minor] Customizing bridge fall damageFalling down damage #1421

Open a851903106 opened 1 week ago

a851903106 commented 1 week ago

Units falling from destroyed bridges were always bound to die. This can now be improved by preventing death by customizing the damage taken when falling.

坠落3 坠落4

In rulesmd.in:

[SOMETECHNO] ; TechnoType FallingDownDamage=1.0 ; double FallingDownDamage.Water= ; double, default is FallingDownDamage

FallingDownDamege < 0.0 : (Health FallingDownDamage)。 0.0 <= FallingDownDamege <= 1.0 : (Strength FallingDownDamage)。 FallingDownDamage > 1.0 : uses FallingDownDamage converted to int。