public void BuildDropTable() { if (ItemDropManager.DefaultDrops) { // Setup default item lists DefaultItemDrops.AddDefaults(); } this.availableTier1DropList.Clear(); this.availableTier1DropList.AddRange(ItemDropManager.GetDefaultDropList(ItemTier.Tier1).Select(x => new PickupIndex(x)).ToList()); this.availableTier2DropList.Clear(); this.availableTier2DropList.AddRange(ItemDropManager.GetDefaultDropList(ItemTier.Tier2).Select(x => new PickupIndex(x)).ToList()); this.availableTier3DropList.Clear(); this.availableTier3DropList.AddRange(ItemDropManager.GetDefaultDropList(ItemTier.Tier3).Select(x => new PickupIndex(x)).ToList()); this.availableEquipmentDropList.Clear(); this.availableEquipmentDropList.AddRange(ItemDropManager.GetDefaultEquipmentDropList().Select(x => new PickupIndex(x)).ToList()); this.availableLunarDropList.Clear(); this.availableLunarDropList.AddRange(ItemDropManager.GetDefaultLunarDropList().Select(x => new PickupIndex(x)).ToList()); this.smallChestDropTierSelector.Clear(); this.smallChestDropTierSelector.AddChoice(this.availableTier1DropList, 0.8f); this.smallChestDropTierSelector.AddChoice(this.availableTier2DropList, 0.2f); this.smallChestDropTierSelector.AddChoice(this.availableTier3DropList, 0.01f); this.mediumChestDropTierSelector.Clear(); this.mediumChestDropTierSelector.AddChoice(this.availableTier2DropList, 0.8f); this.mediumChestDropTierSelector.AddChoice(this.availableTier3DropList, 0.2f); this.largeChestDropTierSelector.Clear(); }
public static void AddDefaultShrineDrops() { var t1 = ItemDropManager.GetDefaultDropList(ItemTier.Tier1); var t2 = ItemDropManager.GetDefaultDropList(ItemTier.Tier2); var t3 = ItemDropManager.GetDefaultDropList(ItemTier.Tier3); var eq = ItemDropManager.GetDefaultEquipmentDropList(); var shrineSelections = new List <PickupSelection> { new List <ItemIndex> { ItemIndex.None }.ToSelection(ItemDropManager.DefaultShrineFailureWeight), t1.ToSelection(ItemDropManager.DefaultShrineTier1Weight), t2.ToSelection(ItemDropManager.DefaultShrineTier2Weight), t3.ToSelection(ItemDropManager.DefaultShrineTier3Weight), eq.ToSelection(ItemDropManager.DefaultShrineEquipmentWeight) }; ItemDropManager.AddDropInformation(ItemDropLocation.Shrine, shrineSelections); }
public static void AddEquipmentChestDefaultDrops() { var eq = ItemDropManager.GetDefaultEquipmentDropList(); ItemDropManager.AddDropInformation(ItemDropLocation.EquipmentChest, eq.ToSelection()); }