SmokeRoundsScenarioTests: the direct weapon's kill check counts a burst's rounds (Damage is per round, ammo per burst)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5d5bdc25f8
commit
0388e39913
1 changed files with 3 additions and 2 deletions
|
|
@ -63,8 +63,9 @@ public sealed partial class RunStartTests
|
|||
Assert.True(Bears(direct, player, fragile), "the direct weapon cannot bear on the fragile hull");
|
||||
Assert.True(length((fragile.Position - player.Position).xz) <= directWeapon.Range, "the fragile hull lies beyond the direct weapon's range");
|
||||
var magazine = direct.Data.Behaviors.OfType<WeaponData>().Single().MagazineSize;
|
||||
Assert.True(magazine > 0 && directWeapon.Damage * magazine > ((HullData) _items.GetData(fragile.Hull)).Durability,
|
||||
$"the direct weapon cannot kill the fragile hull from its magazine ({directWeapon.Damage} x {magazine})");
|
||||
var burst = ((InstantWeapon) directWeapon).BurstCount;
|
||||
Assert.True(magazine > 0 && directWeapon.Damage * burst * magazine > ((HullData) _items.GetData(fragile.Hull)).Durability,
|
||||
$"the direct weapon cannot kill the fragile hull from its magazine ({directWeapon.Damage} x {burst} x {magazine})");
|
||||
|
||||
// Only the Longinus at mid range is hostile.
|
||||
Assert.True(player.IsHostileTo(mid) && mid.IsHostileTo(player), "the mid-range hull is hostile");
|
||||
|
|
|
|||
Loading…
Reference in a new issue