summaryrefslogtreecommitdiff
path: root/universe/src
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-08 15:38:00 +0100
committerAki <please@ignore.pl>2023-01-08 15:38:00 +0100
commit209648a39c98ccddc622703554912a21c2471531 (patch)
tree3e322af8eefd566cdf2b5d6f997431c6d6a184b4 /universe/src
parent088f57155c79c5ee41e667496e2cd657af91a605 (diff)
downloadkurator-209648a39c98ccddc622703554912a21c2471531.zip
kurator-209648a39c98ccddc622703554912a21c2471531.tar.gz
kurator-209648a39c98ccddc622703554912a21c2471531.tar.bz2
Implemented naive armour and shield without parametrized resits
Diffstat (limited to 'universe/src')
-rw-r--r--universe/src/JsonRepository.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/universe/src/JsonRepository.cpp b/universe/src/JsonRepository.cpp
index 40b0b70..e8c8ed3 100644
--- a/universe/src/JsonRepository.cpp
+++ b/universe/src/JsonRepository.cpp
@@ -27,6 +27,8 @@ from_json(const json& item, ShipType& ship)
{
item.at("name").get_to(ship.name);
item.at("base_structure_points").get_to(ship.base_structure_points);
+ item.at("base_armour_points").get_to(ship.base_armour_points);
+ item.at("base_shield_points").get_to(ship.base_shield_points);
item.at("max_speed").get_to(ship.max_speed);
}