revenge weapon for shield breaking & overridden by warheads #1411
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1 - Revenge weapon could be fired when a shield is broken
RevengeWeapon
, if set, will be fired on whoever dealt the damage that broke the shield. If it's broken by sources other than direct damage dealt by another TechnoType,RevengeWeapon
will not be fired.RevengeWeapon.AffectsHouses
can be used to filter which houses the damage that broke the shield is allowed to come from to fire the weapon.RevengeWeapon.AllFire
set to true, allRevengeWeapon
the TechnoType has will be fired if itsRevengeWeapon.CanFire.ShieldBreak
set to true, including those on its own or granted by attached effects.SuppressRevengeWeapons
set to true, it will not trigger revenge weapons.SuppressRevengeWeapons.Types
can be used to list WeaponTypes affected by this, if none are listed all WeaponTypes are affected.Warhead can override the above properties if its damage breaks a shield
Shield.RevengeWeapon
will be fired instead of ShieldTypeRevengeWeapon
if the shield is broken by the Warhead.Shield.RevengeWeapon.AffectsHouses
andShield.RevengeWeapon.AllFire
override theRevengeWeapon.AffectsHouses
andRevengeWeapon.AllFire
respectively for this shield breaking as well, if set.In
rulesmd.ini
:2 - Warhead can override revenge weapon properties if it kills a unit
RevengeWeapon
set, it will be fired instead of TechnoTypeRevengeWeapon
if it's killed by the Warhead.RevengeWeapon.AffectsHouses
andRevengeWeapon.CanFire.ShieldBreak
override TechnoTypeRevengeWeapon.AffectsHouses
andRevengeWeapon.CanFire.ShieldBreak
respectively for this kill as well, if set. Can't override revenge weapon settings granted by attached effects.In
rulesmd.ini
: