Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
69cd2425c0
11 files changed
+447
-68
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 607 B After Width: | Height: | Size: 682 B |
@@ -1,5 +1,7 @@
|
||||
using CalamityMod.Balancing;
|
||||
using CalamityMod.Items.Fishing;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.TreasureBags.MiscGrabBags;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -288,37 +290,391 @@ namespace CalamityMod.ILEditing
|
||||
orig(self, angler, questItemType);
|
||||
|
||||
EntitySource_Gift source = new EntitySource_Gift(angler);
|
||||
int questsDone = self.anglerQuestsFinished + Main.rand.Next(101);
|
||||
int questsDone = self.anglerQuestsFinished;
|
||||
float rarityReduction = 1f;
|
||||
rarityReduction = (questsDone <= 50) ? (rarityReduction - questsDone * 0.01f) : ((questsDone <= 100) ? (0.5f - (questsDone - 50) * 0.005f) : ((questsDone > 150) ? 0.15f : (0.25f - (questsDone - 100) * 0.002f)));
|
||||
rarityReduction *= 0.9f;
|
||||
rarityReduction *= (float)(self.currentShoppingSettings.PriceAdjustment + 1.0) / 2f;
|
||||
|
||||
if (rarityReduction < 0.1f)
|
||||
rarityReduction = 0.1f;
|
||||
|
||||
List<Item> rewardItems = new List<Item>();
|
||||
|
||||
GetItemSettings anglerRewardSettings = GetItemSettings.NPCEntityToPlayerInventorySettings;
|
||||
|
||||
Item item = new Item();
|
||||
item.SetDefaults(ItemID.MasterBait);
|
||||
item.stack += 5;
|
||||
if (item.stack > 0)
|
||||
rewardItems.Add(item);
|
||||
|
||||
Item item2 = self.GetItem(self.whoAmI, item, GetItemSettings.NPCEntityToPlayerInventorySettings);
|
||||
if (item2.stack > 0)
|
||||
rewardItems.Add(item2);
|
||||
// GUARANTEED REWARDS
|
||||
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 10;
|
||||
// BAIT
|
||||
switch (questsDone)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.Stinkbug);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.ApprenticeBait);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 10:
|
||||
case 11:
|
||||
case 12:
|
||||
case 13:
|
||||
case 14:
|
||||
case 15:
|
||||
item = new Item();
|
||||
item.SetDefaults(Main.rand.NextBool() ? ItemID.Worm : ItemID.Maggot);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 16:
|
||||
case 17:
|
||||
case 18:
|
||||
case 19:
|
||||
case 20:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.JourneymanBait);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 21:
|
||||
case 22:
|
||||
case 23:
|
||||
case 24:
|
||||
case 25:
|
||||
case 26:
|
||||
item = new Item();
|
||||
item.SetDefaults(Main.rand.NextBool() ? ItemID.EnchantedNightcrawler : ItemID.Buggy);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
case 27:
|
||||
case 28:
|
||||
case 29:
|
||||
case 30:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MasterBait);
|
||||
item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
|
||||
default:
|
||||
//item = new Item();
|
||||
//item.SetDefaults(ModContent.ItemType<GrandMarquisBait>());
|
||||
//item.stack = Main.rand.Next(2, 6);
|
||||
break;
|
||||
}
|
||||
|
||||
item.position = self.Center;
|
||||
Item item2 = self.GetItem(self.whoAmI, item, anglerRewardSettings);
|
||||
rewardItems.Add(item2);
|
||||
|
||||
// COINS
|
||||
switch (questsDone)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 2;
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SilverCoin);
|
||||
item.stack = 50;
|
||||
break;
|
||||
|
||||
case 10:
|
||||
case 11:
|
||||
case 12:
|
||||
case 13:
|
||||
case 14:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 4;
|
||||
break;
|
||||
|
||||
case 15:
|
||||
case 16:
|
||||
case 17:
|
||||
case 18:
|
||||
case 19:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 6;
|
||||
break;
|
||||
|
||||
case 20:
|
||||
case 21:
|
||||
case 22:
|
||||
case 23:
|
||||
case 24:
|
||||
case 25:
|
||||
case 26:
|
||||
case 27:
|
||||
case 28:
|
||||
case 29:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 8;
|
||||
break;
|
||||
|
||||
default:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldCoin);
|
||||
item.stack = 10;
|
||||
break;
|
||||
}
|
||||
|
||||
item.position = self.Center;
|
||||
item2 = self.GetItem(self.whoAmI, item, anglerRewardSettings);
|
||||
if (item2.stack > 0)
|
||||
rewardItems.Add(item2);
|
||||
|
||||
rewardItems.Add(item2);
|
||||
|
||||
// PRIMARY ITEMS
|
||||
switch (questsDone)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
item = new Item();
|
||||
item.SetDefaults(ModContent.ItemType<Spadefish>());
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
item = new Item();
|
||||
item.SetDefaults(ModContent.ItemType<StuffedFish>());
|
||||
item.stack = Main.rand.Next(4, 10);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HighTestFishingLine);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishHook);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FuzzyCarrot);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 6:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishermansGuide);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 7:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishCostumeMask);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishCostumeShirt);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishCostumeFinskirt);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ModContent.ItemType<SandyAnglingKit>());
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 8:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishMinecart);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 9:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SailfishBoots);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 10:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerHat);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerVest);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerPants);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 11:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.WeatherRadio);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 12:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishingBobber);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 13:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SeashellHairpin);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MermaidAdornment);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MermaidTail);
|
||||
rewardItems.Add(item);
|
||||
item = new Item();
|
||||
item.SetDefaults(ModContent.ItemType<SandyAnglingKit>());
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 14:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.Sextant);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 15:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.TackleBox);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 16:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperAbsorbantSponge);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 17:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HoneyAbsorbantSponge);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 18:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MagicConch);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 19:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.DemonConch);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 20:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerEarring);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 21:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.LavaFishingHook);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 22:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HotlineFishingHook);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 23:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FrogLeg);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 24:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperheatedBlood);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 25:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessBucket);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 26:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.Sundial);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 27:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessHoneyBucket);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 28:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldenBugNet);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 29:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessLavaBucket);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
|
||||
case 30:
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldenFishingRod);
|
||||
rewardItems.Add(item);
|
||||
break;
|
||||
}
|
||||
|
||||
// RANDOM DROPS
|
||||
|
||||
// Angling Kits
|
||||
if (Main.rand.NextBool((int)(12f * rarityReduction)) && questsDone > 30)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(Main.hardMode ? ModContent.ItemType<BleachedAnglingKit>() : ModContent.ItemType<SandyAnglingKit>());
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Golden Fishing Rod
|
||||
if (Main.rand.NextBool((int)(500f * rarityReduction)))
|
||||
if (Main.rand.NextBool((int)(500f * rarityReduction)) && questsDone > 30)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldenFishingRod);
|
||||
@@ -326,7 +682,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Hotline Fishing Hook
|
||||
if (Main.rand.NextBool((int)(200f * rarityReduction)) || self.anglerQuestsFinished == 22)
|
||||
if (Main.rand.NextBool((int)(200f * rarityReduction)) && questsDone > 22)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HotlineFishingHook);
|
||||
@@ -334,7 +690,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Angler Set
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)))
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) && questsDone > 10)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerHat);
|
||||
@@ -348,7 +704,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Mermaid Set
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) || self.anglerQuestsFinished == 11)
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) && questsDone > 13)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SeashellHairpin);
|
||||
@@ -362,7 +718,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fish Set
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) || self.anglerQuestsFinished == 8)
|
||||
if (Main.rand.NextBool((int)(150f * rarityReduction)) && questsDone > 7)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishCostumeMask);
|
||||
@@ -376,7 +732,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fin Wings
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && Main.hardMode)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && Main.hardMode && questsDone > 10)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FinWings);
|
||||
@@ -384,7 +740,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Bottomless Water Bucket
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)))
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 25)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessBucket);
|
||||
@@ -392,15 +748,39 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Bottomless Honey Bucket
|
||||
/*if (Main.rand.NextBool((int)(140f * rarityReduction)) || self.anglerQuestsFinished == 29)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 27)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessHoneyBucket);
|
||||
rewardItems.Add(item);
|
||||
}*/
|
||||
}
|
||||
|
||||
// Bottomless Lava Bucket
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 29)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.BottomlessLavaBucket);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Magic Conch
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 18)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.MagicConch);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Demon Conch
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 19)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.DemonConch);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Super Absorbant Sponge
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) || self.anglerQuestsFinished == 17)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 16)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperAbsorbantSponge);
|
||||
@@ -408,15 +788,15 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Honey Absorbant Sponge
|
||||
/*if (Main.rand.NextBool((int)(140f * rarityReduction)) || self.anglerQuestsFinished == 19)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 17)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperAbsorbantSponge);
|
||||
rewardItems.Add(item);
|
||||
}*/
|
||||
}
|
||||
|
||||
// Golden Bug Net
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) || self.anglerQuestsFinished == 27)
|
||||
if (Main.rand.NextBool((int)(140f * rarityReduction)) && questsDone > 28)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.GoldenBugNet);
|
||||
@@ -424,7 +804,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fish Hook
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) || self.anglerQuestsFinished == 4)
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) && questsDone > 4)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishHook);
|
||||
@@ -432,15 +812,23 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Minecarp
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) || self.anglerQuestsFinished == 9)
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) && questsDone > 8)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishMinecart);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Lava Shark
|
||||
if (Main.rand.NextBool((int)(120f * rarityReduction)) && questsDone > 24)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.SuperheatedBlood);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// High Test Fishing Line
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) || self.anglerQuestsFinished == 2)
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) && questsDone > 3)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.HighTestFishingLine);
|
||||
@@ -448,15 +836,23 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Angler Earring
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) || self.anglerQuestsFinished == 7)
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) && questsDone > 20)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.AnglerEarring);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Lavaproof Fishing Hook
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) && questsDone > 21)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.LavaFishingHook);
|
||||
rewardItems.Add(item);
|
||||
}
|
||||
|
||||
// Tackle Box
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) || self.anglerQuestsFinished == 12)
|
||||
if (Main.rand.NextBool((int)(80f * rarityReduction)) && questsDone > 15)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.TackleBox);
|
||||
@@ -464,7 +860,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fisherman's Pocket Guide
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) || self.anglerQuestsFinished == 1)
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) && questsDone > 6)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishermansGuide);
|
||||
@@ -472,7 +868,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Weather Radio
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) || self.anglerQuestsFinished == 3)
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) && questsDone > 11)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.WeatherRadio);
|
||||
@@ -480,7 +876,7 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Sextant
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) || self.anglerQuestsFinished == 6)
|
||||
if (Main.rand.NextBool((int)(60f * rarityReduction)) && questsDone > 14)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.Sextant);
|
||||
@@ -488,12 +884,12 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
|
||||
// Fishing Bobber
|
||||
/*if (Main.rand.NextBool((int)(50f * rarityReduction)) || self.anglerQuestsFinished == 13)
|
||||
if (Main.rand.NextBool((int)(50f * rarityReduction)) && questsDone > 12)
|
||||
{
|
||||
item = new Item();
|
||||
item.SetDefaults(ItemID.FishingBobber);
|
||||
rewardItems.Add(item);
|
||||
}*/
|
||||
}
|
||||
|
||||
PlayerLoader.AnglerQuestReward(self, rarityReduction, rewardItems);
|
||||
|
||||
|
||||
@@ -82,14 +82,6 @@ namespace CalamityMod.Items.TreasureBags
|
||||
itemLoot.Add(ModContent.ItemType<AnahitaMask>(), 7);
|
||||
itemLoot.Add(ModContent.ItemType<LeviathanMask>(), 7);
|
||||
itemLoot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
|
||||
|
||||
// Fishing
|
||||
itemLoot.Add(ItemID.HotlineFishingHook, 10);
|
||||
itemLoot.Add(ItemID.BottomlessBucket, 10);
|
||||
itemLoot.Add(ItemID.SuperAbsorbantSponge, 10);
|
||||
itemLoot.Add(ItemID.FishingPotion, 5, 5, 8);
|
||||
itemLoot.Add(ItemID.SonarPotion, 5, 5, 8);
|
||||
itemLoot.Add(ItemID.CratePotion, 5, 5, 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,9 +8,10 @@ namespace CalamityMod.Items.TreasureBags.MiscGrabBags
|
||||
public class SandyAnglingKit : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.TreasureBags";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 10;
|
||||
Item.ResearchUnlockCount = 10;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,12 +14,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 14;
|
||||
Item.damage = 9;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 62;
|
||||
Item.height = 26;
|
||||
Item.useTime = 26;
|
||||
Item.useAnimation = 26;
|
||||
Item.useTime = 30;
|
||||
Item.useAnimation = 30;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5.5f;
|
||||
|
||||
@@ -49,7 +49,7 @@ AntiMaterielRifle: {
|
||||
Tooltip:
|
||||
'''
|
||||
Converts musket balls into .50 caliber sniper rounds that rip apart enemy defense and DR
|
||||
Critical hits unleash a second swarm of bullets
|
||||
Critical hits unleash a second swarm of 4 bullets
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -1244,7 +1244,7 @@ TyrannysEnd: {
|
||||
'''
|
||||
Converts musket balls into .70 caliber sniper rounds that bypass enemy Defense and DR
|
||||
Inflicts Marked for Death on enemy hits
|
||||
Critical hits summon a swarm of 10 additional bullets
|
||||
Critical hits summon a swarm of 5 additional bullets
|
||||
'Pierce the heart of even the most heavily-armored foe'
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -5170,6 +5170,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// 12JUL2023: Ozzatron: what does this do
|
||||
// 27SEP2023: Fabsol: disables vanilla spawns "a pool of [0] indicates vanilla spawning"
|
||||
if (calamityBiomeZone)
|
||||
{
|
||||
pool[0] = 0f;
|
||||
|
||||
@@ -1292,9 +1292,6 @@ namespace CalamityMod.NPCs
|
||||
.Add(ItemID.ManaPotion, potionSells, Condition.HappyEnough, Condition.DownedEowOrBoc)
|
||||
.Add(ItemID.Flare, hasFlareGunUpgrade)
|
||||
.Add(ItemID.BlueFlare, hasFlareGunUpgrade)
|
||||
.Add(ItemID.ApprenticeBait, Condition.DownedEyeOfCthulhu)
|
||||
.Add(ItemID.JourneymanBait, Condition.DownedEowOrBoc)
|
||||
.Add(ItemID.MasterBait, Condition.DownedSkeletron)
|
||||
.AddWithCustomValue(ItemID.AngelStatue, Item.buyPrice(gold: 5), Condition.NpcIsPresent(NPCType<THIEF>()))
|
||||
.AddWithCustomValue(ItemID.Burger, Item.buyPrice(gold: 5), Condition.HappyEnough, Condition.DownedSkeletron)
|
||||
.AddWithCustomValue(ItemID.Hotdog, Item.buyPrice(gold: 5), Condition.HappyEnough, Condition.DownedSkeletron)
|
||||
|
||||
@@ -829,14 +829,6 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<LeviathanAmbergris>()));
|
||||
normalOnly.Add(ModContent.ItemType<PearlofEnthrallment>(), DropHelper.NormalWeaponDropRateFraction);
|
||||
normalOnly.Add(ModContent.ItemType<TheCommunity>(), 10);
|
||||
|
||||
// Fishing
|
||||
normalOnly.Add(ItemID.HotlineFishingHook, 10);
|
||||
normalOnly.Add(ItemID.BottomlessBucket, 10);
|
||||
normalOnly.Add(ItemID.SuperAbsorbantSponge, 10);
|
||||
normalOnly.Add(ItemID.FishingPotion, 5, 5, 8);
|
||||
normalOnly.Add(ItemID.SonarPotion, 5, 5, 8);
|
||||
normalOnly.Add(ItemID.CratePotion, 5, 5, 8);
|
||||
}
|
||||
|
||||
// Relic
|
||||
|
||||
@@ -74,13 +74,13 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (crit)
|
||||
{
|
||||
var source = Projectile.GetSource_FromThis();
|
||||
int extraProjectileAmt = 8;
|
||||
int extraProjectileAmt = 4;
|
||||
for (int x = 0; x < extraProjectileAmt; x++)
|
||||
{
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
bool fromRight = x > 3;
|
||||
CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, fromRight, 500f, 500f, 0f, 500f, 10f, ModContent.ProjectileType<AMR2>(), (int)(Projectile.damage * 0.1), Projectile.knockBack * 0.1f, Projectile.owner);
|
||||
CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, fromRight, 500f, 500f, 0f, 500f, 10f, ModContent.ProjectileType<AMR2>(), (int)(Projectile.damage * 0.22), Projectile.knockBack * 0.1f, Projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,13 +53,13 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
OnHitEffects(target.Center, hit.Crit);
|
||||
target.AddBuff(ModContent.BuffType<MarkedforDeath>(), 600);
|
||||
target.AddBuff(ModContent.BuffType<MarkedforDeath>(), 300);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
OnHitEffects(target.Center, true);
|
||||
target.AddBuff(ModContent.BuffType<MarkedforDeath>(), 600);
|
||||
target.AddBuff(ModContent.BuffType<MarkedforDeath>(), 300);
|
||||
}
|
||||
|
||||
private void OnHitEffects(Vector2 targetPos, bool crit)
|
||||
@@ -67,12 +67,12 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (crit)
|
||||
{
|
||||
var source = Projectile.GetSource_FromThis();
|
||||
int bulletCount = 10;
|
||||
int bulletCount = 5;
|
||||
for (int x = 0; x < bulletCount; x++)
|
||||
{
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, x < bulletCount / 2, 500f, 500f, 0f, 500f, 12f, ModContent.ProjectileType<AMR2>(), (int)(Projectile.damage * 0.2), Projectile.knockBack, Projectile.owner);
|
||||
CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, x < bulletCount / 2, 500f, 500f, 0f, 500f, 12f, ModContent.ProjectileType<AMR2>(), (int)(Projectile.damage * 0.14), Projectile.knockBack, Projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user