展前冒死重构

This commit is contained in:
FloatGaming
2026-07-24 04:43:13 +08:00
parent d09597472b
commit 4eb70b0ac9
61 changed files with 74951 additions and 328 deletions
+20
View File
@@ -123,6 +123,26 @@ public class EnemyData_SO : ScriptableObject
return availableSkills[primarySkillIndex];
}
public SkillGroup GetSkillGroupByID(int groupId)
{
if (skillGroups == null || skillGroups.Length == 0)
return null;
for (int i = 0; i < skillGroups.Length; i++)
{
SkillGroup group = skillGroups[i];
if (group != null && group.skillGroupID == groupId)
return group;
}
return null;
}
public int[] GetEffectiveEquippedSkillGroupIDs()
{
return equippedSkillGroupIDs ?? System.Array.Empty<int>();
}
// New: groups of skills. Each group contains a numeric skillGroupID and a variable-length list of SkillDefinitions.
[Tooltip("Skill groups defined on this enemy. Each SkillGroup has a numeric skillGroupID which can be equipped into slots to allow activation of the entire group via that ID.")]
public SkillGroup[] skillGroups = new SkillGroup[0];