feat: cross-mod support for Plantera rework
This commit is contained in:
parent
3f05870f05
commit
97ab540e9e
3 changed files with 18 additions and 0 deletions
|
@ -42,6 +42,14 @@ namespace Continuity.Content
|
|||
foreach (var rule in itemLoot.Get())
|
||||
{
|
||||
itemLoot.RemoveWhere(rule => rule is OneFromRulesRule);
|
||||
if (ModLoader.HasMod("CalamityMod"))
|
||||
{
|
||||
itemLoot.RemoveWhere(rule => rule is CalamityMod.DropHelper.AllOptionsAtOnceWithPityDropRule);
|
||||
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod) && calamityMod.TryFind<ModItem>("BlossomFlux", out ModItem BlossomFlux)) {
|
||||
itemLoot.RemoveWhere(rule => rule is CommonDrop drop
|
||||
&& drop.itemId == BlossomFlux.Type);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -82,7 +82,16 @@ namespace Continuity.Content
|
|||
recipe.AddIngredient(ItemID.Stinger, 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 2);
|
||||
recipe.AddIngredient(ItemID.Vine, 5);
|
||||
recipe.Register();
|
||||
|
||||
// Blossom Flux (Calamity)
|
||||
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod) && calamityMod.TryFind<ModItem>("BlossomFlux", out ModItem BlossomFlux)) {
|
||||
recipe = Recipe.Create(BlossomFlux.Type);
|
||||
recipe.AddIngredient(ItemID.ChlorophyteBar, 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 8);
|
||||
recipe.AddIngredient(ItemID.Vine, 4);
|
||||
recipe.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
displayName = Continuity
|
||||
author = The Continuity Team
|
||||
sortAfter = CalamityMod
|
||||
weakReferences = CalamityMod
|
||||
version = 0.1
|
||||
|
|
Reference in a new issue