summaryrefslogtreecommitdiff
path: root/universe/include
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-02-28 01:17:48 +0100
committerAki <please@ignore.pl>2023-02-28 01:17:48 +0100
commit09c65f2822b99e43ccbc20a84998b1cc3e26eae8 (patch)
treed8bcf0886ca04c90bffa09ec0861e9d0368b2bc2 /universe/include
parent4e1f59b5c6689e38023f12daee7d5c6f3d4715e5 (diff)
downloadkurator-09c65f2822b99e43ccbc20a84998b1cc3e26eae8.zip
kurator-09c65f2822b99e43ccbc20a84998b1cc3e26eae8.tar.gz
kurator-09c65f2822b99e43ccbc20a84998b1cc3e26eae8.tar.bz2
Added tracking to damage calculations
Diffstat (limited to 'universe/include')
-rw-r--r--universe/include/kurator/universe/TurretType.h6
1 files changed, 5 insertions, 1 deletions
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;
};