From b8d3a357428d3af09031d2ae8925e1c2e93810ba Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 31 Dec 2022 16:26:25 +0100 Subject: Added rounds and reload time to turrets to enable burst weapons --- sim/src/Builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/src/Builder.cpp') diff --git a/sim/src/Builder.cpp b/sim/src/Builder.cpp index e0198a1..068d012 100644 --- a/sim/src/Builder.cpp +++ b/sim/src/Builder.cpp @@ -47,7 +47,7 @@ Builder::operator()(const universe::TurretType& turret_type, const entt::entity& { const auto entity = registry.create(); registry.emplace(entity, turret_type); - registry.emplace(entity, 0.0, owner); + registry.emplace(entity, 0.0, 0.0, turret_type.rounds, owner); registry.emplace(entity, Point{0.0, 0.0}, 0.0, owner); return entity; } -- cgit v1.1