改动与优化
This commit is contained in:
@@ -61,7 +61,7 @@ public class idolSkillsHub : MonoBehaviour
|
||||
currentHero.LoadEquippedSkillsFromLocal();
|
||||
|
||||
int currentTierNumber = GetCurrentTierNumber(currentHero);
|
||||
int maxSkillSlots = currentHero.GetEffectiveSkillSlotLimit();
|
||||
int maxSkillSlots = AllyHeroLevelRuntimeResolver.GetEffectiveSkillSlotLimit(currentHero);
|
||||
int equippedCount = GetEquippedCount();
|
||||
int visibleIndex = 0;
|
||||
|
||||
@@ -172,7 +172,7 @@ public class idolSkillsHub : MonoBehaviour
|
||||
return;
|
||||
}
|
||||
|
||||
int maxSkillSlots = currentHero.GetEffectiveSkillSlotLimit();
|
||||
int maxSkillSlots = AllyHeroLevelRuntimeResolver.GetEffectiveSkillSlotLimit(currentHero);
|
||||
if (equipped.Count >= maxSkillSlots)
|
||||
{
|
||||
Rebuild();
|
||||
@@ -273,7 +273,7 @@ public class idolSkillsHub : MonoBehaviour
|
||||
return 1;
|
||||
}
|
||||
|
||||
return Mathf.Clamp(hero.ally_growthUnlockedTierIndex + 1, 1, 4);
|
||||
return AllyHeroLevelRuntimeResolver.GetCurrentTierNumber(hero);
|
||||
}
|
||||
|
||||
private static string GetTierName(int tierNumber)
|
||||
@@ -322,6 +322,7 @@ public class idolSkillsHub : MonoBehaviour
|
||||
{
|
||||
item.SetActive(true);
|
||||
}
|
||||
UI_OrderedEntryAnimator.PlaySingle(item, index, 0.16f, 0.018f, -10f, 0.97f, true);
|
||||
}
|
||||
|
||||
return item;
|
||||
|
||||
Reference in New Issue
Block a user