aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/NationalFocus.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-01-08 23:19:39 +0100
committer hop311 <hop3114@gmail.com>2024-01-08 23:19:39 +0100
commit83802dfead4938e6f98b4b9961b286e06ab78b18 (patch)
treeb0b404a1826d455767b16d3e3ae1d6bf7516e06d /src/openvic-simulation/politics/NationalFocus.hpp
parent79b8b73304753fedab822e6aa859fa15673f52cc (diff)
Added map_callback and expect_item_dictionary_reserve_length
Diffstat (limited to 'src/openvic-simulation/politics/NationalFocus.hpp')
-rw-r--r--src/openvic-simulation/politics/NationalFocus.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/openvic-simulation/politics/NationalFocus.hpp b/src/openvic-simulation/politics/NationalFocus.hpp
index 44e58e3..6e064f1 100644
--- a/src/openvic-simulation/politics/NationalFocus.hpp
+++ b/src/openvic-simulation/politics/NationalFocus.hpp
@@ -23,7 +23,6 @@ namespace OpenVic {
public:
using pop_promotion_map_t = fixed_point_map_t<PopType const*>;
- using party_loyalty_map_t = fixed_point_map_t<Ideology const*>;
using production_map_t = fixed_point_map_t<Good const*>;
private:
@@ -31,8 +30,9 @@ namespace OpenVic {
NationalFocusGroup const& PROPERTY(group);
ModifierValue PROPERTY(modifiers);
pop_promotion_map_t PROPERTY(encouraged_promotion);
- party_loyalty_map_t PROPERTY(encouraged_loyalty);
production_map_t PROPERTY(encouraged_production);
+ Ideology const* PROPERTY(loyalty_ideology);
+ fixed_point_t PROPERTY(loyalty_value);
ConditionScript PROPERTY(limit);
NationalFocus(
@@ -41,8 +41,9 @@ namespace OpenVic {
NationalFocusGroup const& new_group,
ModifierValue&& new_modifiers,
pop_promotion_map_t&& new_encouraged_promotion,
- party_loyalty_map_t&& new_encouraged_loyalty,
production_map_t&& new_encouraged_production,
+ Ideology const* new_loyalty_ideology,
+ fixed_point_t new_loyalty_value,
ConditionScript&& new_limit
);
@@ -66,8 +67,9 @@ namespace OpenVic {
NationalFocusGroup const& group,
ModifierValue&& modifiers,
NationalFocus::pop_promotion_map_t&& encouraged_promotion,
- NationalFocus::party_loyalty_map_t&& encouraged_loyalty,
NationalFocus::production_map_t&& encouraged_production,
+ Ideology const* loyalty_ideology,
+ fixed_point_t loyalty_value,
ConditionScript&& limit
);