From fb4ac0b5fb033581d9b544faee44a7860bb526f6 Mon Sep 17 00:00:00 2001 From: newfrenchy83 <31768074+newfrenchy83@users.noreply.github.com> Date: Sun, 31 Dec 2023 21:11:05 +0100 Subject: [PATCH] fix leveling for Kaleh and Nym in Utbs (#8152) --- .../units/quenoth/Youth.cfg | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/data/campaigns/Under_the_Burning_Suns/units/quenoth/Youth.cfg b/data/campaigns/Under_the_Burning_Suns/units/quenoth/Youth.cfg index 083dde70b20..95347e20861 100644 --- a/data/campaigns/Under_the_Burning_Suns/units/quenoth/Youth.cfg +++ b/data/campaigns/Under_the_Burning_Suns/units/quenoth/Youth.cfg @@ -44,6 +44,38 @@ _"Nym is Kaleh’s childhood friend, a young, rebellious lady with quick wits an increase=8 #endif [/effect] + [effect] + [filter] + level=1 +#ifdef EASY + formula="max_experience > 24" +#endif +#ifdef NORMAL + formula="max_experience > 28" +#endif +#ifdef HARD + formula="max_experience > 33" +#endif + [/filter] + apply_to=level + set=2 + [/effect] + [effect] + [filter] + level=2 +#ifdef EASY + formula="max_experience > 41" +#endif +#ifdef NORMAL + formula="max_experience > 46" +#endif +#ifdef HARD + formula="max_experience > 54" +#endif + [/filter] + apply_to=level + set=3 + [/effect] #enddef #define KALEH_ADVANCEMENTS @@ -862,6 +894,11 @@ _"Nym is Kaleh’s childhood friend, a young, rebellious lady with quick wits an movement_type=quenoth_foot movement=6 hitpoints=32 + # The evolution of this unit is carried out only with AMLAs so that it takes two amlas + # to reach level two then two more for level 3. + # As the unit variables do not include the number of amla achieved, + # the maximum experience is the only one that can be directly used in advancement without resorting to an external lua type function. + # Do not modify this value without also modifying the max_experience checks in the custom AMLAs experience=16 level=1 profile=portraits/kaleh.webp