Form[] Function GetWornArmors(Actor akTarget) Form[] kArmors = new Form[32] Int iIndex Int iSlotsChecked Int iThisSlot = 0x01 iSlotsChecked += 0x00100000 ; チェックを省くスロット iSlotsChecked += 0x00200000 iSlotsChecked += 0x80000000 while iThisSlot < 0x80000000 if Math.LogicalAnd(iSlotsChecked, iThisSlot) != iThisSlot Form kThisArmor = akTarget.GetWornForm(iThisSlot) if kThisArmor kArmors[iIndex] = kThisArmor iIndex += 1 iSlotsChecked += (kThisArmor as Armor).GetSlotMask() else iSlotsChecked += iThisSlot endif endif iThisSlot *= 2 endWhile return kArmors EndFunction