aboutsummaryrefslogtreecommitdiff
path: root/src/openvic/economy
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-08-10 12:32:53 +0200
committer Hop311 <hop3114@gmail.com>2023-08-10 12:32:53 +0200
commit170ee25469322d25931050813a779dfbc2eaa4b0 (patch)
tree42bc9cc4a0e33ff1f1a64ae5e23edc4a52ca4320 /src/openvic/economy
parent8a08be3e7e8477973e243716d431ad7117acfa43 (diff)
Added distributions for pop type and culture
Diffstat (limited to 'src/openvic/economy')
-rw-r--r--src/openvic/economy/Good.cpp3
-rw-r--r--src/openvic/economy/Good.hpp4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/openvic/economy/Good.cpp b/src/openvic/economy/Good.cpp
index 4524e5f..27d6133 100644
--- a/src/openvic/economy/Good.cpp
+++ b/src/openvic/economy/Good.cpp
@@ -6,8 +6,7 @@ using namespace OpenVic;
Good::Good(std::string const& new_identifier, std::string const& new_category, colour_t new_colour, price_t new_base_price,
bool new_default_available, bool new_tradeable, bool new_currency, bool new_overseas_maintenance)
- : HasIdentifier { new_identifier },
- HasColour { new_colour, true },
+ : HasIdentifierAndColour { new_identifier, new_colour, true },
category { new_category },
base_price { new_base_price },
default_available { new_default_available },
diff --git a/src/openvic/economy/Good.hpp b/src/openvic/economy/Good.hpp
index e159725..833b17a 100644
--- a/src/openvic/economy/Good.hpp
+++ b/src/openvic/economy/Good.hpp
@@ -6,7 +6,7 @@ namespace OpenVic {
struct GoodManager;
/* REQUIREMENTS:
- *
+ *
* ECON-3 , ECON-4 , ECON-5 , ECON-6 , ECON-7 , ECON-8 , ECON-9 , ECON-10, ECON-11, ECON-12, ECON-13, ECON-14,
* ECON-15, ECON-16, ECON-17, ECON-18, ECON-19, ECON-20, ECON-21, ECON-22, ECON-23, ECON-24, ECON-25, ECON-26,
* ECON-27, ECON-28, ECON-29, ECON-30, ECON-31, ECON-32, ECON-33, ECON-34, ECON-35, ECON-36, ECON-37, ECON-38,
@@ -17,7 +17,7 @@ namespace OpenVic {
* ECON-238, ECON-239, ECON-240, ECON-241, ECON-242, ECON-243, ECON-244, ECON-245, ECON-246, ECON-247, ECON-248, ECON-249,
* ECON-250, ECON-251, ECON-252, ECON-253, ECON-254, ECON-255, ECON-256, ECON-257, ECON-258, ECON-259, ECON-260, ECON-261
*/
- struct Good : HasIdentifier, HasColour {
+ struct Good : HasIdentifierAndColour {
friend struct GoodManager;
private: