summaryrefslogtreecommitdiff
path: root/universe/include
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-27 00:27:39 +0100
committerAki <please@ignore.pl>2023-01-27 00:27:39 +0100
commit75440771ca95a28556586233a0a8399022a5559f (patch)
treeb2cbadb1937eba2aa914030e6048b2b78a84fa6f /universe/include
parenta40e6361ba7172e0a3f3b16e2d286db9928e94e2 (diff)
downloadkurator-75440771ca95a28556586233a0a8399022a5559f.zip
kurator-75440771ca95a28556586233a0a8399022a5559f.tar.gz
kurator-75440771ca95a28556586233a0a8399022a5559f.tar.bz2
Added effective range calculation for turrets
This is now used when deciding if turret should start shooting or not.
Diffstat (limited to 'universe/include')
-rw-r--r--universe/include/kurator/universe/TurretType.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/universe/include/kurator/universe/TurretType.h b/universe/include/kurator/universe/TurretType.h
index 553894b..0a0c5fd 100644
--- a/universe/include/kurator/universe/TurretType.h
+++ b/universe/include/kurator/universe/TurretType.h
@@ -20,6 +20,7 @@ struct TurretType
double falloff_modifier = 0.05;
double falloff_intensity = 0.2;
double effective_damage(double distance) const;
+ double effective_range() const;
};