装备系统完结,修复并加入很多

This commit is contained in:
FloatGaming
2026-04-03 19:15:02 +08:00
parent 538085b64f
commit d9376833b6
378 changed files with 62464 additions and 16756 deletions
+2 -4
View File
@@ -57,8 +57,7 @@ public class idolSkillsHub : MonoBehaviour
currentHero.LoadEquippedSkillsFromLocal();
int currentTierNumber = GetCurrentTierNumber(currentHero);
AllyHero_SO.AllyLevelInfo currentLevelInfo = currentHero.GetEffectiveLevelForCurrentEXP();
int maxSkillSlots = currentLevelInfo != null ? Mathf.Max(0, currentLevelInfo.skill_slot_limited) : 0;
int maxSkillSlots = currentHero.GetEffectiveSkillSlotLimit();
for (int i = 0; i < currentHero.skillGroups.Length; i++)
{
@@ -164,8 +163,7 @@ public class idolSkillsHub : MonoBehaviour
return;
}
AllyHero_SO.AllyLevelInfo currentLevelInfo = currentHero.GetEffectiveLevelForCurrentEXP();
int maxSkillSlots = currentLevelInfo != null ? Mathf.Max(0, currentLevelInfo.skill_slot_limited) : 0;
int maxSkillSlots = currentHero.GetEffectiveSkillSlotLimit();
if (equipped.Count >= maxSkillSlots)
{
Rebuild();