Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
No files matched your search
@@ -0,0 +1,20 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class ElysianGuard : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Elysian Guard");
|
||||
Description.SetDefault("Movement speed reduced, other stats buffed");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
canBeCleared = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 464 B |
|
Before Width: | Height: | Size: 455 B After Width: | Height: | Size: 575 B |
@@ -13,6 +13,7 @@ using CalamityMod.Items.Accessories.Vanity;
|
||||
using CalamityMod.Items.DifficultyItems;
|
||||
using CalamityMod.Items.Fishing;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using CalamityMod.Items.Fishing.SunkenSeaCatches;
|
||||
using CalamityMod.Items.Fishing.FishingRods;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Pets;
|
||||
@@ -3890,7 +3891,11 @@ namespace CalamityMod.CalPlayer
|
||||
bool flag14 = false;
|
||||
if (elysianGuard)
|
||||
{
|
||||
float num29 = shieldInvinc;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<ElysianGuard>(), 2, false);
|
||||
}
|
||||
float num29 = shieldInvinc;
|
||||
shieldInvinc -= 0.08f;
|
||||
if (shieldInvinc < 0f)
|
||||
{
|
||||
@@ -7380,6 +7385,22 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (ZoneSunkenSea)
|
||||
{
|
||||
/*switch (Main.rand.Next(2))
|
||||
{
|
||||
case 0:
|
||||
rareItemList.Add(ModContent.ItemType<SparklingEmpress>());
|
||||
break;
|
||||
case 1:
|
||||
rareItemList.Add(ModContent.ItemType<RustedJingleBell>());
|
||||
break;
|
||||
}*/
|
||||
if (Main.hardMode)
|
||||
{
|
||||
rareItemList.Add(ModContent.ItemType<SerpentsBite>());
|
||||
}
|
||||
}
|
||||
if (player.ZoneSnow && player.ZoneRockLayerHeight && (player.ZoneCorrupt || player.ZoneCrimson || player.ZoneHoly))
|
||||
{
|
||||
rareItemList.Add(ItemID.ScalyTruffle);
|
||||
@@ -7396,6 +7417,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
rareItemList.Add(ItemID.CrystalSerpent);
|
||||
}
|
||||
if (player.ZoneDirtLayerHeight)
|
||||
{
|
||||
rareItemList.Add(ModContent.ItemType<Spadefish>());
|
||||
}
|
||||
|
||||
if (rareItemList.Any())
|
||||
{
|
||||
@@ -7416,6 +7441,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
biomeCrateList.Add(ModContent.ItemType<AstralCrate>());
|
||||
}
|
||||
if (ZoneSunkenSea)
|
||||
{
|
||||
biomeCrateList.Add(ModContent.ItemType<SunkenCrate>());
|
||||
}
|
||||
if (player.ZoneCorrupt)
|
||||
{
|
||||
biomeCrateList.Add(ItemID.CorruptFishingCrate);
|
||||
@@ -7440,6 +7469,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
biomeCrateList.Add(ItemID.FloatingIslandFishingCrate);
|
||||
}
|
||||
|
||||
|
||||
if (biomeCrateList.Any())
|
||||
{
|
||||
@@ -7524,6 +7554,75 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (ZoneSunkenSea) //Sunken Sea, fishing in water
|
||||
{
|
||||
int sunkenFish = Main.rand.Next(100);
|
||||
if (caughtType == ItemID.WoodenCrate)
|
||||
{
|
||||
caughtType = ItemID.WoodenCrate;
|
||||
}
|
||||
else if (caughtType == ItemID.IronCrate)
|
||||
{
|
||||
caughtType = ItemID.IronCrate;
|
||||
}
|
||||
else if (caughtType == ItemID.GoldenCrate)
|
||||
{
|
||||
caughtType = ItemID.GoldenCrate;
|
||||
}
|
||||
else if (caughtType == ItemID.FrogLeg)
|
||||
{
|
||||
caughtType = ItemID.FrogLeg;
|
||||
}
|
||||
else if (caughtType == ItemID.BalloonPufferfish)
|
||||
{
|
||||
caughtType = ItemID.BalloonPufferfish;
|
||||
}
|
||||
else if (caughtType == ItemID.ZephyrFish)
|
||||
{
|
||||
caughtType = ItemID.ZephyrFish;
|
||||
}
|
||||
else if (sunkenFish >= 85 && Main.hardMode) //15%
|
||||
{
|
||||
caughtType = ModContent.ItemType<PrismaticGuppy>();
|
||||
}
|
||||
else if (sunkenFish <= 84 && sunkenFish >= 70) //15%
|
||||
{
|
||||
caughtType = ModContent.ItemType<SunkenSailfish>();
|
||||
}
|
||||
else if (sunkenFish <= 69 && sunkenFish >= 55) //15%
|
||||
{
|
||||
caughtType = ModContent.ItemType<CoralskinFoolfish>();
|
||||
}
|
||||
else if (player.cratePotion && sunkenFish <= 9 && sunkenFish >= 28) //20%
|
||||
{
|
||||
caughtType = ModContent.ItemType<SunkenCrate>();
|
||||
}
|
||||
else if (!player.cratePotion && sunkenFish <= 9 && sunkenFish >= 18) //10%
|
||||
{
|
||||
caughtType = ModContent.ItemType<SunkenCrate>();
|
||||
}
|
||||
else if (sunkenFish <= 29 && sunkenFish >= 31) //3%
|
||||
{
|
||||
caughtType = ModContent.ItemType<GreenwaveLoach>();
|
||||
}
|
||||
else if (sunkenFish <= 6 && sunkenFish >= 8 && Main.hardMode) //3%
|
||||
{
|
||||
caughtType = ModContent.ItemType<SerpentsBite>();
|
||||
}
|
||||
/*else if (sunkenFish <= 3 && sunkenFish >= 5) //3%
|
||||
{
|
||||
caughtType = ModContent.ItemType<RustedJingleBell>();
|
||||
}
|
||||
else if (sunkenFish <= 2 && sunkenFish >= 0) //3%
|
||||
{
|
||||
caughtType = ModContent.ItemType<SparklingEmpress>();
|
||||
}*/
|
||||
else //33% w/o crate pot, 23% w/ crate pot + 28% if prehardmode
|
||||
{
|
||||
caughtType = ModContent.ItemType<ScarredAngelfish>();
|
||||
}
|
||||
}
|
||||
|
||||
if ((player.ZoneCrimson || player.ZoneCorrupt) && player.ZoneRockLayerHeight)
|
||||
{
|
||||
if (Main.rand.NextBool(15))
|
||||
@@ -7555,6 +7654,30 @@ namespace CalamityMod.CalPlayer
|
||||
caughtType = ModContent.ItemType<EnchantedStarfish>();
|
||||
}
|
||||
}
|
||||
|
||||
if (player.ZoneOverworldHeight && Main.dayTime)
|
||||
{
|
||||
if (Main.rand.NextBool(15))
|
||||
{
|
||||
caughtType = ModContent.ItemType<StuffedFish>();
|
||||
}
|
||||
}
|
||||
|
||||
if (player.ZoneRockLayerHeight)
|
||||
{
|
||||
if (Main.rand.NextBool(15))
|
||||
{
|
||||
caughtType = ModContent.ItemType<GlimmeringGemfish>();
|
||||
}
|
||||
}
|
||||
|
||||
if (player.ZoneDirtLayerHeight)
|
||||
{
|
||||
if (Main.rand.NextBool(40))
|
||||
{
|
||||
caughtType = ModContent.ItemType<Spadefish>();
|
||||
}
|
||||
}
|
||||
|
||||
if (junk)
|
||||
{
|
||||
@@ -7635,6 +7758,20 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Quest Fish
|
||||
if (ZoneSunkenSea && questFish == ModContent.ItemType<EutrophicSandfish>() && Main.rand.NextBool(10))
|
||||
{
|
||||
caughtType = ModContent.ItemType<EutrophicSandfish>();
|
||||
}
|
||||
if (ZoneSunkenSea && questFish == ModContent.ItemType<SurfClam>() && Main.rand.NextBool(10))
|
||||
{
|
||||
caughtType = ModContent.ItemType<SurfClam>();
|
||||
}
|
||||
if (ZoneSunkenSea && questFish == ModContent.ItemType<Serpentuna>() && Main.rand.NextBool(10))
|
||||
{
|
||||
caughtType = ModContent.ItemType<Serpentuna>();
|
||||
}
|
||||
}
|
||||
|
||||
public override void GetFishingLevel(Item fishingRod, Item bait, ref int fishingLevel)
|
||||
|
||||
|
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 325 B |
@@ -89,9 +89,8 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<ElysianTracers>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DrewsWings>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 497 B After Width: | Height: | Size: 379 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 463 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 983 B After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 343 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 435 B After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 312 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 349 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -48,16 +48,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerChestplate>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareBodyArmor>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonBreastplate>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 100);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 30);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 30);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 7);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<FrostBarrier>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 18);
|
||||
recipe.AddIngredient(ModContent.ItemType<FrostBarrier>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -42,16 +42,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerLeggings>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareCuisses>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonLeggings>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 80);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 2);
|
||||
recipe.AddIngredient(ItemID.FlyingCarpet);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 14);
|
||||
recipe.AddIngredient(ItemID.FlyingCarpet);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -80,16 +80,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareMask>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 60);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -78,15 +78,7 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerHelmet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareHornedHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonVisage>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 60);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -85,16 +85,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerMask>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonHelmet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 60);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -215,16 +215,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerHornedHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareHelmet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonHornedHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 60);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -80,16 +80,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerVisage>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareHornedMask>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonMask>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 60);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing
|
||||
{
|
||||
public class GlimmeringGemfish : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Glimmering Gemfish");
|
||||
Tooltip.SetDefault("Right click to extract herbs and seeds");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.maxStack = 999;
|
||||
item.consumable = true;
|
||||
item.width = 34;
|
||||
item.height = 30;
|
||||
item.rare = 2;
|
||||
item.value = Item.sellPrice(silver: 50);
|
||||
}
|
||||
|
||||
public override bool CanRightClick()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void RightClick(Player player)
|
||||
{
|
||||
int gemMin = 1;
|
||||
int gemMax = 3;
|
||||
DropHelper.DropItemChance(player, ItemID.Amethyst, 0.5f, gemMin, gemMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Topaz, 0.4f, gemMin, gemMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Sapphire, 0.3f, gemMin, gemMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Emerald, 0.2f, gemMin, gemMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Ruby, 0.15f, gemMin, gemMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Diamond, 0.1f, gemMin, gemMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Amber, 0.25f, gemMin, gemMax);
|
||||
Mod thorium = ModLoader.GetMod("ThoriumMod");
|
||||
DropHelper.DropItemChance(player, thorium.ItemType("Pearl"), 0.25f, gemMin, gemMax);
|
||||
DropHelper.DropItemChance(player, thorium.ItemType("Opal"), 0.25f, gemMin, gemMax);
|
||||
DropHelper.DropItemChance(player, thorium.ItemType("Onyx"), 0.25f, gemMin, gemMax);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing
|
||||
{
|
||||
public class Spadefish : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Spadefish");
|
||||
Tooltip.SetDefault("How can a fish be used to dig through the ground?\n" +
|
||||
"Some questions are best left unanswered.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 15;
|
||||
item.melee = true;
|
||||
item.width = 46;
|
||||
item.height = 44;
|
||||
item.useTime = 10;
|
||||
item.useAnimation = 20;
|
||||
item.useTurn = true;
|
||||
item.pick = 30;
|
||||
item.useStyle = 1;
|
||||
item.knockBack = 2f;
|
||||
item.value = Item.buyPrice(0, 2, 0, 0);
|
||||
item.rare = 2;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing
|
||||
{
|
||||
public class StuffedFish : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Stuffed Fish");
|
||||
Tooltip.SetDefault("Right click to extract herbs and seeds");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.maxStack = 999;
|
||||
item.consumable = true;
|
||||
item.width = 34;
|
||||
item.height = 30;
|
||||
item.rare = 2;
|
||||
item.value = Item.sellPrice(silver: 50);
|
||||
}
|
||||
|
||||
public override bool CanRightClick()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void RightClick(Player player)
|
||||
{
|
||||
int herbMin = 1;
|
||||
int herbMax = 3;
|
||||
int seedMin = 2;
|
||||
int seedMax = 5;
|
||||
DropHelper.DropItemChance(player, ItemID.Daybloom, 0.25f, herbMin, herbMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Moonglow, 0.25f, herbMin, herbMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Waterleaf, 0.25f, herbMin, herbMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Deathweed, 0.25f, herbMin, herbMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Shiverthorn, 0.25f, herbMin, herbMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Fireblossom, 0.25f, herbMin, herbMax);
|
||||
DropHelper.DropItemChance(player, ItemID.Blinkroot, 0.25f, herbMin, herbMax);
|
||||
DropHelper.DropItemChance(player, ItemID.DaybloomSeeds, 0.20f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.MoonglowSeeds, 0.20f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.WaterleafSeeds, 0.20f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.DeathweedSeeds, 0.20f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.ShiverthornSeeds, 0.20f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.FireblossomSeeds, 0.20f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.BlinkrootSeeds, 0.20f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.GrassSeeds, 0.1f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.JungleGrassSeeds, 0.1f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.MushroomGrassSeeds, 0.1f, seedMin, seedMax);
|
||||
DropHelper.DropItemChance(player, ItemID.PumpkinSeed, 0.05f, seedMin, seedMax);
|
||||
DropHelper.DropItemCondition(player, ItemID.CorruptSeeds, !WorldGen.crimson, 0.05f, seedMin, seedMax);
|
||||
DropHelper.DropItemCondition(player, ItemID.CrimsonSeeds, WorldGen.crimson, 0.05f, seedMin, seedMax);
|
||||
DropHelper.DropItemCondition(player, ItemID.HallowedSeeds, Main.hardMode, 0.05f, seedMin, seedMax);
|
||||
Mod thorium = ModLoader.GetMod("ThoriumMod");
|
||||
DropHelper.DropItemChance(player, thorium.ItemType("MarineKelp"), 0.25f, herbMin, herbMax);
|
||||
DropHelper.DropItemChance(player, thorium.ItemType("MarineKelpSeeds"), 0.1f, seedMin, seedMax);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class CoralskinFoolfish : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Coralskin Foolfish"); //Potion material
|
||||
Tooltip.SetDefault("Camouflage is one of nature's best defenses");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 28;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 7);
|
||||
item.rare = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.World;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class EutrophicSandfish : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Eutrophic Sandfish");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.questItem = true;
|
||||
item.maxStack = 1;
|
||||
item.width = 40;
|
||||
item.height = 28;
|
||||
item.uniqueStack = true;
|
||||
item.rare = ItemRarityID.Quest;
|
||||
}
|
||||
|
||||
public override bool IsQuestFish()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool IsAnglerQuestAvailable()
|
||||
{
|
||||
return CalamityWorld.downedDesertScourge;
|
||||
}
|
||||
|
||||
public override void AnglerQuestChat(ref string description, ref string catchLocation)
|
||||
{
|
||||
description = "You ever get to see what would happen if a lizard that lived in the desert scurried too deep underground? I did, and they sure are cool! But it’s way too slippery for me to get my hands on it now. You go and get it so I can keep it as a pet!";
|
||||
catchLocation = "Caught in the Sunken Sea.";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class GreenwaveLoach : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Greenwave Loach");
|
||||
Tooltip.SetDefault("An endangered fish that is highly prized in the market");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 40;
|
||||
item.height = 38;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(gold: 10);
|
||||
item.rare = 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class PrismaticGuppy : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Prismatic Guppy");
|
||||
Tooltip.SetDefault("Throwing these in an aquarium would be insanity");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 30;
|
||||
item.height = 28;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 7);
|
||||
item.rare = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 653 B |
@@ -0,0 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class ScarredAngelfish : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Scarred Angelfish"); //Bass substitute
|
||||
Tooltip.SetDefault("The mark of a fallen angel");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 26;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 5);
|
||||
item.rare = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class SerpentsBite : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Serpent's Bite");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
// Instead of copying these values, we can clone and modify the ones we want to copy
|
||||
item.CloneDefaults(ItemID.AmethystHook);
|
||||
item.shootSpeed = 18f; // how quickly the hook is shot.
|
||||
item.shoot = ProjectileType<SerpentsBiteHook>();
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
item.width = 30;
|
||||
item.height = 32;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class Serpentuna : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Serpentuna");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.questItem = true;
|
||||
item.maxStack = 1;
|
||||
item.width = 36;
|
||||
item.height = 40;
|
||||
item.uniqueStack = true;
|
||||
item.rare = ItemRarityID.Quest;
|
||||
}
|
||||
|
||||
public override bool IsQuestFish()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool IsAnglerQuestAvailable()
|
||||
{
|
||||
return Main.hardMode;
|
||||
}
|
||||
|
||||
public override void AnglerQuestChat(ref string description, ref string catchLocation)
|
||||
{
|
||||
description = "Sea serpents are pretty but not as pretty as the look on someone's face when they find one in their chair. I need you to fetch me the props for my next big scare, and the deadline is tomorrow.";
|
||||
catchLocation = "Caught in the Sunken Sea.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 964 B |
@@ -0,0 +1,97 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Tiles.SunkenSea;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class SunkenCrate : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sunken Crate");
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.maxStack = 999;
|
||||
item.consumable = true;
|
||||
item.width = 32;
|
||||
item.height = 32;
|
||||
item.rare = 2;
|
||||
item.value = Item.sellPrice(gold: 1);
|
||||
item.createTile = ModContent.TileType<SunkenCrateTile>();
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = 1;
|
||||
}
|
||||
|
||||
public override bool CanRightClick()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void RightClick(Player player)
|
||||
{
|
||||
//Modded materials
|
||||
DropHelper.DropItem(player, ModContent.ItemType<Items.Placeables.Navystone>(), 10, 30);
|
||||
DropHelper.DropItem(player, ModContent.ItemType<Items.Placeables.EutrophicSand>(), 10, 30);
|
||||
if (CalamityWorld.downedDesertScourge)
|
||||
{
|
||||
DropHelper.DropItem(player, ModContent.ItemType<PrismShard>(), 10, 20);
|
||||
DropHelper.DropItem(player, ModContent.ItemType<Items.Placeables.SeaPrism>(), 5, 10);
|
||||
}
|
||||
if (Main.hardMode)
|
||||
{
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<MolluskHusk>(), 0.5f, 5, 15);
|
||||
}
|
||||
|
||||
// Weapons
|
||||
DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedCLAM && Main.hardMode, 0.2f,
|
||||
ModContent.ItemType<ShellfishStaff>(),
|
||||
ModContent.ItemType<ClamCrusher>(),
|
||||
ModContent.ItemType<Poseidon>(),
|
||||
ModContent.ItemType<ClamorRifle>());
|
||||
|
||||
//Bait
|
||||
DropHelper.DropItemChance(player, ItemID.MasterBait, 10, 1, 2);
|
||||
DropHelper.DropItemChance(player, ItemID.JourneymanBait, 5, 1, 3);
|
||||
DropHelper.DropItemChance(player, ItemID.ApprenticeBait, 3, 2, 3);
|
||||
|
||||
//Potions
|
||||
DropHelper.DropItemChance(player, ItemID.ObsidianSkinPotion, 10, 1, 3);
|
||||
DropHelper.DropItemChance(player, ItemID.SwiftnessPotion, 10, 1, 3);
|
||||
DropHelper.DropItemChance(player, ItemID.IronskinPotion, 10, 1, 3);
|
||||
DropHelper.DropItemChance(player, ItemID.NightOwlPotion, 10, 1, 3);
|
||||
DropHelper.DropItemChance(player, ItemID.ShinePotion, 10, 1, 3);
|
||||
DropHelper.DropItemChance(player, ItemID.MiningPotion, 10, 1, 3);
|
||||
DropHelper.DropItemChance(player, ItemID.HeartreachPotion, 10, 1, 3);
|
||||
DropHelper.DropItemChance(player, ItemID.TrapsightPotion, 10, 1, 3); //Dangersense Potion
|
||||
if (Main.hardMode)
|
||||
{
|
||||
DropHelper.DropItem(player, Main.rand.Next(100) >= 49 ? ItemID.GreaterHealingPotion: ItemID.GreaterManaPotion, 5, 10);
|
||||
}
|
||||
else
|
||||
{
|
||||
DropHelper.DropItem(player, Main.rand.Next(100) >= 49 ? ItemID.HealingPotion : ItemID.ManaPotion, 5, 10);
|
||||
}
|
||||
|
||||
//Money
|
||||
DropHelper.DropItem(player, ItemID.SilverCoin, 10, 90);
|
||||
DropHelper.DropItemChance(player, ItemID.GoldCoin, 0.5f, 1, 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class SunkenSailfish : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sunken Sailfish"); //Potion material
|
||||
Tooltip.SetDefault("Zooming at 60 miles per hour");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 58;
|
||||
item.height = 52;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 7);
|
||||
item.rare = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.World;
|
||||
|
||||
namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
public class SurfClam : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Surf Clam");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.questItem = true;
|
||||
item.maxStack = 1;
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.uniqueStack = true;
|
||||
item.rare = ItemRarityID.Quest;
|
||||
}
|
||||
|
||||
public override bool IsQuestFish()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool IsAnglerQuestAvailable()
|
||||
{
|
||||
return CalamityWorld.downedDesertScourge;
|
||||
}
|
||||
|
||||
public override void AnglerQuestChat(ref string description, ref string catchLocation)
|
||||
{
|
||||
description = "Did you know that clams are a delicacy? Rumor has it that a big colony lives beneath the Desert. Just talking about them makes me hungry. I need you to fetch one for me, so I can practice my culinary skills and curb my hunger.";
|
||||
catchLocation = "Caught in the Sunken Sea.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 357 B |
@@ -0,0 +1,52 @@
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
public class AuricBar : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Auric Tesla Bar");
|
||||
Tooltip.SetDefault("It radiates godly energy");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 15));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 50;
|
||||
item.height = 30;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(gold: 24);
|
||||
item.Calamity().postMoonLordRarity = 15;
|
||||
}
|
||||
|
||||
public override void Update(ref float gravity, ref float maxFallSpeed)
|
||||
{
|
||||
maxFallSpeed = 0f;
|
||||
float num = (float)Main.rand.Next(90, 111) * 0.01f;
|
||||
num *= Main.essScale;
|
||||
Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.7f * num, 0f);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>());
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this, 2);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -26,13 +26,8 @@ namespace CalamityMod.Items.Materials
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<CalamitousEssence>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>());
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this, 3);
|
||||
recipe.AddRecipe();
|
||||
|
||||
|
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 234 B |
|
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 258 B |
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -36,6 +37,7 @@ namespace CalamityMod.Items.Potions
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.GravitationPotion);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralJelly>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TwinklingPollox>());
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Items.Fishing.SunkenSeaCatches;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -39,7 +40,7 @@ namespace CalamityMod.Items.Potions
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ItemID.Feather);
|
||||
recipe.AddIngredient(ItemID.SoulofFlight);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>());
|
||||
recipe.AddIngredient(ModContent.ItemType<SunkenSailfish>());
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Fishing.SunkenSeaCatches;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -35,17 +36,18 @@ namespace CalamityMod.Items.Potions
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.TitanPotion);
|
||||
recipe.AddIngredient(ItemID.TitanPotion, 4);
|
||||
recipe.AddIngredient(ItemID.BeetleHusk);
|
||||
recipe.AddIngredient(ModContent.ItemType<SunkenSailfish>());
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 10);
|
||||
recipe.AddIngredient(ItemID.BottledWater, 4);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 40);
|
||||
recipe.AddIngredient(ItemID.BeetleHusk);
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.SetResult(this, 4);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,13 +71,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 50);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 30);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 30);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 25);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<BlightedEyeball>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Tools
|
||||
item.damage = 20;
|
||||
item.melee = true;
|
||||
item.width = 44;
|
||||
item.height = 46;
|
||||
item.height = 44;
|
||||
item.useTime = 26;
|
||||
item.useAnimation = 26;
|
||||
item.useTurn = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 626 B After Width: | Height: | Size: 664 B |
|
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 656 B |
@@ -65,14 +65,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
recipe.AddIngredient(ModContent.ItemType<NuclearFury>());
|
||||
recipe.AddIngredient(ModContent.ItemType<RelicofRuin>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TearsofHeaven>());
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 628 B After Width: | Height: | Size: 507 B |
@@ -102,14 +102,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
recipe.AddIngredient(ModContent.ItemType<PhantasmalFury>());
|
||||
recipe.AddIngredient(ModContent.ItemType<ShadowboltStaff>());
|
||||
recipe.AddIngredient(ModContent.ItemType<HeliumFlash>());
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 607 B After Width: | Height: | Size: 555 B |
@@ -106,12 +106,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<FourSeasonsGalaxia>());
|
||||
recipe.AddIngredient(ModContent.ItemType<ArkoftheElements>());
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -128,14 +128,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
recipe.AddIngredient(ModContent.ItemType<FlarefrostBlade>());
|
||||
recipe.AddIngredient(ModContent.ItemType<PhoenixBlade>());
|
||||
recipe.AddIngredient(ModContent.ItemType<StellarStriker>());
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -61,14 +61,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
r.AddIngredient(ModContent.ItemType<BallOFugu>());
|
||||
r.AddIngredient(ModContent.ItemType<Tumbleweed>());
|
||||
r.AddIngredient(ModContent.ItemType<UrchinFlail>());
|
||||
r.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 10);
|
||||
r.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
r.AddRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<AuricBar>(), 8);
|
||||
r.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 54;
|
||||
item.width = 46;
|
||||
item.damage = 65;
|
||||
item.melee = true;
|
||||
item.useAnimation = 18;
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 6;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 52;
|
||||
item.height = 56;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
item.shoot = ModContent.ProjectileType<SandBlade>();
|
||||
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 995 B After Width: | Height: | Size: 942 B |
@@ -59,14 +59,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
r.AddIngredient(ModContent.ItemType<Chaotrix>());
|
||||
r.AddIngredient(ModContent.ItemType<Quagmire>());
|
||||
r.AddIngredient(ModContent.ItemType<Shimmerspark>());
|
||||
r.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
|
||||
r.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 3);
|
||||
r.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
r.AddRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
r.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 960 B After Width: | Height: | Size: 930 B |
@@ -112,11 +112,8 @@ Right click to fire two devastating barrages of five empowered fireballs.
|
||||
recipe.AddIngredient(ModContent.ItemType<ChickenCannon>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<AngryChickenStaff>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<YharimsGift>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 40);
|
||||
recipe.AddIngredient(ModContent.ItemType<EffulgentFeather>(), 60);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 30);
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 30);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 30);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<EffulgentFeather>(), 60);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
|
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 807 B |
@@ -95,14 +95,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
recipe.AddIngredient(ModContent.ItemType<Phangasm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<PlanetaryAnnihilation>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TheBallista>());
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -68,14 +68,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
recipe.AddIngredient(ModContent.ItemType<ElementalEruption>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CleansingBlaze>());
|
||||
recipe.AddIngredient(ModContent.ItemType<HalleysInferno>());
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 963 B After Width: | Height: | Size: 1.7 KiB |
@@ -45,14 +45,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
recipe.AddIngredient(ModContent.ItemType<ExecutionersBlade>());
|
||||
recipe.AddIngredient(ModContent.ItemType<Pwnagehammer>());
|
||||
recipe.AddIngredient(ModContent.ItemType<LuminousStriker>());
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 604 B After Width: | Height: | Size: 519 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -94,14 +94,8 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
recipe.AddIngredient(ModContent.ItemType<AncientIceChunk>());
|
||||
recipe.AddIngredient(ModContent.ItemType<ElementalAxe>());
|
||||
recipe.AddIngredient(ModContent.ItemType<EnergyStaff>());
|
||||
recipe.AddIngredient(ModContent.ItemType<NightmareFuel>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarksunFragment>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricOre>(), 25);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 4);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -583,18 +583,18 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
if (!Main.expertMode)
|
||||
{
|
||||
// Materials
|
||||
DropHelper.DropItemCondition(npc, ItemID.SoulofSight, Main.hardMode, 20, 40);
|
||||
DropHelper.DropItem(npc, ItemID.SoulofSight, 20, 40);
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<VictoryShard>(), 11, 20);
|
||||
DropHelper.DropItem(npc, ItemID.Coral, 5, 9);
|
||||
DropHelper.DropItem(npc, ItemID.Seashell, 5, 9);
|
||||
DropHelper.DropItem(npc, ItemID.Starfish, 5, 9);
|
||||
|
||||
// Weapons (Hardmode only)
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<SubmarineShocker>(), Main.hardMode, 4, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Barinautical>(), Main.hardMode, 4, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Downpour>(), Main.hardMode, 4, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DeepseaStaff>(), Main.hardMode, 4, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<ScourgeoftheSeas>(), Main.hardMode, 4, 1, 1);
|
||||
// Weapons
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<SubmarineShocker>(), 4);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Barinautical>(), 4);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Downpour>(), 4);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<DeepseaStaff>(), 4);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<ScourgeoftheSeas>(), 4);
|
||||
|
||||
// Equipment
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<AeroStone>(), 9);
|
||||
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 303 B |
|
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 266 B |
|
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 592 B |
|
Before Width: | Height: | Size: 1000 B After Width: | Height: | Size: 977 B |
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 309 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 902 B |
|
Before Width: | Height: | Size: 604 B After Width: | Height: | Size: 519 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.0 KiB |
@@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Valkyrie");
|
||||
Main.projFrames[projectile.type] = 2;
|
||||
Main.projFrames[projectile.type] = 4;
|
||||
ProjectileID.Sets.MinionSacrificable[projectile.type] = true;
|
||||
ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true;
|
||||
}
|
||||
@@ -246,12 +246,12 @@ namespace CalamityMod.Projectiles.Summon
|
||||
}
|
||||
}
|
||||
projectile.frameCounter++;
|
||||
if (projectile.frameCounter > 14)
|
||||
if (projectile.frameCounter > 7)
|
||||
{
|
||||
projectile.frame++;
|
||||
projectile.frameCounter = 0;
|
||||
}
|
||||
if (projectile.frame > 1)
|
||||
if (projectile.frame > 3)
|
||||
{
|
||||
projectile.frame = 0;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.2 KiB |
@@ -0,0 +1,86 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
public class SerpentsBiteHook : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Serpent's Bite");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.CloneDefaults(ProjectileID.GemHookAmethyst);
|
||||
}
|
||||
|
||||
// Use this hook for hooks that can have multiple hooks mid-flight: Dual Hook, Web Slinger, Fish Hook, Static Hook, Lunar Hook
|
||||
public override bool? CanUseGrapple(Player player)
|
||||
{
|
||||
int hooksOut = 0;
|
||||
for (int l = 0; l < 1000; l++)
|
||||
{
|
||||
if (Main.projectile[l].active && Main.projectile[l].owner == Main.myPlayer && Main.projectile[l].type == projectile.type)
|
||||
{
|
||||
hooksOut++;
|
||||
}
|
||||
}
|
||||
if (hooksOut > 2) // This hook can have 3 hooks out.
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Amethyst Hook is 300, Static Hook is 600
|
||||
public override float GrappleRange()
|
||||
{
|
||||
return 450f;
|
||||
}
|
||||
|
||||
public override void NumGrappleHooks(Player player, ref int numHooks)
|
||||
{
|
||||
numHooks = 2;
|
||||
}
|
||||
|
||||
// default is 11, Lunar is 24
|
||||
public override void GrappleRetreatSpeed(Player player, ref float speed)
|
||||
{
|
||||
speed = 14f;
|
||||
}
|
||||
|
||||
public override void GrapplePullSpeed(Player player, ref float speed)
|
||||
{
|
||||
speed = 12;
|
||||
}
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
Vector2 playerCenter = Main.player[projectile.owner].MountedCenter;
|
||||
Vector2 center = projectile.Center;
|
||||
Vector2 distToProj = playerCenter - projectile.Center;
|
||||
float projRotation = distToProj.ToRotation() - 1.57f;
|
||||
float distance = distToProj.Length();
|
||||
while (distance > 30f && !float.IsNaN(distance))
|
||||
{
|
||||
distToProj.Normalize(); //get unit vector
|
||||
distToProj *= 24f; //speed = 24
|
||||
center += distToProj; //update draw position
|
||||
distToProj = playerCenter - center; //update distance
|
||||
distance = distToProj.Length();
|
||||
Color drawColor = lightColor;
|
||||
|
||||
//Draw chain
|
||||
spriteBatch.Draw(ModContent.GetTexture("CalamityMod/ExtraTextures/Chains/SerpentsBiteChain"), new Vector2(center.X - Main.screenPosition.X, center.Y - Main.screenPosition.Y),
|
||||
new Rectangle(0, 0, Main.chain30Texture.Width, Main.chain30Texture.Height), drawColor, projRotation,
|
||||
new Vector2(Main.chain30Texture.Width * 0.5f, Main.chain30Texture.Height * 0.5f), 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 303 B |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,40 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Fishing.SunkenSeaCatches;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.SunkenSea
|
||||
{
|
||||
public class SunkenCrateTile : ModTile
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Main.tileSolidTop[Type] = true;
|
||||
Main.tileLighted[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileTable[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
Main.tileWaterDeath[Type] = false;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Sunken Crate");
|
||||
AddMapEntry(new Color(106, 218, 230), name);
|
||||
dustType = 253;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
||||
{
|
||||
Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType<SunkenCrate>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Accessories.Wings;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using CalamityMod.Items.Fishing.SunkenSeaCatches;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
@@ -25,6 +26,7 @@ namespace CalamityMod
|
||||
EditFireGauntletRecipe();
|
||||
|
||||
AddPotionRecipes();
|
||||
AddCookedFood();
|
||||
AddToolRecipes();
|
||||
AddProgressionRecipes();
|
||||
AddEarlyGameWeaponRecipes();
|
||||
@@ -87,20 +89,6 @@ namespace CalamityMod
|
||||
r.SetResult(ItemID.LifeFruit);
|
||||
r.AddRecipe();
|
||||
|
||||
// Cooked Fish
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<TwinklingPollox>());
|
||||
r.AddTile(TileID.CookingPots);
|
||||
r.SetResult(2425);
|
||||
r.AddRecipe();
|
||||
|
||||
// Cooked Shrimp
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<ProcyonidPrawn>());
|
||||
r.AddTile(TileID.CookingPots);
|
||||
r.SetResult(2426);
|
||||
r.AddRecipe();
|
||||
|
||||
// Glass
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<AstralSand>(), 2);
|
||||
@@ -215,6 +203,35 @@ namespace CalamityMod
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Cooked Food
|
||||
private static void AddCookedFood()
|
||||
{
|
||||
ModRecipe r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<TwinklingPollox>());
|
||||
r.AddTile(TileID.CookingPots);
|
||||
r.SetResult(ItemID.CookedFish);
|
||||
r.AddRecipe();
|
||||
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<PrismaticGuppy>());
|
||||
r.AddTile(TileID.CookingPots);
|
||||
r.SetResult(ItemID.CookedFish);
|
||||
r.AddRecipe();
|
||||
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<ScarredAngelfish>());
|
||||
r.AddTile(TileID.CookingPots);
|
||||
r.SetResult(ItemID.CookedFish);
|
||||
r.AddRecipe();
|
||||
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ModContent.ItemType<ProcyonidPrawn>());
|
||||
r.AddTile(TileID.CookingPots);
|
||||
r.SetResult(ItemID.CookedShrimp);
|
||||
r.AddRecipe();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Tools
|
||||
// Essential tools such as the Magic Mirror and Rod of Discord
|
||||
private static void AddToolRecipes()
|
||||
|
||||