feat: cross-mod support for Plantera rework
This commit is contained in:
parent
3f05870f05
commit
97ab540e9e
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,6 +83,15 @@ namespace Continuity.Content
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue