From 209648a39c98ccddc622703554912a21c2471531 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 8 Jan 2023 15:38:00 +0100 Subject: Implemented naive armour and shield without parametrized resits --- universe/src/JsonRepository.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'universe/src') 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); } -- cgit v1.1