Rehost annual creditor pressure policy branch
This commit is contained in:
parent
e553275b2e
commit
64fc4a8488
8 changed files with 739 additions and 17 deletions
|
|
@ -851,6 +851,38 @@ fn project_save_slice_components(
|
|||
.world_issue_37_state
|
||||
.as_ref()
|
||||
.map(|state| state.multiplier_value_f32_text.clone()),
|
||||
stock_issue_and_buyback_policy_raw_u8: save_slice
|
||||
.world_finance_neighborhood_state
|
||||
.as_ref()
|
||||
.map(|state| state.stock_policy_raw_u8),
|
||||
bond_issue_and_repayment_policy_raw_u8: save_slice
|
||||
.world_finance_neighborhood_state
|
||||
.as_ref()
|
||||
.map(|state| state.bond_policy_raw_u8),
|
||||
bankruptcy_policy_raw_u8: save_slice
|
||||
.world_finance_neighborhood_state
|
||||
.as_ref()
|
||||
.map(|state| state.bankruptcy_policy_raw_u8),
|
||||
dividend_policy_raw_u8: save_slice
|
||||
.world_finance_neighborhood_state
|
||||
.as_ref()
|
||||
.map(|state| state.dividend_policy_raw_u8),
|
||||
stock_issue_and_buyback_allowed: save_slice
|
||||
.world_finance_neighborhood_state
|
||||
.as_ref()
|
||||
.map(|state| state.stock_policy_raw_u8 == 0),
|
||||
bond_issue_and_repayment_allowed: save_slice
|
||||
.world_finance_neighborhood_state
|
||||
.as_ref()
|
||||
.map(|state| state.bond_policy_raw_u8 == 0),
|
||||
bankruptcy_allowed: save_slice
|
||||
.world_finance_neighborhood_state
|
||||
.as_ref()
|
||||
.map(|state| state.bankruptcy_policy_raw_u8 == 0),
|
||||
dividend_adjustment_allowed: save_slice
|
||||
.world_finance_neighborhood_state
|
||||
.as_ref()
|
||||
.map(|state| state.dividend_policy_raw_u8 == 0),
|
||||
finance_neighborhood_candidates: save_slice
|
||||
.world_finance_neighborhood_state
|
||||
.as_ref()
|
||||
|
|
@ -5979,6 +6011,14 @@ mod tests {
|
|||
absolute_counter_raw_hex: "0x00000003".to_string(),
|
||||
absolute_counter_mirror_raw_u32: 4,
|
||||
absolute_counter_mirror_raw_hex: "0x00000004".to_string(),
|
||||
stock_policy_raw_u8: 0,
|
||||
stock_policy_raw_hex: "0x00".to_string(),
|
||||
bond_policy_raw_u8: 1,
|
||||
bond_policy_raw_hex: "0x01".to_string(),
|
||||
bankruptcy_policy_raw_u8: 0,
|
||||
bankruptcy_policy_raw_hex: "0x00".to_string(),
|
||||
dividend_policy_raw_u8: 1,
|
||||
dividend_policy_raw_hex: "0x01".to_string(),
|
||||
labels: vec![
|
||||
"current_calendar_tuple_word".to_string(),
|
||||
"current_calendar_tuple_word_2".to_string(),
|
||||
|
|
@ -6263,6 +6303,35 @@ mod tests {
|
|||
import.state.world_restore.issue_37_multiplier_raw_u32,
|
||||
Some(0x3d75c28f)
|
||||
);
|
||||
assert_eq!(
|
||||
import
|
||||
.state
|
||||
.world_restore
|
||||
.stock_issue_and_buyback_policy_raw_u8,
|
||||
Some(0)
|
||||
);
|
||||
assert_eq!(
|
||||
import
|
||||
.state
|
||||
.world_restore
|
||||
.bond_issue_and_repayment_policy_raw_u8,
|
||||
Some(1)
|
||||
);
|
||||
assert_eq!(import.state.world_restore.bankruptcy_policy_raw_u8, Some(0));
|
||||
assert_eq!(import.state.world_restore.dividend_policy_raw_u8, Some(1));
|
||||
assert_eq!(
|
||||
import.state.world_restore.stock_issue_and_buyback_allowed,
|
||||
Some(true)
|
||||
);
|
||||
assert_eq!(
|
||||
import.state.world_restore.bond_issue_and_repayment_allowed,
|
||||
Some(false)
|
||||
);
|
||||
assert_eq!(import.state.world_restore.bankruptcy_allowed, Some(true));
|
||||
assert_eq!(
|
||||
import.state.world_restore.dividend_adjustment_allowed,
|
||||
Some(false)
|
||||
);
|
||||
assert_eq!(
|
||||
import
|
||||
.state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue