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

revenge weapon for shield breaking & overridden by warheads #1411

Open Coronia opened 1 month ago

Coronia commented 1 month ago

1 - Revenge weapon could be fired when a shield is broken

Warhead can override the above properties if its damage breaks a shield

In rulesmd.ini:

[SOMESHIELDTYPE]                            ; ShieldType name
RevengeWeapon=                              ; WeaponType
RevengeWeapon.AffectsHouses=all             ; list of Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
RevengeWeapon.AllFire=false                 ; boolean

[SOMEWARHEAD]                               ; WarheadType
Shield.RevengeWeapon=                       ; WeaponType
Shield.RevengeWeapon.AffectsHouses=         ; list of Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
Shield.RevengeWeapon.AllFire=               ; boolean

[SOMETECHNO]                                ; TechnoType
RevengeWeapon.CanFire.ShieldBreak=true      ; boolean

[SOMEATTACHEFFECT]                          ; AttachEffectType
RevengeWeapon.CanFire.ShieldBreak=true      ; boolean

2 - Warhead can override revenge weapon properties if it kills a unit

In rulesmd.ini:

[SOMEWARHEAD]                           ; WarheadType
RevengeWeapon=                          ; WeaponType
RevengeWeapon.AffectsHouses=            ; list of Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
RevengeWeapon.CanFire.ShieldBreak=      ; boolean
github-actions[bot] commented 1 month ago

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.