diff options
author | hop311 <hop3114@gmail.com> | 2024-09-06 23:58:20 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-09-08 18:24:57 +0200 |
commit | b5407c8794c4626d010bd0856a146095daa1042d (patch) | |
tree | 19baa8e48c1cf6d2d3b0c152b47f16daa9745a21 /src/openvic-simulation/misc/Define.cpp | |
parent | dd65fa7dd431264caa08d083cb3a94922a4084d5 (diff) |
Add country ranking system + great/secondary powers
Diffstat (limited to 'src/openvic-simulation/misc/Define.cpp')
-rw-r--r-- | src/openvic-simulation/misc/Define.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/openvic-simulation/misc/Define.cpp b/src/openvic-simulation/misc/Define.cpp index 6161842..2437954 100644 --- a/src/openvic-simulation/misc/Define.cpp +++ b/src/openvic-simulation/misc/Define.cpp @@ -150,9 +150,12 @@ bool DefineManager::load_define_years(Timespan& value, Define::Type type, std::s DefineManager::DefineManager() : // Date start_date { 1836, 1, 1 }, - end_date { 1936, 1, 1 } + end_date { 1936, 1, 1 }, // Country + great_power_rank { 8 }, + lose_great_power_grace_days { Timespan::from_years(1) }, + secondary_power_rank { 16 } // Economy @@ -231,6 +234,9 @@ bool DefineManager::load_defines_file(ast::NodeCPtr root) { ret &= load_define(end_date, Date, "end_date"); // Country + ret &= load_define(great_power_rank, Country, "GREAT_NATIONS_COUNT"); + ret &= load_define_days(lose_great_power_grace_days, Country, "GREATNESS_DAYS"); + ret &= load_define(secondary_power_rank, Country, "COLONIAL_RANK"); // Economy |