Skip to content

Conversation

@TaranDahl
Copy link
Contributor

@TaranDahl TaranDahl commented Dec 22, 2025

Toggle per-target warhead effects apply timing

  • Now you can set the following flag to false to apply the Phobos warhead effects that take effect on each target when taking damage, rather than when the projectiles detonate.
    • This will allow such effects to be applied through damage without projectiles, including but not limited to damage from particles, vanilla radiation, and Ares' GenericWarhead superweapon.
    • This will also cause all effects that can completely prevent damage to also prevent these warhead effects, including but not limited to DamageSelf, DamageAirThreshold, AffectsAllies, AffectsAir.
    • If you use a warhead with CellSpread to damage a building multiple times, then these effects will be applied multiple times. If you don't want this to happen, use MergeBuildingDamage.
    • The affected effects include:

In rulesmd.ini:

[CombatDamage]                        ; WarheadType
ApplyPerTargetEffectsOnDetonate=true  ; boolean

[SOMEWARHEAD]                         ; WarheadType
ApplyPerTargetEffectsOnDetonate=      ; boolean, default to [CombatDamage] -> ApplyPerTargetEffectsOnDetonate
- Ares' warhead effects, such as EMP or IronCurtain warhead, will not be affected. 
- Ares' warhead effect controllers, such as `EffectsRequireDamage`, only affect Ares' effects. So they have nothing to do with this.

@TaranDahl TaranDahl requested a review from Starkku December 22, 2025 11:13
@TaranDahl TaranDahl added ⚙️T2 T2 maintainer review is sufficient ❓Unhardcoding / Customization Make something more tweakable labels Dec 22, 2025
@TaranDahl TaranDahl changed the title Apply per target warhead effects on ReceiveDamage Apply per-target warhead effects on ReceiveDamage Dec 22, 2025
@github-actions
Copy link

github-actions bot commented Dec 22, 2025

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.

@Starkku
Copy link
Contributor

Starkku commented Dec 30, 2025

Code and documentation are fine.

I assume with ApplyPerTargetEffectsOnDetonate=false the Warhead effects require non-zero damage to be forwarded to receive damage function. Ares added a key called EffectsRequireDamage to remove this requirement for its damage-adjacent Warhead effects, does that still function in this case too? Something maybe worth mentioning in doc if so.

@TaranDahl
Copy link
Contributor Author

Code and documentation are fine.

I assume with ApplyPerTargetEffectsOnDetonate=false the Warhead effects require non-zero damage to be forwarded to receive damage function. Ares added a key called EffectsRequireDamage to remove this requirement for its damage-adjacent Warhead effects, does that still function in this case too? Something maybe worth mentioning in doc if so.

I don't think it should have an impact. Because this change only affects the Phobos-related effects, and Ares effects still use its own area search.

@TaranDahl TaranDahl merged commit 6b0ed1c into Phobos-developers:develop Dec 31, 2025
6 checks passed
@TaranDahl TaranDahl deleted the ApplyEffectOnReceiveDamage branch December 31, 2025 10:36
DeathFishAtEase added a commit to DeathFishAtEase/Phobos that referenced this pull request Jan 1, 2026
DeathFishAtEase added a commit to DeathFishAtEase/Phobos that referenced this pull request Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️T2 T2 maintainer review is sufficient Tested ❓Unhardcoding / Customization Make something more tweakable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants