summaryrefslogtreecommitdiff
path: root/universe
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-11-20 00:54:28 +0100
committerAki <please@ignore.pl>2022-11-20 00:54:28 +0100
commitec2f951152cd19ce861d9ae19f0bfac67595834c (patch)
tree0a5795c00bf2bfee72d21e5c9b76179c81a32138 /universe
parent98982513f97f449fd200132d0f19130ab31e2c36 (diff)
downloadkurator-ec2f951152cd19ce861d9ae19f0bfac67595834c.zip
kurator-ec2f951152cd19ce861d9ae19f0bfac67595834c.tar.gz
kurator-ec2f951152cd19ce861d9ae19f0bfac67595834c.tar.bz2
Implemented verbose damage modifier based on range
Diffstat (limited to 'universe')
-rw-r--r--universe/include/kurator/universe/TurretType.h4
-rw-r--r--universe/src/SampleRepository.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/universe/include/kurator/universe/TurretType.h b/universe/include/kurator/universe/TurretType.h
index b3a6eb2..7723d88 100644
--- a/universe/include/kurator/universe/TurretType.h
+++ b/universe/include/kurator/universe/TurretType.h
@@ -14,7 +14,9 @@ struct TurretType
std::string name;
double base_damage;
double rate_of_fire;
- double range;
+ double optimal_range;
+ double falloff_modifier;
+ double falloff_intensity;
};
diff --git a/universe/src/SampleRepository.cpp b/universe/src/SampleRepository.cpp
index 1d875e7..2886e3d 100644
--- a/universe/src/SampleRepository.cpp
+++ b/universe/src/SampleRepository.cpp
@@ -23,7 +23,7 @@ static const std::unordered_map<std::string, ShipType> ships {
static const std::unordered_map<std::string, TurretType> turrets {
- {"cannon", {"Cannon", 1.0, 1.0, 1.2}},
+ {"cannon", {"Cannon", 1.0, 1.0, 1.5, 0.5, 0.2}},
};