This commit is contained in:
mountaindrew10 committed 2023-02-27 20:27:39 -06:00
commit 4dea2bb9bd
12 files changed
+18 -93

No files matched your search

+2 -9
View File
@@ -141,7 +141,6 @@ namespace CalamityMod.CalPlayer
fishList.AddWithCondition<int>(ItemID.Prismite, Player.ZoneHallow);
fishList.AddWithCondition<int>(ItemID.Damselfish, Player.ZoneSkyHeight);
fishList.AddWithCondition<int>(ModContent.ItemType<AldebaranAlewife>(), ZoneAstral);
fishList.AddWithCondition<int>(ModContent.ItemType<CoralskinFoolfish>(), ZoneSunkenSea);
fishList.AddWithCondition<int>(ModContent.ItemType<SunkenSailfish>(), ZoneSunkenSea);
fishList.AddWithCondition<int>(ModContent.ItemType<Shadowfish>(), !Main.dayTime && !Player.ZoneSkyHeight);
}
@@ -447,7 +446,7 @@ namespace CalamityMod.CalPlayer
{
if (attempt.uncommon && Main.rand.NextBool(7))
{
itemDrop = ModContent.ItemType<Xerocodile>();
itemDrop = ModContent.ItemType<Gorecodile>();
}
}
@@ -495,12 +494,7 @@ namespace CalamityMod.CalPlayer
}
else if (attempt.uncommon || attempt.rare || attempt.veryrare)
{
int uncommonCatch = Utils.SelectRandom(Main.rand, new int[]
{
ModContent.ItemType<SunkenSailfish>(),
ModContent.ItemType<CoralskinFoolfish>()
});
itemDrop = uncommonCatch;
itemDrop = ModContent.ItemType<SunkenSailfish>();
}
else
{
@@ -659,7 +653,6 @@ namespace CalamityMod.CalPlayer
ModContent.ItemType<Shadowfish>(),
ModContent.ItemType<BrimstoneFish>(),
ModContent.ItemType<AldebaranAlewife>(),
ModContent.ItemType<CoralskinFoolfish>(),
ModContent.ItemType<SunkenSailfish>(),
};
@@ -5,11 +5,12 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
public class Xerocodile : ModItem
[LegacyName("Xerocodile")]
public class Gorecodile : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Xerocodile");
DisplayName.SetDefault("Gorecodile");
Tooltip.SetDefault("Right click to extract blood orbs");
SacrificeTotal = 10;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 623 B

@@ -1,31 +0,0 @@
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
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");
SacrificeTotal = 3;
ItemID.Sets.CanBePlacedOnWeaponRacks[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 28;
Item.height = 28;
Item.maxStack = 999;
Item.value = Item.sellPrice(silver: 7);
Item.rare = ItemRarityID.Green;
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.Fish;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 640 B

@@ -1,33 +0,0 @@
using CalamityMod.Tiles;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Placeables.Banners
{
public class AquaticAberrationBanner : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Aquatic Aberration");
}
public override void SetDefaults()
{
Item.width = 10;
Item.height = 24;
Item.maxStack = 99;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.rare = ItemRarityID.Blue;
Item.value = Item.buyPrice(0, 0, 10, 0);
Item.createTile = ModContent.TileType<MonsterBanner>();
Item.placeStyle = 10;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

+6 -3
View File
@@ -244,10 +244,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas
float radians = MathHelper.TwoPi / totalProjectiles;
float velocity = CalamityWorld.getFixedBoi ? 5f : 7f;
Vector2 spinningPoint = new Vector2(0f, -velocity);
for (int k = 0; k < totalProjectiles; k++)
if (Main.netMode != NetmodeID.MultiplayerClient)
{
Vector2 velocity2 = spinningPoint.RotatedBy(radians * k);
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, velocity2, type, damage, 0f, Main.myPlayer, 0f, 1f);
for (int k = 0; k < totalProjectiles; k++)
{
Vector2 velocity2 = spinningPoint.RotatedBy(radians * k);
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, velocity2, type, damage, 0f, Main.myPlayer, 0f, 1f);
}
}
for (int i = 0; i < 6; i++)
+6 -3
View File
@@ -239,10 +239,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas
float radians = MathHelper.TwoPi / totalProjectiles;
float velocity = CalamityWorld.getFixedBoi ? 5f : 7f;
Vector2 spinningPoint = new Vector2(0f, -velocity);
for (int k = 0; k < totalProjectiles; k++)
if (Main.netMode != NetmodeID.MultiplayerClient)
{
Vector2 velocity2 = spinningPoint.RotatedBy(radians * k);
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, velocity2, type, damage, 0f, Main.myPlayer, 0f, 1f);
for (int k = 0; k < totalProjectiles; k++)
{
Vector2 velocity2 = spinningPoint.RotatedBy(radians * k);
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, velocity2, type, damage, 0f, Main.myPlayer, 0f, 1f);
}
}
for (int i = 0; i < 6; i++)
+1 -1
View File
@@ -118,7 +118,7 @@ namespace CalamityMod.NPCs.Yharon
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Jungle,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("The loyal companion of the God-Hunter, they possess immense power compared to the Dragons of the past. This is likely partly due to fighting and training by their master's side.")
-5
View File
@@ -1125,11 +1125,6 @@ namespace CalamityMod
r.AddTile(TileID.CookingPots);
r.Register();
r = Recipe.Create(ItemID.SeafoodDinner);
r.AddIngredient(ModContent.ItemType<CoralskinFoolfish>(), 2);
r.AddTile(TileID.CookingPots);
r.Register();
r = Recipe.Create(ItemID.SeafoodDinner);
r.AddIngredient(ModContent.ItemType<SunkenSailfish>(), 2);
r.AddTile(TileID.CookingPots);
-6
View File
@@ -407,9 +407,6 @@ namespace CalamityMod
case 9:
item = ModContent.ItemType<MantisShrimpBanner>();
break;
case 10:
item = ModContent.ItemType<AquaticAberrationBanner>();
break;
case 12:
item = ModContent.ItemType<SeaUrchinBanner>();
break;
@@ -769,9 +766,6 @@ namespace CalamityMod
case 9:
npc = ModContent.NPCType<MantisShrimp>();
break;
case 10:
npc = ModContent.NPCType<AquaticAberration>();
break;
case 12:
npc = ModContent.NPCType<SeaUrchin>();
break;