Exemplo n.º 1
0
 public void TryPopulateSlot(Decoration decoration, SlotCombo slotCombo)
 {
     for (var i = 1; i <= slotCombo.Large + slotCombo.Medium + slotCombo.Small; i++)
     {
         if (Head?.PopulateSlot(decoration) == false)
         {
             if (Torso?.PopulateSlot(decoration) == false)
             {
                 if (Waist?.PopulateSlot(decoration) == false)
                 {
                     if (Arm?.PopulateSlot(decoration) == false)
                     {
                         if (Leg?.PopulateSlot(decoration) == false)
                         {
                             if (_WeaponSlots?.PopulateSlot(decoration) == false)
                             {
                                 if (Charm?.PopulateSlot(decoration) == false)
                                 {
                                     throw new System.Exception("Couldn't add decoration!");
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }