diff options
author | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-09-24 14:31:50 +0200 |
---|---|---|
committer | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-09-24 14:31:50 +0200 |
commit | 67ae1ab90b91e9d3fcc771e7f68adcfaedea1f5e (patch) | |
tree | cd394b260ce19d53b7812048f21b5646dd28741b /src/openvic-simulation/map/ProvinceInstance.cpp | |
parent | 0eefbc4d41558fd23dcaa5874c619fa357be17e7 (diff) |
Basic production & sales for rgo when initialising new game
Diffstat (limited to 'src/openvic-simulation/map/ProvinceInstance.cpp')
-rw-r--r-- | src/openvic-simulation/map/ProvinceInstance.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/openvic-simulation/map/ProvinceInstance.cpp b/src/openvic-simulation/map/ProvinceInstance.cpp index e2128ed..5d497c5 100644 --- a/src/openvic-simulation/map/ProvinceInstance.cpp +++ b/src/openvic-simulation/map/ProvinceInstance.cpp @@ -330,10 +330,9 @@ bool ProvinceInstance::apply_history_to_province(ProvinceHistoryEntry const& ent return ret; } -void ProvinceInstance::setup_rgo(ProductionType const& rgo_production_type) { +void ProvinceInstance::initialise_for_new_game(ProductionType const& rgo_production_type) { convert_rgo_worker_pops_to_equivalent(rgo_production_type); - rgo.set_production_type(&rgo_production_type); - rgo.update_size(*this); + rgo.initialise_for_new_game(*this,rgo_production_type); } void ProvinceInstance::setup_pop_test_values(IssueManager const& issue_manager) { |