Removed all accidental double lcr definitions

This commit is contained in:
IbanPlay authored and Cameron Ewell committed 2022-08-04 22:56:55 -04:00
1 parent 2843b25c44
commit 2329daad4f
9 files changed
+38 -40

No files matched your search

+10 -8
View File
@@ -46,20 +46,22 @@ namespace CalamityMod.Items.Fishing.AstralCatches
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
{
var postAstrumAureus = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAstrumAureus);
var postAstrumDeus = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAstrumDeus);
//Materials
itemLoot.Add(ModContent.ItemType<Stardust>(), 1, 5, 10);
itemLoot.Add(ItemID.FallenStar, 1, 5, 10);
itemLoot.Add(ItemID.Meteorite, 5, 10, 20);
itemLoot.Add(ItemID.MeteoriteBar, 10, 1, 3);
itemLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<AureusCell>(), 5, 2, 5);
itemLoot.AddIf(() => DownedBossSystem.downedAstrumDeus, ModContent.ItemType<AstralOre>(), 5, 10, 20);
itemLoot.AddIf(() => DownedBossSystem.downedAstrumDeus, 10, 1, 3);
itemLoot.AddIf(() => DownedBossSystem.downedAstrumDeus, 4, 5, 10);
postAstrumAureus.Add(ModContent.ItemType<AureusCell>(), 5, 2, 5);
postAstrumDeus.Add(ModContent.ItemType<AstralOre>(), 5, 10, 20);
postAstrumDeus.Add(ModContent.ItemType<AstralBar>(), 10, 1, 3);
postAstrumDeus.Add(ModContent.ItemType<MeldBlob>(), 4, 5, 10);
//Weapons
var lcr = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAstrumAureus);
lcr.Add(new OneFromOptionsNotScaledWithLuckDropRule(10, 1,
postAstrumAureus.Add(new OneFromOptionsNotScaledWithLuckDropRule(10, 1,
ModContent.ItemType<StellarKnife>(),
ModContent.ItemType<AstralachneaStaff>(),
ModContent.ItemType<TitanArm>(),
@@ -78,8 +80,8 @@ namespace CalamityMod.Items.Fishing.AstralCatches
itemLoot.Add(ItemID.Firefly, 3, 1, 3);
//Potions
itemLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<AstralInjection>(), 10, 1, 3);
itemLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<GravityNormalizerPotion>(), 10, 1, 3);
postAstrumAureus.Add(ModContent.ItemType<AstralInjection>(), 10, 1, 3);
postAstrumAureus.Add(ModContent.ItemType<GravityNormalizerPotion>(), 10, 1, 3);
itemLoot.AddCratePotionRules();
//Money
+20 -13
View File
@@ -47,31 +47,38 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
{
//LCRs.
var tier1AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedSlimeGod || Main.hardMode);
var tier2AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCalamitas);
var scoriaAvailable = itemLoot.DefineConditionalDropSet(() => NPC.downedGolemBoss);
var tier1AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedEoCAcidRain);
var tier2AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAquaticScourgeAcidRain);
var tier3AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedPolterghast && DownedBossSystem.downedBoomerDuke);
//Materials
itemLoot.Add(ModContent.ItemType<SulphurousSand>(), 1, 5, 10);
itemLoot.Add(ModContent.ItemType<SulphurousSandstone>(), 1, 5, 10);
itemLoot.Add(ModContent.ItemType<HardenedSulphurousSandstone>(), 1, 5, 10);
itemLoot.Add(ModContent.ItemType<Acidwood>(), 1, 5, 10);
itemLoot.AddIf(() => DownedBossSystem.downedEoCAcidRain, ModContent.ItemType<SulphuricScale>(), 10, 1, 3);
itemLoot.AddIf(() => DownedBossSystem.downedAquaticScourgeAcidRain, ModContent.ItemType<CorrodedFossil>(), 10, 1, 3);
itemLoot.AddIf(() => DownedBossSystem.downedCalamitas, ModContent.ItemType<DepthCells>(), 5, 2, 5);
itemLoot.AddIf(() => DownedBossSystem.downedCalamitas, ModContent.ItemType<Lumenyl>(), 5, 2, 5);
itemLoot.AddIf(() => DownedBossSystem.downedCalamitas, ModContent.ItemType<PlantyMush>(), 5, 2, 5);
itemLoot.AddIf(() => DownedBossSystem.downedCalamitas, ModContent.ItemType<Tenebris>(), 5, 2, 5);
itemLoot.AddIf(() => NPC.downedGolemBoss, ModContent.ItemType<ScoriaOre>(), 5, 16, 28);
itemLoot.AddIf(() => NPC.downedGolemBoss, ModContent.ItemType<ScoriaBar>(), new Fraction(15, 100), 4, 7);
itemLoot.AddIf(() => DownedBossSystem.downedPolterghast && DownedBossSystem.downedBoomerDuke, ModContent.ItemType<ReaperTooth>(), 10, 1, 5);
tier1AcidRain.Add(ModContent.ItemType<SulphuricScale>(), 10, 1, 3);
tier2AcidRain.Add(ModContent.ItemType<CorrodedFossil>(), 10, 1, 3);
tier2AbyssAvailable.Add(ModContent.ItemType<DepthCells>(), 5, 2, 5);
tier2AbyssAvailable.Add(ModContent.ItemType<Lumenyl>(), 5, 2, 5);
tier2AbyssAvailable.Add(ModContent.ItemType<PlantyMush>(), 5, 2, 5);
tier2AbyssAvailable.Add(ModContent.ItemType<Tenebris>(), 5, 2, 5);
scoriaAvailable.Add(ModContent.ItemType<ScoriaOre>(), 5, 16, 28);
scoriaAvailable.Add(ModContent.ItemType<ScoriaBar>(), new Fraction(15, 100), 4, 7);
tier3AcidRain.Add(ModContent.ItemType<ReaperTooth>(), 10, 1, 5);
// Weapons
var lcrT1Abyss = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedSlimeGod || Main.hardMode);
lcrT1Abyss.Add(new OneFromOptionsNotScaledWithLuckDropRule(10, 1,
tier1AbyssAvailable.Add(new OneFromOptionsNotScaledWithLuckDropRule(10, 1,
ModContent.ItemType<Archerfish>(),
ModContent.ItemType<BallOFugu>(),
ModContent.ItemType<HerringStaff>(),
ModContent.ItemType<Lionfish>(),
ModContent.ItemType<BlackAnurian>()));
var lcrT2AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAquaticScourgeAcidRain);
lcrT2AcidRain.Add(new OneFromOptionsNotScaledWithLuckDropRule(10, 1,
ModContent.ItemType<SkyfinBombers>(),
ModContent.ItemType<NuclearRod>(),
@@ -82,7 +89,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
ModContent.ItemType<BelchingSaxophone>()));
// Equipment
lcrT1Abyss.Add(new OneFromOptionsNotScaledWithLuckDropRule(4, 1,
tier1AbyssAvailable.Add(new OneFromOptionsNotScaledWithLuckDropRule(4, 1,
ModContent.ItemType<StrangeOrb>(),
ModContent.ItemType<DepthCharm>(),
ModContent.ItemType<IronBoots>(),
@@ -42,15 +42,18 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
public override bool CanRightClick() => true;
public override void ModifyItemLoot(ItemLoot itemLoot)
{
var postDesertScourge = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCLAMHardMode);
var postHardmodeClam = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCLAMHardMode);
itemLoot.Add(ModContent.ItemType<Items.Placeables.Navystone>(), 1, 10, 30);
itemLoot.Add(ModContent.ItemType<Items.Placeables.EutrophicSand>(), 1, 10, 30);
itemLoot.AddIf(() => DownedBossSystem.downedDesertScourge, ModContent.ItemType<PrismShard>(), 1, 5, 10);
itemLoot.AddIf(() => DownedBossSystem.downedDesertScourge, ModContent.ItemType<Items.Placeables.SeaPrism>(), 5, 2, 5);
itemLoot.AddIf(() => DownedBossSystem.downedCLAMHardMode, ModContent.ItemType<MolluskHusk>(), new Fraction(12, 100), 2, 5);
postDesertScourge.Add(ModContent.ItemType<PrismShard>(), 1, 5, 10);
postDesertScourge.Add(ModContent.ItemType<Items.Placeables.SeaPrism>(), 5, 2, 5);
postHardmodeClam.Add(ModContent.ItemType<MolluskHusk>(), new Fraction(12, 100), 2, 5);
// Weapons
var lcr = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCLAMHardMode);
lcr.Add(new OneFromOptionsNotScaledWithLuckDropRule(7, 100,
postHardmodeClam.Add(new OneFromOptionsNotScaledWithLuckDropRule(7, 100,
ModContent.ItemType<ShellfishStaff>(),
ModContent.ItemType<ClamCrusher>(),
ModContent.ItemType<Poseidon>(),
-2
View File
@@ -44,7 +44,6 @@ namespace CalamityMod.Items.TreasureBags
normalOnly.Add(ItemID.SonarPotion, 4, 2, 3);
normalOnly.Add(ItemID.CratePotion, 4, 2, 3);
normalOnly.Add(ItemID.GoldenBugNet, 15);
itemLoot.Add(normalOnly);
var expertPlus = itemLoot.DefineConditionalDropSet(new Conditions.IsExpert());
expertPlus.Add(ItemID.AnglerTackleBag, 15);
@@ -61,7 +60,6 @@ namespace CalamityMod.Items.TreasureBags
expertPlus.Add(ItemID.SonarPotion, 2, 2, 3);
expertPlus.Add(ItemID.CratePotion, 2, 2, 3);
expertPlus.Add(ItemID.GoldenBugNet, 12);
itemLoot.Add(expertPlus);
}
}
}
-3
View File
@@ -58,20 +58,17 @@ namespace CalamityMod.Items.TreasureBags
ares.Add(ModContent.ItemType<TheJailor>());
ares.Add(ModContent.ItemType<AresExoskeleton>());
ares.Add(ModContent.ItemType<AresMask>(), maskFraction);
itemLoot.Add(ares);
var thanatos = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedThanatos);
thanatos.Add(ModContent.ItemType<SpineOfThanatos>());
thanatos.Add(ModContent.ItemType<RefractionRotor>());
thanatos.Add(ModContent.ItemType<ThanatosMask>(), maskFraction);
itemLoot.Add(thanatos);
var artemisAndApollo = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedArtemisAndApollo);
artemisAndApollo.Add(ModContent.ItemType<SurgeDriver>());
artemisAndApollo.Add(ModContent.ItemType<TheAtomSplitter>());
artemisAndApollo.Add(ModContent.ItemType<ArtemisMask>(), maskFraction);
artemisAndApollo.Add(ModContent.ItemType<ApolloMask>(), maskFraction);
itemLoot.Add(artemisAndApollo);
// Equipment
itemLoot.Add(ModContent.ItemType<DraedonsHeart>());
-2
View File
@@ -39,7 +39,6 @@ namespace CalamityMod.Items.TreasureBags
normalOnly.Add(ModContent.ItemType<CoreofEleum>(), 1, 1, 2);
normalOnly.Add(ModContent.ItemType<CoreofSunlight>(), 1, 1, 2);
normalOnly.Add(ModContent.ItemType<CoreofChaos>(), 1, 1, 2);
itemLoot.Add(normalOnly);
var expertPlus = itemLoot.DefineConditionalDropSet(new Conditions.IsExpert());
expertPlus.Add(ModContent.ItemType<CryonicBar>(), 1, 2, 3);
@@ -48,7 +47,6 @@ namespace CalamityMod.Items.TreasureBags
expertPlus.Add(ModContent.ItemType<CoreofEleum>(), 1, 1, 3);
expertPlus.Add(ModContent.ItemType<CoreofSunlight>(), 1, 1, 3);
expertPlus.Add(ModContent.ItemType<CoreofChaos>(), 1, 1, 3);
itemLoot.Add(expertPlus);
}
}
}
-2
View File
@@ -44,7 +44,6 @@ namespace CalamityMod.Items.TreasureBags
normalOnly.Add(ModContent.ItemType<LifeAlloy>(), 2);
normalOnly.Add(ModContent.ItemType<CoreofCalamity>(), 3);
normalOnly.Add(ModContent.ItemType<Bloodstone>(), 1, 50, 60);
itemLoot.Add(normalOnly);
var expertPlus = itemLoot.DefineConditionalDropSet(new Conditions.IsExpert());
expertPlus.Add(ModContent.ItemType<CryonicBar>(), 1, 7, 12);
@@ -56,7 +55,6 @@ namespace CalamityMod.Items.TreasureBags
expertPlus.Add(ModContent.ItemType<LifeAlloy>());
expertPlus.Add(ModContent.ItemType<CoreofCalamity>(), 2);
expertPlus.Add(ModContent.ItemType<Bloodstone>(), 1, 60, 70);
itemLoot.Add(expertPlus);
}
}
}
-2
View File
@@ -43,7 +43,6 @@ namespace CalamityMod.Items.TreasureBags
normalOnly.Add(ItemID.SonarPotion, 5, 2, 3);
normalOnly.Add(ItemID.CratePotion, 5, 2, 3);
normalOnly.AddIf(() => NPC.downedBoss3, ItemID.GoldenBugNet, 20);
itemLoot.Add(normalOnly);
var expertPlus = itemLoot.DefineConditionalDropSet(new Conditions.IsExpert());
expertPlus.Add(ItemID.HighTestFishingLine, 12);
@@ -59,7 +58,6 @@ namespace CalamityMod.Items.TreasureBags
expertPlus.Add(ItemID.SonarPotion, 4, 2, 3);
expertPlus.Add(ItemID.CratePotion, 4, 2, 3);
expertPlus.AddIf(() => NPC.downedBoss3, ItemID.GoldenBugNet, 18);
itemLoot.Add(expertPlus);
}
}
}
-3
View File
@@ -67,9 +67,6 @@ namespace CalamityMod.Items.TreasureBags
if (musicMod is not null)
itemLoot.Add(musicMod.Find<ModItem>("CalamityMusicbox").Type);
// Add copper/tin specific stuff
itemLoot.Add(tin);
// Aleksh donator item
// Name specific: "Aleksh" or "Shark Lad"
static bool getsLadPet(DropAttemptInfo info)