depend on the registry instead of DebrisSystem in the AI path
This commit is contained in:
@@ -415,7 +415,7 @@ TEST_CASE("CombatSystem: scrap is spawned on ship death", "[combat]")
|
||||
|
||||
sim.tick();
|
||||
|
||||
const std::vector<DebrisInfo> scraps = sim.getDebrisSystem().getAllDebrisInfo();
|
||||
const std::vector<DebrisInfo> scraps = getAllDebrisInfo(sim.getAdmin());
|
||||
REQUIRE(scraps.size() == 1);
|
||||
CHECK(sim.getAdmin().get<DebrisComponent>(scraps[0].entity).amount == 59);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user