Updated _00E_ArmorSetScript

This commit is contained in:
Eddoursul 2024-02-09 21:14:35 +01:00
parent 030a7b3050
commit b7fb7ab826
2 changed files with 21 additions and 13 deletions

Binary file not shown.

View File

@ -53,7 +53,9 @@ Function UpdateSpells()
setPieces = __Config_SetList.ToArray() setPieces = __Config_SetList.ToArray()
else else
int nPieces = __Config_SetList.GetSize() int nPieces = __Config_SetList.GetSize()
if nPieces == 4 if nPieces == 3
setPieces = new Form[3]
elseif nPieces == 4
setPieces = new Form[4] setPieces = new Form[4]
elseif nPieces == 5 elseif nPieces == 5
setPieces = new Form[5] setPieces = new Form[5]
@ -87,7 +89,10 @@ Function UpdateSpells()
bonusSpells = __Config_SetBonusesList.ToArray() bonusSpells = __Config_SetBonusesList.ToArray()
else else
int nSpells = __Config_SetBonusesList.GetSize() int nSpells = __Config_SetBonusesList.GetSize()
if nSpells == 4
if nSpells == 3
bonusSpells = new Form[3]
elseif nSpells == 4
bonusSpells = new Form[4] bonusSpells = new Form[4]
elseif nSpells == 5 elseif nSpells == 5
bonusSpells = new Form[5] bonusSpells = new Form[5]
@ -95,7 +100,7 @@ Function UpdateSpells()
bonusSpells = new Form[6] bonusSpells = new Form[6]
endif endif
iIndex = 0 iIndex = 0
while iIndex < nSpells while iIndex < bonusSpells.Length
bonusSpells[iIndex] = __Config_SetBonusesList.GetAt(iIndex) bonusSpells[iIndex] = __Config_SetBonusesList.GetAt(iIndex)
iIndex += 1 iIndex += 1
endwhile endwhile
@ -104,6 +109,8 @@ Function UpdateSpells()
iIndex = 0 iIndex = 0
While iIndex < bonusSpells.Length While iIndex < bonusSpells.Length
Spell bonusSpell = bonusSpells[iIndex] as Spell Spell bonusSpell = bonusSpells[iIndex] as Spell
if bonusSpell
If iIndex < nBonusSpells If iIndex < nBonusSpells
If PlayerREF.HasSpell(bonusSpell) == False If PlayerREF.HasSpell(bonusSpell) == False
PlayerREF.AddSpell(bonusSpell) PlayerREF.AddSpell(bonusSpell)
@ -115,6 +122,7 @@ Function UpdateSpells()
bSpellRemoved = True bSpellRemoved = True
EndIf EndIf
EndIf EndIf
endif
iIndex += 1 iIndex += 1
EndWhile EndWhile