resistances: .stun 30% .poison 35% .bleed 35% .disease 50% .move 35% .debuff 60% .death_blow 67% .trap 25%

crit: .effects "Xi On Crit" 

weapon: .name "Xi_weapon_0" .atk 0% .dmg 6 9 .crit 4% .spd 5
weapon: .name "Xi_weapon_1" .atk 0% .dmg 7 10 .crit 5% .spd 5 .upgradeRequirementCode 0
weapon: .name "Xi_weapon_2" .atk 0% .dmg 8 12 .crit 6% .spd 6 .upgradeRequirementCode 1
weapon: .name "Xi_weapon_3" .atk 0% .dmg 8 13 .crit 7% .spd 6 .upgradeRequirementCode 2
weapon: .name "Xi_weapon_4" .atk 0% .dmg 9 15 .crit 8% .spd 7 .upgradeRequirementCode 3
armour: .name "Xi_armour_0" .def 10% .prot 0 .hp 20 .spd 0
armour: .name "Xi_armour_1" .def 15% .prot 0 .hp 24 .spd 0 .upgradeRequirementCode 0
armour: .name "Xi_armour_2" .def 20% .prot 0 .hp 28 .spd 0 .upgradeRequirementCode 1
armour: .name "Xi_armour_3" .def 30% .prot 0 .hp 32 .spd 0 .upgradeRequirementCode 2
armour: .name "Xi_armour_4" .def 35% .prot 0 .hp 36 .spd 0 .upgradeRequirementCode 3

//SK1
combat_skill: .id "Xi_Skill_1" .level 0 .type "ranged" .atk 95% .dmg 0% .crit 4% .launch 34 .target 123 .is_crit_valid true .can_be_riposted true .effect "Xi BFA1" "Xi HS1" "Xi BFA2" .generation_guaranteed true
combat_skill: .id "Xi_Skill_1" .level 0 .effect "SK1_Xi_tooltip1"

combat_skill: .id "Xi_Skill_1" .level 1 .type "ranged" .atk 100% .dmg 0% .crit 4% .launch 34 .target 123 .is_crit_valid true .can_be_riposted true .effect "Xi BFA1" "Xi HS2" "Xi BFA2" .generation_guaranteed true
combat_skill: .id "Xi_Skill_1" .level 1 .effect "SK1_Xi_tooltip1_1"

combat_skill: .id "Xi_Skill_1" .level 2 .type "ranged" .atk 105% .dmg 0% .crit 4% .launch 34 .target 123 .is_crit_valid true .can_be_riposted true .effect "Xi BFA1" "Xi HS3" "Xi BFA2" .generation_guaranteed true
combat_skill: .id "Xi_Skill_1" .level 2 .effect "SK1_Xi_tooltip1_2"

combat_skill: .id "Xi_Skill_1" .level 3 .type "ranged" .atk 110% .dmg 0% .crit 4% .launch 34 .target 123 .is_crit_valid true .can_be_riposted true .effect "Xi BFA1" "Xi HS4" "Xi BFA2" .generation_guaranteed true
combat_skill: .id "Xi_Skill_1" .level 3 .effect "SK1_Xi_tooltip1_3"

combat_skill: .id "Xi_Skill_1" .level 4 .type "ranged" .atk 115% .dmg 0% .crit 4% .launch 34 .target 123 .is_crit_valid true .can_be_riposted true .effect "Xi BFA1" "Xi HS5" "Xi BFA2" .generation_guaranteed true
combat_skill: .id "Xi_Skill_1" .level 4 .effect "SK1_Xi_tooltip1_4"

//SK2
combat_skill: .id "Xi_Skill_2" .level 0 .type "ranged" .launch 34 .target ~12 .atk 85% .dmg -40% .crit 1% .is_crit_valid true .can_be_riposted false .effect "Xi SK2 DF1" "Xi SK2 DAM1" "Xi SK2 HD1" "Xi SK2 CRIP" "SK2_Xi_tooltip1" "SK2_Xi_tooltip3" "SK2_Xi_tooltip2" 
combat_skill: .id "Xi_Skill_2" .level 1 .type "ranged" .launch 34 .target ~12 .atk 90% .dmg -40% .crit 2% .is_crit_valid true .can_be_riposted false .effect "Xi SK2 DF2" "Xi SK2 DAM1" "Xi SK2 HD2" "Xi SK2 CRIP" "SK2_Xi_tooltip1_1" "SK2_Xi_tooltip3" "SK2_Xi_tooltip2" 
combat_skill: .id "Xi_Skill_2" .level 2 .type "ranged" .launch 34 .target ~12 .atk 95% .dmg -40% .crit 3% .is_crit_valid true .can_be_riposted false .effect "Xi SK2 DF3" "Xi SK2 DAM1" "Xi SK2 HD3" "Xi SK2 CRIP" "SK2_Xi_tooltip1_2" "SK2_Xi_tooltip3" "SK2_Xi_tooltip2"
combat_skill: .id "Xi_Skill_2" .level 3 .type "ranged" .launch 34 .target ~12 .atk 100% .dmg -40% .crit 4% .is_crit_valid true .can_be_riposted false .effect "Xi SK2 DF4" "Xi SK2 DAM1" "Xi SK2 HD4" "Xi SK2 CRIP" "SK2_Xi_tooltip1_3" "SK2_Xi_tooltip3" "SK2_Xi_tooltip2"
combat_skill: .id "Xi_Skill_2" .level 4 .type "ranged" .launch 34 .target ~12 .atk 105% .dmg -40% .crit 5% .is_crit_valid true .can_be_riposted false .effect "Xi SK2 DF5" "Xi SK2 DAM1" "Xi SK2 HD5" "Xi SK2 CRIP" "SK2_Xi_tooltip1_4" "SK2_Xi_tooltip3" "SK2_Xi_tooltip2"

//SK3
combat_skill: .id "Xi_Skill_3" .level 0 .type "ranged" .launch 34 .target ~34 .atk 85% .dmg -40% .crit 1% .is_crit_valid true .can_be_riposted false .effect "Xi SK3 DF1" "Xi SK3 DAM1" "Xi SK3 DAM2" "Xi SK3 HD1" "SK3_Xi_tooltip2" "SK3_Xi_tooltip1" "SK3_Xi_tooltip1_1"
combat_skill: .id "Xi_Skill_3" .level 1 .type "ranged" .launch 34 .target ~34 .atk 90% .dmg -40% .crit 2% .is_crit_valid true .can_be_riposted false .effect "Xi SK3 DF2" "Xi SK3 DAM1" "Xi SK3 DAM2" "Xi SK3 HD2" "SK3_Xi_tooltip2_1" "SK3_Xi_tooltip1" "SK3_Xi_tooltip1_1"
combat_skill: .id "Xi_Skill_3" .level 2 .type "ranged" .launch 34 .target ~34 .atk 95% .dmg -40% .crit 3% .is_crit_valid true .can_be_riposted false .effect "Xi SK3 DF3" "Xi SK3 DAM1" "Xi SK3 DAM2" "Xi SK3 HD3" "SK3_Xi_tooltip2_2" "SK3_Xi_tooltip1" "SK3_Xi_tooltip1_1"
combat_skill: .id "Xi_Skill_3" .level 3 .type "ranged" .launch 34 .target ~34 .atk 100% .dmg -40% .crit 4% .is_crit_valid true .can_be_riposted false .effect "Xi SK3 DF4" "Xi SK3 DAM1" "Xi SK3 DAM2" "Xi SK3 HD4" "SK3_Xi_tooltip2_3" "SK3_Xi_tooltip1" "SK3_Xi_tooltip1_1"
combat_skill: .id "Xi_Skill_3" .level 4 .type "ranged" .launch 34 .target ~34 .atk 105% .dmg -40% .crit 5% .is_crit_valid true .can_be_riposted false .effect "Xi SK3 DF5" "Xi SK3 DAM1" "Xi SK3 DAM2" "Xi SK3 HD5" "SK3_Xi_tooltip2_4" "SK3_Xi_tooltip1" "SK3_Xi_tooltip1_1"


//SK4
combat_skill: .id "Xi_Skill_4" .level 0 .type "ranged" .atk 0% .dmg 0% .crit 0% .launch 123 .target @1234  .is_crit_valid true .self_target_valid true .effect "Xi SK4 push A" "Xi SK4 cureA" "Xi SK4 stealthA" .nil true .condensed_tooltip_stats true
combat_skill: .id "Xi_Skill_4" .level 0 .heal 1 2 .effect "SK4_Xi_tooltip1"  "SK4_Xi_tooltip2"  "SK4_Xi_tooltip3"

combat_skill: .id "Xi_Skill_4" .level 1 .type "ranged" .atk 0% .dmg 0% .crit 0% .launch 123 .target @1234  .is_crit_valid true .self_target_valid true .effect "Xi SK4 push A" "Xi SK4 cureA" "Xi SK4 stealthA" .nil true .condensed_tooltip_stats true
combat_skill: .id "Xi_Skill_4" .level 1 .heal 1 3 .effect "SK4_Xi_tooltip1"  "SK4_Xi_tooltip2"  "SK4_Xi_tooltip3"

combat_skill: .id "Xi_Skill_4" .level 2 .type "ranged" .atk 0% .dmg 0% .crit 0% .launch 123 .target @1234  .is_crit_valid true .self_target_valid true .effect "Xi SK4 push A" "Xi SK4 cureA" "Xi SK4 stealthA" .nil true .condensed_tooltip_stats true
combat_skill: .id "Xi_Skill_4" .level 2 .heal 2 3 .effect "SK4_Xi_tooltip1"  "SK4_Xi_tooltip2"  "SK4_Xi_tooltip3"

combat_skill: .id "Xi_Skill_4" .level 3 .type "ranged" .atk 0% .dmg 0% .crit 0% .launch 123 .target @1234  .is_crit_valid true .self_target_valid true .effect "Xi SK4 push A" "Xi SK4 cureA" "Xi SK4 stealthA" .nil true .condensed_tooltip_stats true
combat_skill: .id "Xi_Skill_4" .level 3 .heal 2 4 .effect "SK4_Xi_tooltip1"  "SK4_Xi_tooltip2"  "SK4_Xi_tooltip3"

combat_skill: .id "Xi_Skill_4" .level 4 .type "ranged" .atk 0% .dmg 0% .crit 0% .launch 123 .target @1234  .is_crit_valid true .self_target_valid true .effect "Xi SK4 push A" "Xi SK4 cureA" "Xi SK4 stealthA" .nil true .condensed_tooltip_stats true
combat_skill: .id "Xi_Skill_4" .level 4 .heal 3 4 .effect "SK4_Xi_tooltip1"  "SK4_Xi_tooltip2"  "SK4_Xi_tooltip3"

//SK5
combat_skill: .id "Xi_Skill_5" .level 0 .type "ranged" .atk 90% .dmg -75% .crit 5% .launch 34 .target 123 .is_crit_valid true .effect "Xi SK5 CUREdf1" "Xi SK5 stun1" "Xi SK5 stundf1" "Xi SK5 CUREdf2""SK5_Xi_tooltip1" "Xi SK5 stundf2"
combat_skill: .id "Xi_Skill_5" .level 1 .type "ranged" .atk 95% .dmg -75% .crit 6% .launch 34 .target 123 .is_crit_valid true .effect "Xi SK5 CUREdf1" "Xi SK5 stun2" "Xi SK5 stundf1" "Xi SK5 CUREdf2" "SK5_Xi_tooltip1_1" "Xi SK5 stundf2"
combat_skill: .id "Xi_Skill_5" .level 2 .type "ranged" .atk 100% .dmg -75% .crit 7% .launch 34 .target 123 .is_crit_valid true .effect "Xi SK5 CUREdf1" "Xi SK5 stun3" "Xi SK5 stundf1" "Xi SK5 CUREdf2" "SK5_Xi_tooltip1_2" "Xi SK5 stundf2"
combat_skill: .id "Xi_Skill_5" .level 3 .type "ranged" .atk 105% .dmg -75% .crit 8% .launch 34 .target 123 .is_crit_valid true .effect "Xi SK5 CUREdf1" "Xi SK5 stun4" "Xi SK5 stundf1" "Xi SK5 CUREdf2" "SK5_Xi_tooltip1_3" "Xi SK5 stundf2"
combat_skill: .id "Xi_Skill_5" .level 4 .type "ranged" .atk 110% .dmg -75% .crit 9% .launch 34 .target 123 .is_crit_valid true .effect "Xi SK5 CUREdf1" "Xi SK5 stun5" "Xi SK5 stundf1" "Xi SK5 CUREdf2" "SK5_Xi_tooltip1_4" "Xi SK5 stundf2"

//SK6 小自在
combat_skill: .id "Xi_Skill_6" .level 0 .launch 234 .target .per_battle_limit 1 .effect "Xi SK6 blocksA" "Xi Sk6 BFA 1" "Xi Sk6 BFC 1"
//combat_skill: .id "Xi_Skill_6" .level 0 .effect "SK6_Xi_tooltip1"

combat_skill: .id "Xi_Skill_6" .level 1 .launch 234 .target .per_battle_limit 1 .effect "Xi SK6 blocksA" "Xi Sk6 BFA 2" "Xi Sk6 BFC 2"
//combat_skill: .id "Xi_Skill_6" .level 1 .effect "SK6_Xi_tooltip1"

combat_skill: .id "Xi_Skill_6" .level 2 .launch 234 .target .per_battle_limit 1 .effect "Xi SK6 blocksA" "Xi Sk6 BFA 3" "Xi Sk6 BFC 3"
//combat_skill: .id "Xi_Skill_6" .level 2 .effect "SK6_Xi_tooltip1"

combat_skill: .id "Xi_Skill_6" .level 3 .launch 234 .target .per_battle_limit 1 .effect "Xi SK6 blocksA" "Xi Sk6 BFA 4" "Xi Sk6 BFC 4"
//combat_skill: .id "Xi_Skill_6" .level 3 .effect "SK6_Xi_tooltip1"

combat_skill: .id "Xi_Skill_6" .level 4 .launch 234 .target .per_battle_limit 1 .effect "Xi SK6 blocksA" "Xi Sk6 BFA 5" "Xi Sk6 BFC 5"
//combat_skill: .id "Xi_Skill_6" .level 4 .effect "SK6_Xi_tooltip1"

//SK7
combat_skill: .id "Xi_Skill_7" .level 0 .launch 123 .target @~1234 .is_crit_valid true .effect "Xisk7 HS1" "Xi SK7 Buff 1" "Xi Sk7 BHS 1" "Xi Daze CD" "Xi Dis Daze"
combat_skill: .id "Xi_Skill_7" .level 0 .effect "SK7_Xi_tooltip1_1" "SK7_Xi_tooltip1" "SK7_Xi_tooltip2" "SK7_Xi_tooltip3"

combat_skill: .id "Xi_Skill_7" .level 1 .launch 123 .target @~1234 .is_crit_valid true .effect "Xisk7 HS2" "Xi SK7 Buff 1" "Xi Sk7 BHS 1" "Xi Daze CD" "Xi Dis Daze" 
combat_skill: .id "Xi_Skill_7" .level 1 .effect "SK7_Xi_tooltip1_2" "SK7_Xi_tooltip1" "SK7_Xi_tooltip2" "SK7_Xi_tooltip3"

combat_skill: .id "Xi_Skill_7" .level 2 .launch 123 .target @~1234 .is_crit_valid true .effect "Xisk7 HS3" "Xi SK7 Buff 1" "Xi Sk7 BHS 1" "Xi Daze CD" "Xi Dis Daze"
combat_skill: .id "Xi_Skill_7" .level 2 .effect "SK7_Xi_tooltip1_3" "SK7_Xi_tooltip1" "SK7_Xi_tooltip2" "SK7_Xi_tooltip3"

combat_skill: .id "Xi_Skill_7" .level 3 .launch 123 .target @~1234 .is_crit_valid true .effect "Xisk7 HS4" "Xi SK7 Buff 1" "Xi Sk7 BHS 1" "Xi Daze CD" "Xi Dis Daze" 
combat_skill: .id "Xi_Skill_7" .level 3 .effect "SK7_Xi_tooltip1_4" "SK7_Xi_tooltip1" "SK7_Xi_tooltip2" "SK7_Xi_tooltip3"

combat_skill: .id "Xi_Skill_7" .level 4 .launch 123 .target @~1234 .is_crit_valid true .effect "Xisk7 HS5" "Xi SK7 Buff 2" "Xi Sk7 BHS 2" "Xi Daze CD" "Xi Dis Daze"
combat_skill: .id "Xi_Skill_7" .level 4 .effect "SK7_Xi_tooltip4_1" "SK7_Xi_tooltip4" "SK7_Xi_tooltip2" "SK7_Xi_tooltip3"
 
//Rip
//riposte_skill: .id "riposte1" .level 0 .type "melee" .atk 90% .dmg 0% .crit 0% .launch 1234 .target 1234 .is_crit_valid True .effect

combat_move_skill: .id "move" .level 0 .type "move" .move 1 1 .launch 4321 .effect 

tag: .id "heavy"
tag: .id "non-religious"
tag: .id "outsiders_bonfire"

incompatible_party_member: .id Xi_limit .hero_tag Xi

deaths_door: .buffs deathsdoorACCDebuff deathsdoorDMGLowDebuff deathsdoorDMGHighDebuff deathsdoorSPDDebuff deathsdoorSRDebuff .recovery_buffs mortalityACCDebuff mortalityDMGLowDebuff mortalityDMGHighDebuff mortalitySPDDebuff mortalitySRDebuff .recovery_heart_attack_buffs heartattackACCDebuff heartattackDMGLowDebuff heartattackDMGHighDebuff heartattackSPDDebuff heartattackSRDebuff 

overstressed_modifier: .override_trait_type_ids "XIvirtue" .override_trait_type_chances 0.3
overstressed_modifier: .override_trait_type_ids "XIaffliction" .override_trait_type_chances 0.7

controlled: .target_rank 34
id_index: .index 10
skill_selection: .can_select_combat_skills true .number_of_selected_combat_skills_max 4
generation: .is_generation_enabled true .number_of_positive_quirks_min 1 .number_of_positive_quirks_max 2 .number_of_negative_quirks_min 1 .number_of_negative_quirks_max 3 .number_of_class_specific_camping_skills 2 .number_of_random_combat_skills 7 .number_of_cards_in_deck 4 .card_chance 1.0