implement sensor range requirements
This commit is contained in:
@@ -58,8 +58,8 @@ TEST_CASE("ShipSystem: interceptor level 1 stats match config formulas", "[ship]
|
||||
REQUIRE(ship->weapon->damage == Approx(12.0f));
|
||||
// attack_range_formula = "150"
|
||||
REQUIRE(ship->weapon->range == Approx(150.0f));
|
||||
// threatResponse.engagementRange mirrors weapon range
|
||||
REQUIRE(ship->threatResponse->engagementRange == Approx(150.0f));
|
||||
// sensor_range_formula = "200"
|
||||
REQUIRE(ship->sensorRange == Approx(200.0f));
|
||||
// cooldownTicks starts at 0
|
||||
REQUIRE(ship->weapon->cooldownTicks == Approx(0.0f));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user