Ejemplo n.º 1
0
 public int GetFreeSlots()
 {
     return((Head?.GetEmptySlotsCount() ?? 0) +
            (Torso?.GetEmptySlotsCount() ?? 0) +
            (Arm?.GetEmptySlotsCount() ?? 0) +
            (Waist?.GetEmptySlotsCount() ?? 0) +
            (Leg?.GetEmptySlotsCount() ?? 0) +
            (_WeaponSlots?.Count(z => z.Decoration == null) ?? 0) +
            (Charm?.GetEmptySlotsCount() ?? 0));
 }