public static void AddDefaultShrineDrops() { var t1 = ItemDropAPI.GetDefaultDropList(ItemTier.Tier1); var t2 = ItemDropAPI.GetDefaultDropList(ItemTier.Tier2); var t3 = ItemDropAPI.GetDefaultDropList(ItemTier.Tier3); var eq = ItemDropAPI.GetDefaultEquipmentDropList(); var shrineSelections = new[] { new List <ItemIndex> { ItemIndex.None }.ToSelection(ItemDropAPI.DefaultShrineFailureWeight), t1.ToSelection(ItemDropAPI.DefaultShrineTier1Weight), t2.ToSelection(ItemDropAPI.DefaultShrineTier2Weight), t3.ToSelection(ItemDropAPI.DefaultShrineTier3Weight), eq.ToSelection(ItemDropAPI.DefaultShrineEquipmentWeight) }; foreach (var sel in shrineSelections) { sel.IsDefaults = true; } RemoveDefaultDrops(ItemDropLocation.Shrine); ItemDropAPI.AddDrops(ItemDropLocation.Shrine, shrineSelections); }
public static void AddEquipmentChestDefaultDrops() { var eq = ItemDropAPI.GetDefaultEquipmentDropList(); var equipmentSelections = eq.ToSelection(); equipmentSelections.IsDefaults = true; RemoveDefaultDrops(ItemDropLocation.EquipmentChest); ItemDropAPI.AddDrops(ItemDropLocation.EquipmentChest, eq.ToSelection()); }
public static void AddDefaultShrineDrops() { var t1 = ItemDropAPI.GetDefaultDropList(ItemTier.Tier1); var t2 = ItemDropAPI.GetDefaultDropList(ItemTier.Tier2); var t3 = ItemDropAPI.GetDefaultDropList(ItemTier.Tier3); var eq = ItemDropAPI.GetDefaultEquipmentDropList(); var shrineSelections = new List <PickupSelection> { new List <ItemIndex> { ItemIndex.None }.ToSelection(ItemDropAPI.DefaultShrineFailureWeight), t1.ToSelection(ItemDropAPI.DefaultShrineTier1Weight), t2.ToSelection(ItemDropAPI.DefaultShrineTier2Weight), t3.ToSelection(ItemDropAPI.DefaultShrineTier3Weight), eq.ToSelection(ItemDropAPI.DefaultShrineEquipmentWeight) }; ItemDropAPI.AddDropInformation(ItemDropLocation.Shrine, shrineSelections); }
public static void AddEquipmentChestDefaultDrops() { var eq = ItemDropAPI.GetDefaultEquipmentDropList(); ItemDropAPI.AddDropInformation(ItemDropLocation.EquipmentChest, eq.ToSelection()); }