try_begin),
(this_or_next|party_slot_eq, "$g_enemy_party", slot_party_type, spt_kingdom_caravan),
(this_or_next|party_slot_eq, "$g_enemy_party", slot_party_type, spt_town),
(this_or_next|party_slot_eq, "$g_enemy_party", slot_party_type, spt_castle),
(this_or_next|party_slot_eq, "$g_enemy_party", slot_party_type, spt_bandit_lair),
(party_slot_eq, "$g_enemy_party", slot_party_type, spt_village_farmer),
(store_mul, ":plunder_amount", player_loot_share, 30),
(val_mul, ":plunder_amount", "$g_strength_contribution_of_player"),
(val_div, ":plunder_amount", 100),
(val_div, ":plunder_amount", ":num_player_party_shares"),
(try_begin),
(party_slot_eq, "$g_enemy_party", slot_party_type, spt_kingdom_caravan),
(reset_item_probabilities, 100),
(assign, ":range_min", trade_goods_begin),
(assign, ":range_max", trade_goods_end),
(else_try),
(party_slot_eq, "$g_enemy_party", slot_party_type, spt_town),
(reset_item_probabilities, 100),
(assign, ":range_min", trade_goods_begin),
(assign, ":range_max", trade_goods_end),
(else_try),
(party_slot_eq, "$g_enemy_party", slot_party_type, spt_castle),
(reset_item_probabilities, 100),
(assign, ":range_min", trade_goods_begin),
(assign, ":range_max", trade_goods_end),
(else_try),
(party_slot_eq, "$g_enemy_party", slot_party_type, spt_bandit_lair),
(val_div, ":plunder_amount", 2),