Merge branch 'master' into weapons
No files matched your search
|
Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 550 B |
|
Before Width: | Height: | Size: 612 B After Width: | Height: | Size: 560 B |
|
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 537 B |
|
Before Width: | Height: | Size: 650 B After Width: | Height: | Size: 500 B |
|
Before Width: | Height: | Size: 634 B After Width: | Height: | Size: 528 B |
|
Before Width: | Height: | Size: 605 B After Width: | Height: | Size: 550 B |
@@ -296,6 +296,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool crysthamyr = false;
|
||||
public AndromedaPlayerState andromedaState;
|
||||
public int andromedaCripple;
|
||||
public const float UnicornSpeedNerfPower = 0.8f;
|
||||
#endregion
|
||||
|
||||
#region Pet
|
||||
@@ -2904,7 +2905,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (dsSetBonus)
|
||||
{
|
||||
Main.PlaySound(SoundID.Zombie, (int)player.position.X, (int)player.position.Y, 104);
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/DemonshadeEnrage"), player.Center);
|
||||
for (int num502 = 0; num502 < 36; num502++)
|
||||
{
|
||||
int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, (int)CalamityDusts.Brimstone, 0f, 0f, 0, default, 1f);
|
||||
@@ -5691,9 +5692,6 @@ namespace CalamityMod.CalPlayer
|
||||
theBeeCooldown = 600;
|
||||
}
|
||||
|
||||
if (!CalamityWorld.downedBossAny)
|
||||
contactDamageReduction += 0.2;
|
||||
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
if (CalamityConfig.Instance.Rippers)
|
||||
@@ -5968,10 +5966,6 @@ namespace CalamityMod.CalPlayer
|
||||
damage = (int)(damage * 0.65);
|
||||
}
|
||||
|
||||
// Reduce the bullshit damage Ichor Stickers do
|
||||
if (proj.type == ProjectileID.GoldenShowerHostile)
|
||||
damage = (int)(damage * 0.35);
|
||||
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
double damageMultiplier = 1D;
|
||||
@@ -6100,12 +6094,6 @@ namespace CalamityMod.CalPlayer
|
||||
projectileDamageReduction += 0.25;
|
||||
}
|
||||
|
||||
if (Main.hardMode && Main.expertMode && !CalamityWorld.spawnedHardBoss && proj.active && !proj.friendly && proj.hostile && damage > 0)
|
||||
{
|
||||
if (CalamityLists.hardModeNerfList.Contains(proj.type))
|
||||
projectileDamageReduction += 0.25;
|
||||
}
|
||||
|
||||
if (trinketOfChiBuff)
|
||||
projectileDamageReduction += 0.15;
|
||||
|
||||
@@ -6132,9 +6120,6 @@ namespace CalamityMod.CalPlayer
|
||||
theBeeCooldown = 600;
|
||||
}
|
||||
|
||||
if (!CalamityWorld.downedBossAny)
|
||||
projectileDamageReduction += 0.2;
|
||||
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
if (CalamityConfig.Instance.Rippers)
|
||||
|
||||
@@ -695,16 +695,17 @@ namespace CalamityMod
|
||||
|
||||
hardModeNerfList = new List<int>()
|
||||
{
|
||||
ProjectileID.WebSpit,
|
||||
ProjectileID.PinkLaser,
|
||||
ProjectileID.FrostBlastHostile,
|
||||
ProjectileID.RuneBlast,
|
||||
ProjectileID.GoldenShowerHostile,
|
||||
ProjectileID.RainNimbus,
|
||||
ProjectileID.Stinger,
|
||||
ProjectileID.FlamingArrow,
|
||||
ProjectileID.BulletDeadeye,
|
||||
ProjectileID.CannonballHostile
|
||||
ProjectileID.CannonballHostile,
|
||||
ProjectileID.UnholyTridentHostile,
|
||||
ProjectileID.FrostBeam,
|
||||
ProjectileID.CursedFlameHostile,
|
||||
ProjectileID.Stinger
|
||||
};
|
||||
|
||||
debuffList = new List<int>()
|
||||
|
||||
@@ -119,6 +119,8 @@ namespace CalamityMod
|
||||
rainOriginal = Main.rainTexture;
|
||||
manaOriginal = Main.manaTexture;
|
||||
carpetOriginal = Main.flyingCarpetTexture;
|
||||
Mount.mounts[Mount.Unicorn].dashSpeed *= CalamityPlayer.UnicornSpeedNerfPower;
|
||||
Mount.mounts[Mount.Unicorn].runSpeed *= CalamityPlayer.UnicornSpeedNerfPower;
|
||||
|
||||
NormalityRelocatorHotKey = RegisterHotKey("Normality Relocator", "Z");
|
||||
RageHotKey = RegisterHotKey("Rage Mode", "V");
|
||||
@@ -282,6 +284,8 @@ namespace CalamityMod
|
||||
Main.manaTexture = manaOriginal;
|
||||
Main.flyingCarpetTexture = carpetOriginal;
|
||||
}
|
||||
Mount.mounts[Mount.Unicorn].dashSpeed /= CalamityPlayer.UnicornSpeedNerfPower;
|
||||
Mount.mounts[Mount.Unicorn].runSpeed /= CalamityPlayer.UnicornSpeedNerfPower;
|
||||
|
||||
heartOriginal2 = null;
|
||||
heartOriginal = null;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace CalamityMod.DataStructures
|
||||
{
|
||||
public abstract class BaseBossSpawnContext
|
||||
{
|
||||
public abstract Vector2 DetermineSpawnPosition(Vector2 relativePosition);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace CalamityMod.DataStructures
|
||||
{
|
||||
public class ExactPositionBossSpawnContext : BaseBossSpawnContext
|
||||
{
|
||||
public override Vector2 DetermineSpawnPosition(Vector2 relativePosition) => relativePosition;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
|
||||
namespace CalamityMod.DataStructures
|
||||
{
|
||||
public class OffscreenBossSpawnContext : BaseBossSpawnContext
|
||||
{
|
||||
public override Vector2 DetermineSpawnPosition(Vector2 relativePosition)
|
||||
{
|
||||
Vector2 exactPosition = relativePosition;
|
||||
|
||||
// Determine the position based on a circlular offset that is always 10% away from the screen points.
|
||||
exactPosition += Main.rand.NextVector2CircularEdge(Main.screenWidth, Main.screenHeight) * (float)Math.Sqrt(2f) * 1.1f * 0.5f;
|
||||
return exactPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 522 B |
|
After Width: | Height: | Size: 410 B |
|
After Width: | Height: | Size: 329 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 647 B |
|
After Width: | Height: | Size: 569 B |
|
After Width: | Height: | Size: 483 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 251 B |
|
After Width: | Height: | Size: 337 B |
|
After Width: | Height: | Size: 299 B |
|
After Width: | Height: | Size: 312 B |
|
After Width: | Height: | Size: 335 B |
|
After Width: | Height: | Size: 463 B |
|
After Width: | Height: | Size: 365 B |
|
After Width: | Height: | Size: 318 B |
|
After Width: | Height: | Size: 436 B |
|
After Width: | Height: | Size: 493 B |
|
After Width: | Height: | Size: 527 B |
|
After Width: | Height: | Size: 248 B |
|
After Width: | Height: | Size: 209 B |
|
After Width: | Height: | Size: 577 B |
|
Before Width: | Height: | Size: 456 B After Width: | Height: | Size: 489 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 613 B |
@@ -2,6 +2,7 @@ using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -17,12 +18,12 @@ namespace CalamityMod.Items.Accessories
|
||||
"Healing Potions are 15% more effective\n" +
|
||||
"Halves enemy contact damage\n" +
|
||||
"When you take contact damage this effect has a 20 second cooldown");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 4));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.width = item.height = 48;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Red;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -19,13 +19,13 @@ namespace CalamityMod.Items.Accessories
|
||||
"During the day the player has +3 life regen\n" +
|
||||
"During the night the player has +15 defense\n" +
|
||||
"Both of these bonuses are granted during an eclipse");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 5));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.width = 40;
|
||||
item.height = 28;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.defense = 10;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 886 B After Width: | Height: | Size: 798 B |
|
Before Width: | Height: | Size: 675 B After Width: | Height: | Size: 1.0 KiB |
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 30;
|
||||
item.height = 38;
|
||||
item.width = 42;
|
||||
item.height = 48;
|
||||
item.value = CalamityGlobalItem.Rarity9BuyPrice;
|
||||
item.expert = true;
|
||||
item.rare = ItemRarityID.Cyan;
|
||||
|
||||
|
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 825 B |
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories
|
||||
if (!Main.dayTime)
|
||||
{
|
||||
Lighting.AddLight((int)(player.position.X + (float)(player.width / 2)) / 16, (int)(player.position.Y + (float)(player.height / 2)) / 16, 1f, 1f, 0.6f);
|
||||
player.lifeRegen += 1;
|
||||
player.lifeRegen += 4;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 559 B After Width: | Height: | Size: 626 B |
@@ -2,6 +2,7 @@ using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
@@ -11,12 +12,13 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Unstable Prism");
|
||||
Tooltip.SetDefault("Three sparks are released on critical hits");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(7, 5));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 22;
|
||||
item.height = 38;
|
||||
item.width = 40;
|
||||
item.height = 44;
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
item.rare = ItemRarityID.Orange;
|
||||
item.accessory = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 597 B After Width: | Height: | Size: 1.8 KiB |
@@ -93,7 +93,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralBar>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<HadarianMembrane>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<HadarianMembrane>(), 8);
|
||||
recipe.AddIngredient(ItemID.SoulofFlight, 20);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Ammo
|
||||
item.damage = 14;
|
||||
item.ranged = true;
|
||||
item.consumable = true;
|
||||
item.width = 14;
|
||||
item.width = 18;
|
||||
item.height = 50;
|
||||
item.knockBack = 2.5f;
|
||||
item.value = Item.buyPrice(0, 0, 0, 80);
|
||||
|
||||
|
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 777 B |
@@ -17,8 +17,8 @@ namespace CalamityMod.Items.Ammo
|
||||
item.damage = 10;
|
||||
item.ranged = true;
|
||||
item.consumable = true;
|
||||
item.width = 18;
|
||||
item.height = 16;
|
||||
item.width = 14;
|
||||
item.height = 20;
|
||||
item.knockBack = 2f;
|
||||
item.value = Item.buyPrice(0, 0, 0, 80);
|
||||
item.rare = ItemRarityID.LightPurple;
|
||||
|
||||
|
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 398 B |
@@ -16,8 +16,7 @@ namespace CalamityMod.Items.DifficultyItems
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 28;
|
||||
item.width = item.height = 54;
|
||||
item.maxStack = 99;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
item.useAnimation = 45;
|
||||
|
||||
|
Before Width: | Height: | Size: 880 B After Width: | Height: | Size: 1.6 KiB |
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.DifficultyItems
|
||||
"You gain Rage when you take damage or by using special items.\n" +
|
||||
"ADRENALINE TOOLTIP LINE HERE\n" +
|
||||
"You gain Adrenaline whenever a boss is alive. Getting hit drops Adrenaline back to 0.\n" +
|
||||
"All enemies drop 50% more cash and spawn 15% more frequently\n" +
|
||||
"All enemies drop 50% more coins and spawn 15% more frequently\n" +
|
||||
"Certain enemies and projectiles deal between 5% and 25% more damage.\n" +
|
||||
"Makes certain enemies block life steal and nerfs the effectiveness of life steal.\n" +
|
||||
"Nerfs the effectiveness of the Titanium Armor set bonus.\n" +
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
@@ -9,6 +10,7 @@ namespace CalamityMod.Items.Materials
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ashes of Calamity");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 5));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 469 B |
@@ -1,6 +1,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
@@ -9,6 +10,7 @@ namespace CalamityMod.Items.Materials
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Stormlion Mandible");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
|
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 770 B |
|
Before Width: | Height: | Size: 566 B After Width: | Height: | Size: 645 B |
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 497 B |
|
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 539 B |
|
Before Width: | Height: | Size: 595 B After Width: | Height: | Size: 793 B |
|
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 311 B |
|
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 703 B |
|
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 400 B |
|
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 445 B |
|
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 818 B |
|
Before Width: | Height: | Size: 585 B After Width: | Height: | Size: 669 B |
|
Before Width: | Height: | Size: 549 B After Width: | Height: | Size: 634 B |
|
Before Width: | Height: | Size: 513 B After Width: | Height: | Size: 773 B |
|
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 629 B |
|
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 551 B |
|
Before Width: | Height: | Size: 519 B After Width: | Height: | Size: 840 B |
|
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 433 B |
|
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 677 B |
|
Before Width: | Height: | Size: 561 B After Width: | Height: | Size: 829 B |
@@ -0,0 +1,33 @@
|
||||
using CalamityMod.Tiles.FurnitureStratus;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureStratus
|
||||
{
|
||||
public class StratusStarPlatformItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults() => DisplayName.SetDefault("Stratus Star Platform");
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.maxStack = 999;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.createTile = ModContent.TileType<StratusStarPlatform>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<StratusBricks>(), 1);
|
||||
recipe.SetResult(this, 2);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 336 B |
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 497 B |
|
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 549 B |
|
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 347 B |
|
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 609 B |
|
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 483 B |
|
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 562 B |
|
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 629 B |
|
Before Width: | Height: | Size: 381 B After Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 444 B |
|
Before Width: | Height: | Size: 643 B After Width: | Height: | Size: 695 B |
|
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 650 B |
|
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 473 B |
|
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 445 B |
|
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 520 B |
|
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 485 B |
|
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 563 B |
|
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 463 B |