Skip to content

Commit

Permalink
Fix #82
Browse files Browse the repository at this point in the history
  • Loading branch information
AldebaraanMKII committed May 20, 2019
1 parent c022372 commit ec24bdc
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Module/module_game_menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -6745,6 +6745,38 @@
]
),
# autoloot


########## NEW v3.0 - player can customize troops is he has a fief
("ee_new_1",
[
(eq, "$g_player_know_culture_player", 1),
(faction_slot_eq, "$players_kingdom", slot_faction_state, sfs_active),
(assign, ":num_fiefs", 0),
(try_for_range, ":cur_center", centers_begin, centers_end),
(party_get_slot, ":town_lord", ":cur_center", slot_town_lord),
(eq, ":town_lord", "trp_player"),
(val_add, ":num_fiefs", 1),
(try_end),
(gt, ":num_fiefs", 0),
],
"Customize your kingdom's troops.",
[
(try_begin),
(gt, "$cstm_troops_begin", 0),
(assign, "$cstm_selected_troop", -1),
(start_presentation, "prsnt_cstm_view_custom_troop_tree"),
(else_try),
(troop_set_name, cstm_troop_tree_prefix, "@Custom"),
(assign, "$cstm_num_tiers", 5),
(assign, "$cstm_troops_begin", "trp_cstm_custom_troop_3_tiers_0_0_0"),
(assign, "$cstm_troops_end", "trp_cstm_custom_troop_3_tiers_1_0_0"),
(assign, "$cstm_presentation_troop", "trp_cstm_presentation_troop_0"),
(start_presentation, "prsnt_cstm_view_custom_troop_tree"),
(try_end),
]
),
##################################################

("camp_action",[], "Take an action.",
[(jump_to_menu, "mnu_camp_action"),
Expand Down

1 comment on commit ec24bdc

@AldebaraanMKII
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*#81

Please sign in to comment.