aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/economy
Commit message (Collapse)AuthorAgeLines
* Merge pull request #218 from OpenVicProject/condition-scripts-prep-work Hop3116 days-1/+6
|\ | | | | Condition scripts prep work
| * Rename `scope_t` enum to `scope_type_t` hop3118 days-1/+6
| |
* | Correct rgo size calcuation wvpm6 days-2/+10
| |
* | Implement rgo for new gameprepare_for_rgo wvpm7 days-91/+492
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 wvpm11 days-12/+9
|
* Require modifier type when parsing ModifierValues hop3112024-10-19-1/+5
|
* Move ModifierManager to its own files hop3112024-10-19-1/+3
|
* Cache modifier effects in dedicated variables hop3112024-10-05-29/+79
|
* Move ModifierEffect and ModifierValue into their own files hop3112024-10-05-1/+4
|
* Add ModifierEffect targets hop3112024-10-05-3/+5
|
* Add modifier type enummodifier-types hop3112024-09-20-1/+2
|
* Store national focus encouragement in specific variables rather than ↵ hop3112024-09-20-7/+0
| | | | modifier effects
* Rearrange modifier files hop3112024-09-20-2/+2
|
* ModifierEffect and Rule localisation keysrule-modifier-locale-keys hop3112024-09-19-18/+37
|
* Move production types to economy/production/move_production_to_folder wvpm2024-09-18-33/+20
|
* CountryInstance unlock tech, invention, crime, building, unit, gas etc. hop3112024-09-12-8/+8
|
* Remove price_t aliasremove-price_t hop3112024-09-06-11/+8
|
* Remove unnecessary asserts + make `vec2_t(T val)` constructor explicitremove-asserts hop3112024-08-29-9/+17
|
* Cleanup: inheritance, const movable variables, code formattingformat-cleanup hop3112024-07-19-14/+22
|
* Optimize some string interning casesoptimize/string-interning Spartan3222024-07-18-9/+20
|
* Add IndexedMap and use in low key count, high value density casesindexed-map hop3112024-07-17-5/+2
|
* Separated GameManager into Definition and Instance Managersinstance-definition-managers hop3112024-06-13-15/+15
|
* Add GoodInstancegood-instance hop3112024-06-08-150/+273
|
* Clean up BuildingType loadingbuilding-type hop3112024-04-15-77/+87
|
* Added producer typesproducer_types wvpm2024-02-05-0/+163
|
* Added StringMapCase and case insensitive expect_dictionary_keyscase-rework hop3112024-01-25-1/+1
|
* Added reserve_more, expect_dictionary_key[s|_map]_reserve_length[_and_default]reserve_more hop3112024-01-23-2/+2
|
* Parse missing variables, Logger counting, misc cleanup hop3112024-01-18-63/+118
|
* Case insensitive modifiers & added more wvpm2024-01-12-2/+2
|
* Added NationalFocus ModifierEffects + bool variables hop3112024-01-12-0/+4
|
* Improved validation of production types and renamed properties to be descriptive wvpm2024-01-10-112/+116
|
* feat: condition loading and parsing zaaarf2024-01-07-3/+1
| | | | Co-authored-by: Hop311 <Hop3114@gmail.com>
* Mutually exclusive rule groups + modded building rules hop3112024-01-03-12/+14
|
* Added framework for loading all Conditions and Effects hop3112024-01-02-50/+98
|
* Add `https://github.com/Tessil/ordered-map` Spartan3222023-12-31-3/+5
| | | | | | | | | | | Add is_specialization_of to Utility.hpp Add OpenVic::ordered_map and OpenVic::ordered_set Change `std::map` to `ordered_map` Change `std::set to use `ordered_set` Add `set_callback_pointer(tsl::ordered_set<T const*>& set)` Add mutable_iterator to enable mutable value iterator for `tsl::ordered_map` Add std::hash<OpenVic::Date> implementation Enable deps/SCsub to expose dependency includes neccessary for inclusion
* Clock refactor + misc small fixes hop3112023-12-28-2/+2
|
* Province building scaffolding hop3112023-12-25-10/+40
|
* Merge pull request #100 from OpenVicProject/change/colour_t_to_struct George L. Albany2023-12-24-6/+2
|\
| * Change colour_t to be a strongly typed structure Spartan3222023-12-24-6/+2
| | | | | | | | | | | | | | 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`
* | Fixed TGC compatibility + misc cleanup hop3112023-12-23-0/+6
|/
* Additional adjacency loading BuildTools2023-12-17-2/+19
|
* Removed modifier generating macros. hop3112023-12-14-17/+17
|
* feat: improved identifier registry macro zaaarf2023-12-10-17/+5
|
* Vec/set callbacks + crime file + prov building pos hop3112023-12-07-25/+14
|
* feat: implemented invention dataloading zaaarf2023-12-05-5/+9
|
* Crime+event modifier loading + misc UI backend hop3112023-12-02-9/+18
|
* feat: implemented modifier identifier flattening, added/fixed remaining tech ↵ zaaarf2023-12-02-0/+20
| | | | modifiers effects
* feat: replaced REF_GETTERS with PROPERTY_REF, added PROPERTY_CUSTOM_PREFIX zaaarf2023-12-01-12/+8
|
* chore: use PROPERTY and its variants when possible zaaarf2023-11-22-162/+27
|
* Misc changes hop3112023-11-16-156/+120
|