aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/pop/Pop.cpp
Commit message (Collapse)AuthorAgeLines
* Implement rgo for new gameprepare_for_rgo wvpm12 days-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Map province history rgo to production type for province instance output_goods back to ZERO_OR_ONE Link trade_goods in history to RGO instance for province. Other producer types as structs instead of classes Convert pops to equivalents & calculate rgo size Also convert pops when changing rgo Clean up Refactored RGO into part of ProvinceInstance ProductionType const& output_good Remove unused imports Clean up unused imports Restore constructor for ResourceGatheringOperation to initialise from savegame Move rgo size calculation to rgo Use terrain modifiers to calculate rgo size (placeholder code) Clean up Basic production & sales for rgo when initialising new game Use mutable pops Paychecks for owners, workers and slaves Clean up Simplify rgo instantiation Co-authored-by: Hop311 <Hop3114@gmail.com> Simplify good_to_rgo_production_type assignment Co-authored-by: Hop311 <Hop3114@gmail.com> Fix import Co-authored-by: Hop311 <Hop3114@gmail.com> min(3, great_powers.size()) Co-authored-by: Hop311 <Hop3114@gmail.com> Fix import Co-authored-by: Hop311 <Hop3114@gmail.com> Apply comments Log errors and return result when applying history Cleanup
* contextual modifier parsingcontextual_modifier_parsing wvpm2024-10-26-2/+2
|
* Move ModifierManager to its own files hop3112024-10-19-0/+1
|
* Cache modifier effects in dedicated variables hop3112024-10-05-8/+15
|
* Add ModifierEffect targets hop3112024-10-05-2/+4
|
* Make ModifierEffect format argument mandatory hop3112024-10-05-1/+1
|
* Store national focus encouragement in specific variables rather than ↵ hop3112024-09-20-7/+0
| | | | modifier effects
* ModifierEffect and Rule localisation keysrule-modifier-locale-keys hop3112024-09-19-1/+6
|
* Reduce pop size to int32pop_size_int32 wvpm2024-09-18-2/+2
|
* Calculate country military power (still needs modifiers + soldier pop ↵ranking hop3112024-09-09-1/+20
| | | | supported regiment count)
* Remove unnecessary asserts + make `vec2_t(T val)` constructor explicitremove-asserts hop3112024-08-29-8/+2
|
* Fleshing out Country, State and Province instances + historycountry-instance hop3112024-07-22-1/+4
|
* Add IndexedMap and use in low key count, high value density casesindexed-map hop3112024-07-17-16/+21
|
* Use minimal PopBase for pop historypop-base hop3112024-06-27-18/+20
|
* Renamed Country to CountryDefinitioncountry-definition hop3112024-06-20-2/+2
|
* Separated GameManager into Definition and Instance Managersinstance-definition-managers hop3112024-06-13-15/+15
|
* Add GoodInstancegood-instance hop3112024-06-08-11/+15
|
* Add Pop attributes + generate test valuespop-menu hop3112024-03-20-1/+83
|
* feat: unit instance type definition, renamed existing structs for consistencymilitary-units zaaarf2024-03-16-3/+3
|
* Reworked Units and added IdentifierPointerRegistryunit-rework hop3112024-01-23-10/+19
|
* Added reserve_more, expect_dictionary_key[s|_map]_reserve_length[_and_default]reserve_more hop3112024-01-23-4/+13
|
* Parse missing variables, Logger counting, misc cleanup hop3112024-01-18-62/+270
|
* Case insensitive modifiers & added more wvpm2024-01-12-3/+5
|
* Added NationalFocus ModifierEffects + bool variables hop3112024-01-12-0/+5
|
* Added map_callback and expect_item_dictionary_reserve_length hop3112024-01-08-15/+9
|
* feat: condition loading and parsing zaaarf2024-01-07-11/+14
| | | | Co-authored-by: Hop311 <Hop3114@gmail.com>
* Added pop properties (size changes, literacy) FarmingtonS92024-01-02-6/+3
|
* Added framework for loading all Conditions and Effects hop3112024-01-02-11/+133
|
* Change colour_t to be a strongly typed structure Spartan3222023-12-24-6/+3
| | | | | | | Make RGB default of `colour_t` Distinguish RGB and ARGB colors by type and colour_traits Add `_colour` and `_argb` colour user-defined literals Add `OpenVic::utility::unreachable`
* Removed modifier generating macros. hop3112023-12-14-13/+14
|
* Made pop type strata moddable hop3112023-12-13-11/+55
|
* Province pop history + country government flag override refactors hop3112023-12-13-2/+39
|
* feat: implemented pop history loading zaaarf2023-12-10-25/+0
|
* feat: improved identifier registry macro zaaarf2023-12-10-1/+1
|
* Crime+event modifier loading + misc UI backend hop3112023-12-02-26/+48
|
* chore: use PROPERTY and its variants when possible zaaarf2023-11-22-76/+0
|
* History loading changes + PROPERTY macro hop3112023-11-07-1/+1
|
* Clang-format formatting (with manual cleanup) hop3112023-10-29-36/+31
|
* Astyle formatting (with manual cleanup) hop3112023-10-29-9/+14
|
* Separated node->string and string->value parsing hop3112023-10-20-2/+2
|
* Minor cleanup hop3112023-10-20-16/+0
|
* Loading of poptype needs & rebel compositions k0uneli2023-10-16-9/+40
|
* Lots of accumulated changes hop3112023-10-12-23/+13
|
* Data types, defaults, callback cleanup Hop3112023-09-29-4/+4
|
* Removed unnecessary `const std::string_view`s Hop3112023-09-28-4/+4
|
* Fixed pop type loading issue Hop3112023-09-24-8/+8
|
* Testing (#23) CptAlanSmith2023-09-23-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixes for building scons * Initial proof of concept auto-testing Shows how we can pull loaded data and display it back * Re-did headless Because hubert insisted it be done like this ;) * Auto-Testing Framework Basics * Requirements Calculations * Fix for messy merge (teach me to use merge tools) * Fixing up misc merge issues to fully reconcile with master changes * Re-added missing getters * Move of testing files due to folder reorgs * Use new accessors + int reading fix --------- Co-authored-by: Hop311 <hop3114@gmail.com>
* Merge pull request #20 from OpenVicProject/poptypes Hop3112023-09-20-8/+66
|\ | | | | Basic loading of pop types
| * Req comment + strata map and error message Hop3112023-09-20-22/+25
| |
| * Loading pop types k0uneli2023-09-13-5/+60
| |