EW 2 fixes: one hull claim slot, explicit tie order, one burst divisor, fixtures that see range and live state
- Entity: delete _hullClaim; the hull's claim is the EquippedHull entry of _itemClaims, so ClaimOf(EquippedHull) and ClaimedHull read one slot (hull-claim-split). Claim(HullData) writes it; a non-hull claim of the hull throws. - RevealedWeapons orders by the subject's equipment order, not dictionary slot order (tie-order-unpinned). - InstantWeaponData.PerRound is the one burst divisor for UpdateStats and the rated read (burst-divisor-twice). - Tests: falling-curve, Range-span, MinRange>0 fixtures and a charged weapon in the rated tests (rated-figure-range-blind); Combat ranks claims at the target's distance, ignores a worn target gun's live figure (live-state-unpinned), and takes ties in equipment order. Not yet run; may not build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ad71eabbaa
commit
a782c7d5d2
6 changed files with 205 additions and 45 deletions
|
|
@ -61,7 +61,7 @@ public class ChargedWeaponData : InstantWeaponData
|
|||
damage * chargeFiringDamageMultiplier * damageCurve.Evaluate(saturate(unlerp(minRange, range, atRange))) / (cooldown + chargeTime);
|
||||
|
||||
public override float RatedRangeDamagePerSecond(float range) =>
|
||||
RangeDamagePerSecond(DamageCurve, Damage.Max / (int) Count.Max, ChargeFiringDamageMultiplier, MinRange.Max, Range.Max,
|
||||
RangeDamagePerSecond(DamageCurve, PerRound(Damage.Max, Count.Max), ChargeFiringDamageMultiplier, MinRange.Max, Range.Max,
|
||||
Cooldown.Max, ChargeTime.Max, range);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue