From 09c65f2822b99e43ccbc20a84998b1cc3e26eae8 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 28 Feb 2023 01:17:48 +0100 Subject: Added tracking to damage calculations --- universe/include/kurator/universe/TurretType.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'universe/include') diff --git a/universe/include/kurator/universe/TurretType.h b/universe/include/kurator/universe/TurretType.h index c00c2ea..7b3ebdc 100644 --- a/universe/include/kurator/universe/TurretType.h +++ b/universe/include/kurator/universe/TurretType.h @@ -19,8 +19,12 @@ struct TurretType double optimal_range = 0.0; double falloff_modifier = 0.05; double falloff_intensity = 0.2; - double effective_damage(double distance) const; + double tracking = 1000; + double tracking_factor = 3.0; + double tracking_exponent = 0.5; + double effective_damage(double distance, double speed) const; double range_modifier(double distance) const; + double tracking_modifier(double distance, double speed) const; double effective_range() const; double damage_per_second() const; }; -- cgit v1.1