fix leveling for Kaleh and Nym in Utbs (#8152)

This commit is contained in:
newfrenchy83 2023-12-31 21:11:05 +01:00 committed by GitHub
parent 61b2e8eb4f
commit fb4ac0b5fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,38 @@ _"Nym is Kalehs 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 Kalehs 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