Merge pull request #85 from UncleDanny/fixes-and-balancing

Countless minor fixes and balances.
This commit is contained in:
Cameron Ewell authored and GitHub committed 2020-05-29 22:31:45 -04:00
commit 9badb76083
168 files changed
+1195 -2548

No files matched your search

+33 -18
View File
@@ -52,6 +52,7 @@ using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
using Terraria.ModLoader.Config;
namespace CalamityMod.CalPlayer
{
@@ -82,6 +83,7 @@ namespace CalamityMod.CalPlayer
#region No Category
public static bool areThereAnyDamnBosses = false;
public static bool areThereAnyDamnEvents = false;
public bool drawBossHPBar = true;
public bool shouldDrawSmallText = true;
private const int saveVersion = 0;
@@ -93,10 +95,12 @@ namespace CalamityMod.CalPlayer
public int actualMaxLife = 0;
public int deathModeUnderworldTime = 0;
public int deathModeBlizzardTime = 0;
public static int chaosStateDuration = 600;
public static int chaosStateDuration = 360;
public static int chaosStateDurationBoss = 600;
public bool killSpikyBalls = false;
public Projectile lastProjectileHit;
public double acidRoundMultiplier = 1D;
public int waterLeechTarget = -1;
#endregion
#region External variables -- Only set by Mod.Call
@@ -191,6 +195,7 @@ namespace CalamityMod.CalPlayer
public int profanedSoulWeaponType = 0;
public int hurtSoundTimer = 0;
public int danceOfLightCharge = 0;
public int shadowPotCooldown = 0;
#endregion
#region Sound
@@ -1898,6 +1903,7 @@ namespace CalamityMod.CalPlayer
planarSpeedBoost = 0;
galileoCooldown = 0;
soundCooldown = 0;
shadowPotCooldown = 0;
rage = 0;
adrenaline = 0;
raiderStack = 0;
@@ -2350,6 +2356,10 @@ namespace CalamityMod.CalPlayer
ZoneSulphur = (CalamityWorld.sulphurTiles > 30 || (player.ZoneOverworldHeight && sulphurPosX)) && !ZoneAbyss;
//Overriding 1.4's ass req boosts
if (Main.snowTiles > 300)
player.ZoneSnow = true;
Mod fargos = ModLoader.GetMod("Fargowiltas");
if (fargos != null)
{
@@ -2513,12 +2523,14 @@ namespace CalamityMod.CalPlayer
player.Teleport(teleportLocation, 4, 0);
NetMessage.SendData(65, -1, -1, null, 0, (float)player.whoAmI, teleportLocation.X, teleportLocation.Y, 1, 0, 0);
int duration = chaosStateDuration;
if (areThereAnyDamnBosses || areThereAnyDamnEvents)
duration = chaosStateDurationBoss;
if (eScarfCooldown)
player.AddBuff(BuffID.ChaosState, (int)(chaosStateDuration * 1.5), true);
else if (scarfCooldown)
player.AddBuff(BuffID.ChaosState, chaosStateDuration * 2, true);
else
player.AddBuff(BuffID.ChaosState, chaosStateDuration, true);
duration = (int)(chaosStateDuration * 1.5);
else if (scarfCooldown)
duration = chaosStateDuration * 2;
player.AddBuff(BuffID.ChaosState, duration, true);
}
}
}
@@ -2566,12 +2578,14 @@ namespace CalamityMod.CalPlayer
player.Teleport(teleportLocation, 1, 0);
NetMessage.SendData(65, -1, -1, null, 0, (float)player.whoAmI, teleportLocation.X, teleportLocation.Y, 1, 0, 0);
if (eScarfCooldown)
player.AddBuff(BuffID.ChaosState, (int)(chaosStateDuration * 1.5), true);
else if (scarfCooldown)
player.AddBuff(BuffID.ChaosState, chaosStateDuration * 2, true);
else
player.AddBuff(BuffID.ChaosState, chaosStateDuration, true);
int duration = chaosStateDuration;
if (areThereAnyDamnBosses || areThereAnyDamnEvents)
duration = chaosStateDurationBoss;
if (eScarfCooldown)
duration = (int)(chaosStateDuration * 1.5);
else if (scarfCooldown)
duration = chaosStateDuration * 2;
player.AddBuff(BuffID.ChaosState, duration, true);
int numDust = 40;
Vector2 step = playerToTeleport / numDust;
@@ -4012,9 +4026,9 @@ namespace CalamityMod.CalPlayer
acidRoundMultiplier = 1D;
}
//Prismatic Breaker is a weird hybrid melee-ranged weapon so include it too. Why are you using desert prowler post-Yharon? don't ask me
if (desertProwler && (item.ranged/* || item.type == ModContent.ItemType<PrismaticBreaker>()*/))
if (desertProwler && (item.ranged || item.type == ModContent.ItemType<PrismaticBreaker>()))
{
flat += 2f;
flat += 1f;
}
}
@@ -7768,7 +7782,7 @@ namespace CalamityMod.CalPlayer
float dashDistance;
if (dashMod == 1) //Counter and Evasion Scarf
{
dashDistance = evasionScarf ? 16.9f : 14.5f;
dashDistance = evasionScarf ? 16.3f : 14.5f;
int direction = 0;
bool justDashed = false;
if (dashTimeMod > 0)
@@ -8277,7 +8291,7 @@ namespace CalamityMod.CalPlayer
{
if (evasionScarf)
{
player.AddBuff(ModContent.BuffType<EvasionScarfBoost>(), CalamityUtils.SecondsToFrames(6f));
player.AddBuff(ModContent.BuffType<EvasionScarfBoost>(), CalamityUtils.SecondsToFrames(9f));
player.AddBuff(ModContent.BuffType<EvasionScarfCooldown>(), player.chaosState ? CalamityUtils.SecondsToFrames(20f) : CalamityUtils.SecondsToFrames(13f));
}
else
@@ -8822,8 +8836,8 @@ namespace CalamityMod.CalPlayer
}
public override void PreUpdate()
{
tailFrameUp++;
{
tailFrameUp++;
if (tailFrameUp == 8)
{
tailFrame++;
@@ -11122,6 +11136,7 @@ namespace CalamityMod.CalPlayer
int frame = HandlePSCAnimationFrames(animType);
player.legFrame.Y = player.legFrame.Height * frame;
}
waterLeechTarget = -1;
}
#endregion
+9 -3
View File
@@ -56,6 +56,9 @@ namespace CalamityMod.CalPlayer
// Bool for any existing bosses, true if any boss NPC is active
CalamityPlayer.areThereAnyDamnBosses = CalamityGlobalNPC.AnyBossNPCS();
// Bool for any existing events, true if any event is active
CalamityPlayer.areThereAnyDamnEvents = CalamityGlobalNPC.AnyEvents(player);
// If any boss NPC is active, apply Zen to the player to reduce spawn rate
if (CalamityPlayer.areThereAnyDamnBosses)
{
@@ -894,6 +897,8 @@ namespace CalamityMod.CalPlayer
modPlayer.galileoCooldown--;
if (modPlayer.soundCooldown > 0)
modPlayer.soundCooldown--;
if (modPlayer.shadowPotCooldown > 0)
modPlayer.shadowPotCooldown--;
if (modPlayer.raiderCooldown > 0)
modPlayer.raiderCooldown--;
if (modPlayer.gSabatonCooldown > 0)
@@ -3549,7 +3554,7 @@ namespace CalamityMod.CalPlayer
if (modPlayer.prismaticLasers > 1800 && player.whoAmI == Main.myPlayer)
{
float shootSpeed = 18f;
int dmg = (int)(150 * player.MagicDamage());
int dmg = (int)(50 * player.MagicDamage());
Vector2 startPos = player.RotatedRelativePoint(player.MountedCenter, true);
Vector2 velocity = Main.MouseWorld - startPos;
if (player.gravDir == -1f)
@@ -3568,7 +3573,7 @@ namespace CalamityMod.CalPlayer
travelDist = shootSpeed / travelDist;
}
int laserAmt = 2;
int laserAmt = Main.rand.Next(2);
for (int index = 0; index < laserAmt; index++)
{
startPos = new Vector2(player.Center.X + (float)(Main.rand.Next(201) * -(float)player.direction) + (Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y - 600f);
@@ -3590,7 +3595,8 @@ namespace CalamityMod.CalPlayer
velocity.Y *= travelDist;
velocity.X += (float)Main.rand.Next(-50, 51) * 0.02f;
velocity.Y += (float)Main.rand.Next(-50, 51) * 0.02f;
Projectile.NewProjectile(startPos, velocity, ModContent.ProjectileType<MagicNebulaShot>(), dmg, 4f, player.whoAmI, 0f, (float)Main.rand.Next(10));
int laser = Projectile.NewProjectile(startPos, velocity, ModContent.ProjectileType<MagicNebulaShot>(), dmg, 4f, player.whoAmI, 0f, Main.rand.Next(10));
Main.projectile[laser].localNPCHitCooldown = 5;
}
Main.PlaySound(SoundID.Item12, player.position);
}
+5 -2
View File
@@ -1303,7 +1303,9 @@ namespace CalamityMod
ItemID.WaspGun,
ItemID.Keybrand,
ItemID.PulseBow,
ItemID.PaladinsHammer
ItemID.PaladinsHammer,
ItemID.SolarEruption,
ItemID.DayBreak
};
thirtyThreeDamageBuffList = new List<int>()
@@ -1382,7 +1384,8 @@ namespace CalamityMod
ItemID.DD2BetsyBow,
ItemID.InfluxWaver,
ItemID.Xenopopper,
ItemID.ElectrosphereLauncher
ItemID.ElectrosphereLauncher,
ItemID.OpticStaff //Note: got local i frames so it should be better
};
pumpkinMoonBuffList = new List<int>()
+4 -4
View File
@@ -58,7 +58,7 @@ namespace CalamityMod.Events
{ ModContent.NPCType<Skyfin>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
{ ModContent.NPCType<Trilobite>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
{ ModContent.NPCType<WaterLeech>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
{ ModContent.NPCType<SulfurousSkater>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Anywhere) }
{ ModContent.NPCType<SulfurousSkater>(), new AcidRainSpawnData(1, 0.4f, AcidRainSpawnRequirement.Anywhere) }
};
public static Dictionary<int, AcidRainSpawnData> PossibleEnemiesPolter = new Dictionary<int, AcidRainSpawnData>()
@@ -71,7 +71,7 @@ namespace CalamityMod.Events
{ ModContent.NPCType<Skyfin>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
{ ModContent.NPCType<Trilobite>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
{ ModContent.NPCType<WaterLeech>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Water) },
{ ModContent.NPCType<SulfurousSkater>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Anywhere) },
{ ModContent.NPCType<SulfurousSkater>(), new AcidRainSpawnData(1, 0.4f, AcidRainSpawnRequirement.Anywhere) },
{ ModContent.NPCType<GammaSlime>(), new AcidRainSpawnData(1, 1f, AcidRainSpawnRequirement.Anywhere) }
};
@@ -132,9 +132,9 @@ namespace CalamityMod.Events
}
}
if (CalamityWorld.downedPolterghast)
return (int)(180 * Math.Log(playerCount + Math.E - 1));
return (int)(140 * Math.Log(playerCount + Math.E - 1));
else if (CalamityWorld.downedAquaticScourge)
return (int)(125 * Math.Log(playerCount + Math.E - 1));
return (int)(115 * Math.Log(playerCount + Math.E - 1));
else
return (int)(90 * Math.Log(playerCount + Math.E - 1));
}
+1 -2
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories
{
DisplayName.SetDefault("Asgard's Valor");
Tooltip.SetDefault("Grants immunity to fire blocks and knockback\n" +
"Immune to most debuffs including Brimstone Flames, Holy Flames, and Glacial State\n" +
"Immune to most debuffs including Brimstone Flames, and Glacial State\n" +
"10% damage reduction while submerged in liquid\n" +
"+20 max life\n" +
"Grants a holy dash which can be used to ram enemies\n" +
@@ -51,7 +51,6 @@ namespace CalamityMod.Items.Accessories
player.buffImmune[BuffID.Cursed] = true;
player.buffImmune[BuffID.Darkness] = true;
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
player.statLifeMax2 += 20;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
+1 -1
View File
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Accessories
}
if (player.ownedProjectileCounts[ProjectileType<HowlsHeartHowl>()] < 1)
{
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ProjectileType<HowlsHeartHowl>(), (int)(HowlDamage * player.MinionDamage()), 1f, player.whoAmI, 0f, 0f);
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ProjectileType<HowlsHeartHowl>(), (int)(HowlDamage * player.MinionDamage()), 1f, player.whoAmI, 0f, 1f);
}
if (player.ownedProjectileCounts[ProjectileType<HowlsHeartCalcifer>()] < 1)
{
+4
View File
@@ -97,6 +97,10 @@ namespace CalamityMod.Items.Accessories
{
WaterBonuses = true;
}
else if (!player.IsUnderwater())
{
WaterBonuses = false;
}
}
}
if (WaterBonuses || player.IsUnderwater())
+1 -1
View File
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Armor
public override void UpdateArmorSet(Player player)
{
player.setBonus = "Ranged attacks deal an extra 2 flat damage\n" +
player.setBonus = "Ranged attacks deal an extra 1 flat damage\n" +
"Ranged crits can rarely whip up a sandstorm";
CalamityPlayer modPlayer = player.Calamity();
modPlayer.desertProwler = true;
+7 -5
View File
@@ -966,12 +966,14 @@ namespace CalamityMod.Items
{
if (!Collision.SolidCollision(teleportLocation, player.width, player.height))
{
int duration = CalamityPlayer.chaosStateDuration;
if (CalamityPlayer.areThereAnyDamnBosses || CalamityPlayer.areThereAnyDamnEvents)
duration = CalamityPlayer.chaosStateDurationBoss;
if (modPlayer.eScarfCooldown)
player.AddBuff(BuffID.ChaosState, (int)(CalamityPlayer.chaosStateDuration * 1.5), true);
duration = (int)(CalamityPlayer.chaosStateDuration * 1.5);
else if (modPlayer.scarfCooldown)
player.AddBuff(BuffID.ChaosState, CalamityPlayer.chaosStateDuration * 2, true);
else
player.AddBuff(BuffID.ChaosState, CalamityPlayer.chaosStateDuration, true);
duration = CalamityPlayer.chaosStateDuration * 2;
player.AddBuff(BuffID.ChaosState, duration, true);
}
}
}
@@ -2816,7 +2818,7 @@ Provides heat and cold protection in Death Mode";
// Plantera
case ItemID.PlanteraBossBag:
DropHelper.DropItem(player, ModContent.ItemType<LivingShard>(), 8, 11);
DropHelper.DropItem(player, ModContent.ItemType<LivingShard>(), 16, 22);
float bFluxChance = DropHelper.LegendaryDropRateFloat;
DropHelper.DropItemCondition(player, ModContent.ItemType<BlossomFlux>(), CalamityWorld.revenge, bFluxChance);
DropHelper.DropItemChance(player, ItemID.JungleKey, 5);
+2 -5
View File
@@ -41,10 +41,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches
item.useStyle = 1;
}
public override bool CanRightClick()
{
return true;
}
public override bool CanRightClick() => true;
public override void RightClick(Player player)
{
@@ -65,7 +62,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches
}
// Weapons
DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedAstrageldon, 0.2f,
DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedAstrageldon,
ModContent.ItemType<StellarKnife>(),
ModContent.ItemType<AstralachneaStaff>(),
ModContent.ItemType<TitanArm>(),
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches
public override void SetDefaults()
{
item.damage = 60;
item.damage = 55;
item.ranged = true;
item.width = 38;
item.height = 34;
@@ -31,10 +31,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
item.useStyle = 1;
}
public override bool CanRightClick()
{
return true;
}
public override bool CanRightClick() => true;
public override void RightClick(Player player)
{
+24 -5
View File
@@ -4,6 +4,11 @@ using CalamityMod.Items.Pets;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.SummonItems.Invasion;
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.Abyss;
using CalamityMod.World;
using Terraria;
@@ -36,10 +41,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
item.useStyle = 1;
}
public override bool CanRightClick()
{
return true;
}
public override bool CanRightClick() => true;
public override void RightClick(Player player)
{
@@ -76,8 +78,25 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
DropHelper.DropItemChance(player, ModContent.ItemType<ReaperTooth>(), 0.25f, 5, 10);
}
// Weapons
DropHelper.DropItemFromSetCondition(player, NPC.downedBoss3,
ModContent.ItemType<Archerfish>(),
ModContent.ItemType<BallOFugu>(),
ModContent.ItemType<HerringStaff>(),
ModContent.ItemType<Lionfish>(),
ModContent.ItemType<BlackAnurian>());
DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedAquaticScourgeAcidRain,
ModContent.ItemType<SkyfinBombers>(),
ModContent.ItemType<NuclearRod>(),
ModContent.ItemType<SulphurousGrabber>(),
ModContent.ItemType<FlakToxicannon>(),
ModContent.ItemType<SpentFuelContainer>(),
ModContent.ItemType<SlitheringEels>(),
ModContent.ItemType<BelchingSaxophone>());
// Equipment
DropHelper.DropItemFromSetCondition(player, NPC.downedBoss3, 0.25f,
DropHelper.DropItemFromSetCondition(player, NPC.downedBoss3,
ModContent.ItemType<StrangeOrb>(),
ModContent.ItemType<DepthCharm>(),
ModContent.ItemType<IronBoots>(),
@@ -40,10 +40,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
item.useStyle = 1;
}
public override bool CanRightClick()
{
return true;
}
public override bool CanRightClick() => true;
public override void RightClick(Player player)
{
@@ -61,7 +58,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
}
// Weapons
DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedCLAM && Main.hardMode, 0.2f,
DropHelper.DropItemFromSetCondition(player, CalamityWorld.downedCLAM && Main.hardMode,
ModContent.ItemType<ShellfishStaff>(),
ModContent.ItemType<ClamCrusher>(),
ModContent.ItemType<Poseidon>(),
+1 -2
View File
@@ -18,7 +18,6 @@ namespace CalamityMod.Items.Mounts
mountData.fatigueMax = 0;
mountData.fallDamage = 0f;
mountData.runSpeed = 12f;
mountData.dashSpeed = 12f;
mountData.heightBoost = 44;
mountData.acceleration = 0.2f;
mountData.jumpHeight = 10;
@@ -56,7 +55,7 @@ namespace CalamityMod.Items.Mounts
mountData.swimFrameDelay = mountData.inAirFrameDelay;
mountData.swimFrameStart = mountData.inAirFrameStart;
mountData.dashSpeed = 25f;
mountData.dashSpeed = 18.5f;
mountData.dashingFrameCount = mountData.flyingFrameCount;
mountData.dashingFrameDelay = 5;
mountData.dashingFrameStart = mountData.flyingFrameStart;
+1 -2
View File
@@ -40,8 +40,7 @@ namespace CalamityMod.Items.Potions
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<Shadowfish>());
recipe.AddIngredient(ItemID.InvisibilityPotion);
recipe.AddIngredient(ItemID.AlchemyTable);
recipe.AddTile(TileID.Bottles);
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this, 2);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.TreasureBags
// Materials
DropHelper.DropItem(player, ModContent.ItemType<UnholyEssence>(), 25, 35);
DropHelper.DropItem(player, ModContent.ItemType<DivineGeode>(), 15, 25);
DropHelper.DropItem(player, ModContent.ItemType<DivineGeode>(), 20, 30);
// Weapons
DropHelper.DropItemChance(player, ModContent.ItemType<HolyCollider>(), 3);
+2 -2
View File
@@ -18,9 +18,9 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 60;
item.damage = 99;
item.magic = true;
item.mana = 12;
item.mana = 8;
item.width = 52;
item.height = 52;
item.useTime = 17;
+2 -2
View File
@@ -19,9 +19,9 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.width = 98;
item.damage = 45;
item.damage = 55;
item.magic = true;
item.mana = 14;
item.mana = 12;
item.useAnimation = 7;
item.useTime = 7;
item.useStyle = 5;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 36;
item.damage = 40;
item.magic = true;
item.mana = 17;
item.width = 56;
+2 -2
View File
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Magic
item.mana = 6;
item.width = 28;
item.height = 30;
item.useTime = 18;
item.useAnimation = 18;
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = 5;
item.noMelee = true;
item.knockBack = 3.5f;
+34 -38
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 20;
item.damage = 15;
item.magic = true;
item.mana = 7;
item.width = 34;
@@ -31,64 +31,60 @@ namespace CalamityMod.Items.Weapons.Magic
item.rare = 2;
item.UseSound = SoundID.Item8;
item.autoReuse = true;
item.shoot = 590;
item.shoot = ProjectileID.TruffleSpore;
item.shootSpeed = 1f;
}
public override Vector2? HoldoutOrigin()
{
return new Vector2(15, 15);
}
public override Vector2? HoldoutOrigin() => new Vector2(15, 15);
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int i = Main.myPlayer;
float num72 = item.shootSpeed;
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
Vector2 value = Vector2.UnitX.RotatedBy((double)player.fullRotation, default);
Vector2 vector3 = Main.MouseWorld + vector2;
float num78 = (float)Main.mouseX + Main.screenPosition.X + vector2.X;
float num79 = (float)Main.mouseY + Main.screenPosition.Y + vector2.Y;
float speed = item.shootSpeed;
Vector2 source = player.RotatedRelativePoint(player.MountedCenter, true);
float xDist = (float)Main.mouseX + Main.screenPosition.X + source.X;
float yDist = (float)Main.mouseY + Main.screenPosition.Y + source.Y;
Vector2 spawnVec = new Vector2(xDist, yDist);
if (player.gravDir == -1f)
{
num79 = Main.screenPosition.Y + (float)Main.screenHeight + (float)Main.mouseY + vector2.Y;
spawnVec.Y = Main.screenPosition.Y + (float)Main.screenHeight + (float)Main.mouseY + source.Y;
}
float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79));
if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f))
float distance = spawnVec.Length();
if ((float.IsNaN(spawnVec.X) && float.IsNaN(spawnVec.Y)) || (spawnVec.X == 0f && spawnVec.Y == 0f))
{
num78 = (float)player.direction;
num79 = 0f;
num80 = num72;
spawnVec.X = (float)player.direction;
spawnVec.Y = 0f;
distance = speed;
}
else
{
num80 = num72 / num80;
distance = speed / distance;
}
int num107 = 3;
for (int num108 = 0; num108 < num107; num108++)
int projAmt = 3;
for (int projIndex = 0; projIndex < projAmt; projIndex++)
{
vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y);
vector2.X = (vector2.X + player.Center.X) / 2f + (float)Main.rand.Next(-100, 101);
vector2.Y -= (float)(50 * num108);
num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X;
num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y;
if (num79 < 0f)
source = new Vector2(player.Center.X + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y);
source.X = (source.X + player.Center.X) / 2f + (float)Main.rand.Next(-100, 101);
source.Y -= (float)(50 * projIndex);
spawnVec.X = (float)Main.mouseX + Main.screenPosition.X - source.X;
spawnVec.Y = (float)Main.mouseY + Main.screenPosition.Y - source.Y;
if (spawnVec.Y < 0f)
{
num79 *= -1f;
spawnVec.Y *= -1f;
}
if (num79 < 20f)
if (spawnVec.Y < 20f)
{
num79 = 20f;
spawnVec.Y = 20f;
}
num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79));
num80 = num72 / num80;
num78 *= num80;
num79 *= num80;
float speedX4 = num78 + (float)Main.rand.Next(-180, 181) * 0.02f;
float speedY5 = num79 + (float)Main.rand.Next(-180, 181) * 0.02f;
int proj = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockBack, i, 0f, (float)Main.rand.Next(3));
distance = spawnVec.Length();
distance = speed / distance;
spawnVec.X *= distance;
spawnVec.Y *= distance;
spawnVec.X += (float)Main.rand.Next(-180, 181) * 0.02f;
spawnVec.Y += (float)Main.rand.Next(-180, 181) * 0.02f;
int proj = Projectile.NewProjectile(source, spawnVec, type, damage, knockBack, player.whoAmI, 0f, Main.rand.Next(3));
Main.projectile[proj].Calamity().forceMagic = true;
Main.projectile[proj].timeLeft = CalamityUtils.SecondsToFrames(8f);
}
return false;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 10;
item.damage = 12;
item.magic = true;
item.mana = 4;
item.width = 44;
@@ -1,6 +1,5 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -36,13 +35,6 @@ namespace CalamityMod.Items.Weapons.Melee
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceMelee = true;
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+2 -2
View File
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
if (target.type == NPCID.TargetDummy || !target.canGhostHeal)
if (target.type == NPCID.TargetDummy || !target.canGhostHeal || player.moonLeech)
{
return;
}
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
int healAmount = Main.rand.Next(3) + 1;
if (Main.rand.NextBool(2))
if (Main.rand.NextBool(2) && !player.moonLeech)
{
player.statLife += healAmount;
player.HealEffect(healAmount);
+2 -2
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
if (target.life <= 0)
if (target.life <= 0 && !player.moonLeech)
{
float randomSpeedX = (float)Main.rand.Next(3);
float randomSpeedY = (float)Main.rand.Next(3, 5);
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
if (target.statLife <= 0)
if (target.statLife <= 0 && !player.moonLeech)
{
float randomSpeedX = (float)Main.rand.Next(3);
float randomSpeedY = (float)Main.rand.Next(3, 5);
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.width = 44;
item.height = 44;
item.damage = 800;
item.damage = 666;
item.melee = true;
item.knockBack = 9f;
+3 -1
View File
@@ -92,7 +92,7 @@ namespace CalamityMod.Items.Weapons.Melee
Projectile.NewProjectile(startPos, velocity, ModContent.ProjectileType<Exocomet>(), (int)(item.damage * player.MeleeDamage()), knockback, player.whoAmI, 0f, ai1);
}
}
if (target.type == NPCID.TargetDummy || !target.canGhostHeal)
if (target.type == NPCID.TargetDummy || !target.canGhostHeal || player.moonLeech)
{
return;
}
@@ -134,6 +134,8 @@ namespace CalamityMod.Items.Weapons.Melee
Projectile.NewProjectile(startPos, velocity, ModContent.ProjectileType<Exocomet>(), (int)(item.damage * player.MeleeDamage()), item.knockBack, player.whoAmI, 0f, ai1);
}
}
if (player.moonLeech)
return;
int healAmount = Main.rand.Next(5) + 5;
player.statLife += healAmount;
player.HealEffect(healAmount);
+6 -4
View File
@@ -86,14 +86,14 @@ namespace CalamityMod.Items.Weapons.Melee
float speedY5 = num79 + (float)Main.rand.Next(-180, 181) * 0.02f;
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<EarthProj>(), (int)(item.damage * (player.allDamage + player.meleeDamage - 1f)), knockback, player.whoAmI, 0f, (float)Main.rand.Next(10));
}
if (target.type == NPCID.TargetDummy || !target.canGhostHeal)
{
return;
}
if (Main.rand.NextBool(2))
{
target.defense -= 50;
}
if (target.type == NPCID.TargetDummy || !target.canGhostHeal || player.moonLeech)
{
return;
}
int heal = Main.rand.Next(1, 69);
player.statLife += heal;
player.HealEffect(heal);
@@ -145,6 +145,8 @@ namespace CalamityMod.Items.Weapons.Melee
float speedY5 = num79 + (float)Main.rand.Next(-180, 181) * 0.02f;
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<EarthProj>(), (int)(item.damage * (player.allDamage + player.meleeDamage - 1f)), item.knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10));
}
if (player.moonLeech)
return;
int heal = Main.rand.Next(1, 69);
player.statLife += heal;
player.HealEffect(heal);
+4 -5
View File
@@ -63,10 +63,7 @@ namespace CalamityMod.Items.Weapons.Melee
return false;
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override bool AltFunctionUse(Player player) => true;
public override bool CanUseItem(Player player)
{
@@ -157,7 +154,7 @@ namespace CalamityMod.Items.Weapons.Melee
target.AddBuff(BuffID.Frostburn, 240);
target.AddBuff(BuffID.OnFire, 240);
target.AddBuff(BuffID.Ichor, 240);
if (target.type == NPCID.TargetDummy || !target.canGhostHeal)
if (target.type == NPCID.TargetDummy || !target.canGhostHeal || player.moonLeech)
{
return;
}
@@ -177,6 +174,8 @@ namespace CalamityMod.Items.Weapons.Melee
target.AddBuff(BuffID.Frostburn, 240);
target.AddBuff(BuffID.OnFire, 240);
target.AddBuff(BuffID.Ichor, 240);
if (player.moonLeech)
return;
int healAmount = Main.rand.Next(10) + 10;
player.statLife += healAmount;
player.HealEffect(healAmount);
-7
View File
@@ -36,13 +36,6 @@ namespace CalamityMod.Items.Weapons.Melee
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceMelee = true;
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Vector2 origin = new Vector2(31f, 29f);
-8
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -35,13 +34,6 @@ namespace CalamityMod.Items.Weapons.Melee
item.shootSpeed = 16f;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceMelee = true;
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+3 -3
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
target.defense -= 15;
}
if (target.defense <= 0 && target.canGhostHeal)
if (target.defense <= 0 && target.canGhostHeal && !player.moonLeech)
{
player.statLife += 4;
player.HealEffect(4);
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Weapons.Melee
Projectile.NewProjectile(player.Center.X, player.Center.Y, randomSpeedX, -randomSpeedY, ModContent.ProjectileType<RainBolt>(), (int)(item.damage * (player.allDamage + player.meleeDamage - 1f) * 0.75f), knockback, player.whoAmI);
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -randomSpeedY, ModContent.ProjectileType<RainBolt>(), (int)((float)item.damage * (player.allDamage + player.meleeDamage - 1f) * 0.75f), knockback, player.whoAmI);
}
if (target.life <= 0)
if (target.life <= 0 && !player.moonLeech)
{
float randomSpeedX = (float)Main.rand.Next(9);
float randomSpeedY = (float)Main.rand.Next(6, 15);
@@ -79,7 +79,7 @@ namespace CalamityMod.Items.Weapons.Melee
Projectile.NewProjectile(player.Center.X, player.Center.Y, randomSpeedX, -randomSpeedY, ModContent.ProjectileType<RainBolt>(), (int)(item.damage * (player.allDamage + player.meleeDamage - 1f) * 0.75f), item.knockBack, player.whoAmI);
Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -randomSpeedY, ModContent.ProjectileType<RainBolt>(), (int)((float)item.damage * (player.allDamage + player.meleeDamage - 1f) * 0.75f), item.knockBack, player.whoAmI);
}
if (target.statLife <= 0)
if (target.statLife <= 0 && !player.moonLeech)
{
float randomSpeedX = (float)Main.rand.Next(9);
float randomSpeedY = (float)Main.rand.Next(6, 15);
+3 -1
View File
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
if (target.type == NPCID.TargetDummy || !target.canGhostHeal)
if (target.type == NPCID.TargetDummy || !target.canGhostHeal || player.moonLeech)
{
return;
}
@@ -64,6 +64,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
if (player.moonLeech)
return;
player.statLife += 5;
player.HealEffect(5);
}
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee
target.defense -= 10;
// Healing effect does not trigger versus dummies
if (target.type == NPCID.TargetDummy)
if (target.type == NPCID.TargetDummy || player.moonLeech)
return;
if (target.defense <= 0 && target.canGhostHeal)
@@ -1,6 +1,5 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -34,13 +33,6 @@ namespace CalamityMod.Items.Weapons.Melee
item.shootSpeed = 16f;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceMelee = true;
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+1 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
public class Nadir : ModItem
{
public static int BaseDamage = 800;
public static int BaseDamage = 700;
public static float ShootSpeed = 12f;
public override void SetStaticDefaults()
+3 -4
View File
@@ -53,11 +53,10 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
item.damage = 400;
item.damage = 1200;
item.crit += 8;
item.useAnimation = 15;
item.useStyle = 1;
item.useTime = 15;
item.useTime = item.useAnimation = 15;
item.useTurn = true;
item.melee = true;
item.knockBack = 7f;
@@ -91,7 +90,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
if (player.altFunctionUse == 2)
{
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<PrismaticWave>(), damage * 2, knockBack, player.whoAmI, 0f, 0f);
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<PrismaticWave>(), (int)(damage * 1), knockBack, player.whoAmI, 0f, 0f);
}
else
{
-8
View File
@@ -1,5 +1,4 @@
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -34,13 +33,6 @@ namespace CalamityMod.Items.Weapons.Melee
item.shootSpeed = 12f;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceMelee = true;
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
item.width = 18;
item.damage = 1550;
item.damage = 1300;
item.melee = true;
item.noMelee = true;
item.noUseGraphic = true;
@@ -1,6 +1,5 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -33,13 +32,6 @@ namespace CalamityMod.Items.Weapons.Melee
item.shootSpeed = 11.5f;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceMelee = true;
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+2 -2
View File
@@ -20,10 +20,10 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
item.damage = 75;
item.damage = 80;
item.knockBack = 4.5f;
item.melee = true;
item.useAnimation = item.useTime = 15;
item.useAnimation = item.useTime = 14;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<TenebreusTidesProjectile>();
item.shootSpeed = 12f;
+3 -1
View File
@@ -69,7 +69,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
if (target.type == NPCID.TargetDummy || !target.canGhostHeal)
if (target.type == NPCID.TargetDummy || !target.canGhostHeal || player.moonLeech)
{
return;
}
@@ -80,6 +80,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
if (player.moonLeech)
return;
int healAmount = Main.rand.Next(2) + 2;
player.statLife += healAmount;
player.HealEffect(healAmount);
+3 -1
View File
@@ -91,7 +91,7 @@ namespace CalamityMod.Items.Weapons.Melee
target.AddBuff(BuffID.Frostburn, 600);
target.AddBuff(BuffID.OnFire, 600);
target.AddBuff(BuffID.Ichor, 300);
if (target.type == NPCID.TargetDummy || !target.canGhostHeal)
if (target.type == NPCID.TargetDummy || !target.canGhostHeal || player.moonLeech)
{
return;
}
@@ -110,6 +110,8 @@ namespace CalamityMod.Items.Weapons.Melee
target.AddBuff(BuffID.Frostburn, 600);
target.AddBuff(BuffID.OnFire, 600);
target.AddBuff(BuffID.Ichor, 300);
if (player.moonLeech)
return;
int healAmount = Main.rand.Next(3) + 2;
player.statLife += healAmount;
player.HealEffect(healAmount);
@@ -1,7 +1,6 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -37,13 +36,6 @@ namespace CalamityMod.Items.Weapons.Melee
item.Calamity().customRarity = CalamityRarity.Developer;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceMelee = true;
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+3 -1
View File
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
if (target.type == NPCID.TargetDummy)
if (target.type == NPCID.TargetDummy || player.moonLeech)
{
return;
}
@@ -67,6 +67,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitPvp(Player player, Player target, int damage, bool crit)
{
if (player.moonLeech)
return;
int healAmount = Main.rand.Next(6) + 1;
if (Main.rand.NextBool(2))
{
@@ -1,6 +1,5 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -18,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
item.width = 14;
item.damage = 81;
item.damage = 87;
item.noMelee = true;
item.noUseGraphic = true;
item.autoReuse = true;
@@ -35,13 +34,6 @@ namespace CalamityMod.Items.Weapons.Melee
item.shootSpeed = 14f;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceMelee = true;
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
item.damage = 300;
item.damage = 130;
item.melee = true;
item.rare = 8;
item.width = 72;
+3 -3
View File
@@ -18,10 +18,10 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 101;
item.damage = 49;
item.ranged = true;
item.useTime = 15;
item.useAnimation = 15;
item.useTime = 18;
item.useAnimation = 18;
item.knockBack = 2f;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<AuroraFire>();
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 32;
item.damage = 27;
item.ranged = true;
item.width = 64;
item.height = 30;
+15 -15
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 27;
item.damage = 31;
item.ranged = true;
item.width = 18;
item.height = 36;
@@ -38,26 +38,26 @@ namespace CalamityMod.Items.Weapons.Ranged
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
float num117 = 0.314159274f;
int num118 = 3;
Vector2 vector7 = new Vector2(speedX, speedY);
vector7.Normalize();
vector7 *= 40f;
bool flag11 = Collision.CanHit(vector2, 0, 0, vector2 + vector7, 0, 0);
for (int num119 = 0; num119 < num118; num119++)
Vector2 source = player.RotatedRelativePoint(player.MountedCenter, true);
float piOverTen = MathHelper.Pi * 0.1f;
int arrowAmt = 3;
Vector2 velocity = new Vector2(speedX, speedY);
velocity.Normalize();
velocity *= 40f;
bool canHit = Collision.CanHit(source, 0, 0, source + velocity, 0, 0);
for (int projIndex = 0; projIndex < arrowAmt; projIndex++)
{
float num120 = (float)num119 - ((float)num118 - 1f) / 2f;
Vector2 value9 = vector7.RotatedBy((double)(num117 * num120), default);
if (!flag11)
float num120 = (float)projIndex - ((float)arrowAmt - 1f) / 2f;
Vector2 offset = velocity.RotatedBy((double)(piOverTen * num120), default);
if (!canHit)
{
value9 -= vector7;
offset -= velocity;
}
if (type == ProjectileID.WoodenArrowFriendly)
{
type = ProjectileID.FireArrow;
}
int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
int num121 = Projectile.NewProjectile(source + offset, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f);
Main.projectile[num121].noDropItem = true;
}
for (int i = 0; i < 2; i++)
@@ -78,7 +78,7 @@ namespace CalamityMod.Items.Weapons.Ranged
default:
break;
}
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.5f), knockBack, player.whoAmI, 0f, 0f);
int index = Projectile.NewProjectile(position, new Vector2(SpeedX, SpeedY), type, (int)(damage * 0.5f), knockBack, player.whoAmI, 0f, 0f);
Main.projectile[index].noDropItem = true;
Main.projectile[index].usesLocalNPCImmunity = true;
Main.projectile[index].localNPCHitCooldown = 10;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 32;
item.damage = 27;
item.ranged = true;
item.crit += 20;
item.width = 36;
+2 -2
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 38;
item.damage = 45;
item.ranged = true;
item.width = 44;
item.height = 26;
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged
item.autoReuse = true;
item.shootSpeed = 9f;
item.shoot = ModContent.ProjectileType<NeedlerProj>();
item.useAmmo = 97;
item.useAmmo = AmmoID.Bullet;
}
public override Vector2? HoldoutOffset()
+6 -5
View File
@@ -20,12 +20,12 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 210;
item.damage = 200;
item.ranged = true;
item.width = 84;
item.height = 34;
item.useTime = 8;
item.useAnimation = 8;
item.useTime = 9;
item.useAnimation = 9;
item.useStyle = 5;
item.noMelee = true;
item.knockBack = 4.5f;
@@ -48,11 +48,12 @@ namespace CalamityMod.Items.Weapons.Ranged
{
// Fire the Onyx Shard that is characteristic of the Onyx Blaster
// The shard deals triple damage and double knockback
int shardDamage = 3 * damage;
int shardDamage = (int)(2.5 * damage);
float shardKB = 2f * knockBack;
float shardVelocityX = (speedX + (float)Main.rand.Next(-25, 26) * 0.05f) * 0.9f;
float shardVelocityY = (speedY + (float)Main.rand.Next(-25, 26) * 0.05f) * 0.9f;
Projectile.NewProjectile(position.X, position.Y, shardVelocityX, shardVelocityY, ProjectileID.BlackBolt, shardDamage, shardKB, player.whoAmI, 0f, 0f);
int onyx = Projectile.NewProjectile(position.X, position.Y, shardVelocityX, shardVelocityY, ProjectileID.BlackBolt, shardDamage, shardKB, player.whoAmI, 0f, 0f);
Main.projectile[onyx].timeLeft -= 20;
// Fire three symmetric pairs of bullets alongside it
Vector2 baseVelocity = new Vector2(speedX, speedY);
+5 -8
View File
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Ranged
item.ranged = true;
item.width = 76;
item.height = 32;
item.useTime = 20;
item.useAnimation = 20;
item.useTime = 22;
item.useAnimation = 22;
item.useStyle = 5;
item.noMelee = true;
item.knockBack = 4f;
@@ -31,17 +31,14 @@ namespace CalamityMod.Items.Weapons.Ranged
item.autoReuse = true;
item.shootSpeed = 30f;
item.shoot = ModContent.ProjectileType<RealmRavagerBullet>();
item.useAmmo = 97;
item.useAmmo = AmmoID.Bullet;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-10, 0);
}
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
for (int index = 0; index < 5; ++index)
for (int index = 0; index < Main.rand.Next(3,5); ++index) //3 to 4 bullets
{
float SpeedX = speedX + (float)Main.rand.Next(-75, 76) * 0.05f;
float SpeedY = speedY + (float)Main.rand.Next(-75, 76) * 0.05f;
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 5600;
item.damage = 2601;
item.ranged = true;
item.crit += 40;
item.knockBack = 10f;
+3 -5
View File
@@ -1,3 +1,4 @@
using CalamityMod.Projectiles.Rogue;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -34,10 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged
item.useAmmo = 931;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-10, 0);
}
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
public override bool ConsumeAmmo(Player player)
{
@@ -57,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Ranged
Main.projectile[projectile].timeLeft = 200;
Main.projectile[projectile].Calamity().forceRanged = true;
}
int proj = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ProjectileID.LostSoulFriendly, damage, knockBack, player.whoAmI, 0f, 0f);
int proj = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<LostSoulFriendly>(), damage, knockBack, player.whoAmI, 0f, 0f);
Main.projectile[proj].timeLeft = 600;
Main.projectile[proj].Calamity().forceRanged = true;
return false;
+2 -2
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 4000;
item.damage = 4200;
item.crit += 35;
item.knockBack = 9.5f;
item.ranged = true;
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<PiercingBullet>(), damage, knockBack, player.whoAmI, 0f, 0f);
Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<PiercingBullet>(), damage, knockBack, player.whoAmI, 0f, 0f);
return false;
}
}
+9
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -35,6 +36,14 @@ namespace CalamityMod.Items.Weapons.Rogue
item.Calamity().customRarity = CalamityRarity.Turquoise;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.damage = 100;
item.damage = 108;
item.shootSpeed = 15f;
item.shoot = ModContent.ProjectileType<ApoctolithProj>();
item.width = 66;
+2 -1
View File
@@ -46,7 +46,8 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f);
int dagger = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f);
Main.projectile[dagger].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
item.width = 50;
item.height = 50;
item.damage = 140;
item.damage = 120;
item.noMelee = true;
item.noUseGraphic = true;
item.autoReuse = true;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 44;
item.damage = 18;
item.damage = 16;
item.crit += 4;
item.noMelee = true;
item.noUseGraphic = true;
+2 -1
View File
@@ -94,7 +94,8 @@ namespace CalamityMod.Items.Weapons.Rogue
num149 *= num80;
float x4 = vector2.X;
float y4 = vector2.Y;
Projectile.NewProjectile(x4, y4, num148, num149, type, damage, knockBack, player.whoAmI, 0f, 1f);
int knife = Projectile.NewProjectile(x4, y4, num148, num149, type, damage, knockBack, player.whoAmI, 0f, 1f);
Main.projectile[knife].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
}
return false;
}
+8
View File
@@ -36,6 +36,14 @@ namespace CalamityMod.Items.Weapons.Rogue
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Vector2 origin = new Vector2(31f, 29f);
+9
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -34,6 +35,14 @@ namespace CalamityMod.Items.Weapons.Rogue
item.Calamity().rogue = true;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
@@ -47,6 +47,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
+15 -29
View File
@@ -48,44 +48,28 @@ Right click to delete all existing spiky balls");
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
if (player.ownedProjectileCounts[item.shoot] > 0)
{
return true;
}
else
{
return false;
}
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
item.shoot = 0;
item.shootSpeed = 0f;
return player.ownedProjectileCounts[ModContent.ProjectileType<GodsParanoiaProj>()] > 0;
}
else
{
item.shoot = ModContent.ProjectileType<GodsParanoiaProj>();
item.shootSpeed = 5f;
int UseMax = item.stack;
if (player.ownedProjectileCounts[item.shoot] >= UseMax)
{
return false;
}
else
{
return true;
}
return player.ownedProjectileCounts[ModContent.ProjectileType<GodsParanoiaProj>()] < UseMax;
}
}
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = false;
if (player.altFunctionUse == 2)
{
modPlayer.killSpikyBalls = true;
return false;
}
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike
{
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f);
Main.projectile[stealth].Calamity().stealthStrike = true;
@@ -96,6 +80,8 @@ Right click to delete all existing spiky balls");
public override bool AltFunctionUse(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = true;
return true;
}
+15 -30
View File
@@ -46,47 +46,30 @@ namespace CalamityMod.Items.Weapons.Rogue
item.shootSpeed = 5f;
item.shoot = ModContent.ProjectileType<HellsSunProj>();
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
if (player.ownedProjectileCounts[item.shoot] > 0)
{
return true;
}
else
{
return false;
}
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
item.shoot = 0;
item.shootSpeed = 0f;
return player.ownedProjectileCounts[ModContent.ProjectileType<HellsSunProj>()] > 0;
}
else
{
item.shoot = ModContent.ProjectileType<HellsSunProj>();
item.shootSpeed = 5f;
int UseMax = item.stack;
if (player.ownedProjectileCounts[item.shoot] >= UseMax)
{
return false;
}
else
{
return true;
}
return player.ownedProjectileCounts[ModContent.ProjectileType<HellsSunProj>()] < UseMax;
}
}
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = false;
if (player.altFunctionUse == 2)
{
modPlayer.killSpikyBalls = true;
return false;
}
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike
{
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<HellsSunProj>(), (int)(damage * SdamageMult), knockBack, player.whoAmI, 0f, 0f);
Main.projectile[stealth].Calamity().stealthStrike = true;
@@ -99,6 +82,8 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool AltFunctionUse(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = true;
return true;
}
+2 -2
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 40;
item.damage = 8;
item.damage = 7;
item.noMelee = true;
item.consumable = true;
item.noUseGraphic = true;
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue
item.autoReuse = false;
item.height = 36;
item.maxStack = 999;
item.value = 1000;
item.value = Item.buyPrice(0, 0, 1, 0);
item.rare = 0;
item.shoot = ModContent.ProjectileType<IronFranciscaProj>();
item.shootSpeed = 12f;
+2 -1
View File
@@ -43,7 +43,8 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f);
int proj = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f);
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
+2 -2
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 40;
item.damage = 8;
item.damage = 7;
item.noMelee = true;
item.consumable = true;
item.noUseGraphic = true;
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue
item.autoReuse = false;
item.height = 36;
item.maxStack = 999;
item.value = 1000;
item.value = Item.buyPrice(0, 0, 1, 0);
item.rare = 0;
item.shoot = ModContent.ProjectileType<LeadTomahawkProj>();
item.shootSpeed = 12f;
+9
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -33,6 +34,14 @@ namespace CalamityMod.Items.Weapons.Rogue
item.Calamity().rogue = true;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
@@ -49,6 +49,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
+17 -5
View File
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Weapons.Rogue
if (player.Calamity().StealthStrikeAvailable())
{
for (int j = 0; j < item.stack - player.ownedProjectileCounts[item.shoot]; j++)
for (int j = 0; j < item.stack - player.ownedProjectileCounts[ModContent.ProjectileType<NychthemeronProjectile>()]; j++)
{
float spread = 2;
int pIndex = Projectile.NewProjectile(position.X, position.Y, speedX + Main.rand.NextFloat(-spread, spread), speedY + Main.rand.NextFloat(-spread, spread), type, damage, knockBack, player.whoAmI, 0f, 1f);
@@ -79,10 +79,22 @@ namespace CalamityMod.Items.Weapons.Rogue
return false;
}
public override bool CanUseItem(Player player)
{
return player.ownedProjectileCounts[item.shoot] < item.stack && player.altFunctionUse != 2;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
item.shoot = 0;
item.shootSpeed = 0f;
return player.ownedProjectileCounts[ModContent.ProjectileType<NychthemeronProjectile>()] > 0;
}
else
{
item.shoot = ModContent.ProjectileType<NychthemeronProjectile>();
item.shootSpeed = 6f;
int UseMax = item.stack;
return player.ownedProjectileCounts[ModContent.ProjectileType<NychthemeronProjectile>()] < UseMax;
}
}
public override void AddRecipes()
{
+1 -1
View File
@@ -20,7 +20,7 @@ Stealth strikes don't slow down and souls always deal full damage");
public override void SafeSetDefaults()
{
item.damage = 60;
item.damage = 70;
item.knockBack = 5f;
item.width = 62;
+15 -30
View File
@@ -42,47 +42,30 @@ namespace CalamityMod.Items.Weapons.Rogue
item.shootSpeed = 7f;
item.shoot = ModContent.ProjectileType<PoisonBol>();
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
if (player.ownedProjectileCounts[item.shoot] > 0)
{
return true;
}
else
{
return false;
}
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
item.shoot = 0;
item.shootSpeed = 0f;
return player.ownedProjectileCounts[ModContent.ProjectileType<PoisonBol>()] > 0;
}
else
{
item.shoot = ModContent.ProjectileType<PoisonBol>();
item.shootSpeed = 7f;
int UseMax = item.stack;
if (player.ownedProjectileCounts[item.shoot] >= UseMax)
{
return false;
}
else
{
return true;
}
return player.ownedProjectileCounts[ModContent.ProjectileType<PoisonBol>()] < UseMax;
}
}
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = false;
if (player.altFunctionUse == 2)
{
modPlayer.killSpikyBalls = true;
return false;
}
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike
{
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f);
Main.projectile[stealth].Calamity().stealthStrike = true;
@@ -93,6 +76,8 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool AltFunctionUse(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = true;
return true;
}
+9
View File
@@ -1,4 +1,5 @@
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -33,6 +34,14 @@ namespace CalamityMod.Items.Weapons.Rogue
item.Calamity().rogue = true;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+2 -1
View File
@@ -93,7 +93,8 @@ namespace CalamityMod.Items.Weapons.Rogue
num149 *= num80;
float x4 = vector2.X;
float y4 = vector2.Y;
Projectile.NewProjectile(x4, y4, num148, num149, type, damage, knockBack, player.whoAmI, 0f, 0f);
int knife = Projectile.NewProjectile(x4, y4, num148, num149, type, damage, knockBack, player.whoAmI, 0f, 0f);
Main.projectile[knife].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
}
return false;
}
@@ -39,7 +39,8 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f);
int javelin = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 1f);
Main.projectile[javelin].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.damage = 47;
item.damage = 169;
item.knockBack = 5f;
item.useAnimation = item.useTime = 25;
item.useStyle = 1;
+9
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -32,6 +33,14 @@ namespace CalamityMod.Items.Weapons.Rogue
item.Calamity().rogue = true;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+15 -30
View File
@@ -42,47 +42,30 @@ namespace CalamityMod.Items.Weapons.Rogue
item.shootSpeed = 2f;
item.shoot = ModContent.ProjectileType<SkyStabberProj>();
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
if (player.ownedProjectileCounts[item.shoot] > 0)
{
return true;
}
else
{
return false;
}
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
item.shoot = 0;
item.shootSpeed = 0f;
return player.ownedProjectileCounts[ModContent.ProjectileType<SkyStabberProj>()] > 0;
}
else
{
item.shoot = ModContent.ProjectileType<SkyStabberProj>();
item.shootSpeed = 2f;
int UseMax = item.stack;
if (player.ownedProjectileCounts[item.shoot] >= UseMax)
{
return false;
}
else
{
return true;
}
return player.ownedProjectileCounts[ModContent.ProjectileType<SkyStabberProj>()] < UseMax;
}
}
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = false;
if (player.altFunctionUse == 2)
{
modPlayer.killSpikyBalls = true;
return false;
}
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike
{
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<SkyStabberProj>(), damage, knockBack, player.whoAmI, 0f, 0f);
Main.projectile[stealth].Calamity().stealthStrike = true;
@@ -93,6 +76,8 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool AltFunctionUse(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.killSpikyBalls = true;
return true;
}
@@ -45,6 +45,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
+1
View File
@@ -58,6 +58,7 @@ A max of three disks can be active at a time");
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
+15 -26
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Toxicant Twister");
Tooltip.SetDefault("Throws a speedy boomerang\n" +
Tooltip.SetDefault("Throws a speedy, homing boomerang\n" +
"Stealth strikes fire two boomerangs that go much faster and release sand rapidly");
}
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
item.width = 42;
item.height = 46;
item.damage = 950;
item.damage = 650;
item.noMelee = true;
item.noUseGraphic = true;
item.useAnimation = item.useTime = 20;
@@ -30,45 +30,34 @@ namespace CalamityMod.Items.Weapons.Rogue
item.value = Item.buyPrice(1, 40, 0, 0);
item.Calamity().postMoonLordRarity = 13;
item.rare = 10;
item.shoot = ModContent.ProjectileType<ToxicantTwisterProjectile>();
item.shoot = ModContent.ProjectileType<ToxicantTwisterTwoPointZero>();
item.shootSpeed = 18f;
item.Calamity().rogue = true;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int projType = item.shoot;
if (Main.rand.NextBool(2))
{
projType = ModContent.ProjectileType<ToxicantTwisterTwoPointZero>();
}
if (player.Calamity().StealthStrikeAvailable())
{
float SpeedX = speedX + (float)Main.rand.Next(-20, 21) * 0.05f;
float SpeedY = speedY + (float)Main.rand.Next(-20, 21) * 0.05f;
int stealth = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<ToxicantTwisterProjectile>(), damage, knockBack, player.whoAmI, 0f, 0f);
Main.projectile[stealth].Calamity().stealthStrike = true;
Main.projectile[stealth].velocity *= 1.5f;
Main.projectile[stealth].timeLeft = 420;
Main.projectile[stealth].penetrate = -1;
Main.projectile[stealth].localNPCHitCooldown = 6;
float SpeedX2 = speedX + (float)Main.rand.Next(-20, 21) * 0.05f;
float SpeedY2 = speedY + (float)Main.rand.Next(-20, 21) * 0.05f;
int stealth = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
int stealth2 = Projectile.NewProjectile(position.X, position.Y, SpeedX2, SpeedY2, ModContent.ProjectileType<ToxicantTwisterTwoPointZero>(), damage, knockBack, player.whoAmI, 0f, 0f);
Main.projectile[stealth].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
Main.projectile[stealth2].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
if (Main.projectile[stealth].Calamity().stealthStrike)
{
Main.projectile[stealth].velocity *= 1.5f;
Main.projectile[stealth].timeLeft = 420;
Main.projectile[stealth].penetrate = -1;
Main.projectile[stealth].localNPCHitCooldown = 6;
}
if (Main.projectile[stealth2].Calamity().stealthStrike)
{
Main.projectile[stealth2].penetrate += 2;
Main.projectile[stealth2].localNPCHitCooldown = 8;
}
int stealth2 = Projectile.NewProjectile(position.X, position.Y, SpeedX2, SpeedY2, type, (int)(damage * 0.6f), knockBack, player.whoAmI, 0f, 0f);
Main.projectile[stealth2].Calamity().stealthStrike = true;
Main.projectile[stealth2].penetrate += 2;
Main.projectile[stealth2].localNPCHitCooldown = 8;
}
else
{
Projectile.NewProjectile(position, new Vector2(speedX, speedY), projType, damage, knockBack, player.whoAmI, 0f, 0f);
Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f);
}
return false;
}
@@ -1,6 +1,7 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -36,6 +37,14 @@ namespace CalamityMod.Items.Weapons.Rogue
item.Calamity().customRarity = CalamityRarity.Developer;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+10 -1
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Hybrid;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -17,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 14;
item.damage = 81;
item.damage = 87;
item.noMelee = true;
item.noUseGraphic = true;
item.autoReuse = true;
@@ -34,6 +35,14 @@ namespace CalamityMod.Items.Weapons.Rogue
item.Calamity().rogue = true;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
Main.projectile[proj].Calamity().forceRogue = true;
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
+2 -2
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 22;
item.damage = 8;
item.damage = 11;
item.noMelee = true;
item.consumable = true;
item.noUseGraphic = true;
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue
item.autoReuse = true;
item.height = 38;
item.maxStack = 999;
item.value = 100;
item.value = Item.buyPrice(0, 0, 1, 0);
item.rare = 1;
item.shoot = ModContent.ProjectileType<WulfrumKnifeProj>();
item.shootSpeed = 12f;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 12;
item.damage = 10;
item.mana = 10;
item.width = 34;
item.height = 24;
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Prototype Andromecha Ring");
Tooltip.SetDefault("Summons an colossal controllable mech\n" +
Tooltip.SetDefault("Summons a colossal controllable mech\n" +
"Right click to display the mech's control panel\n" +
"The panel has 3 possible configurations, that you can choose using the brackets on the UI\n" +
"Each bracket powers 2 out of 3 functions, represented by icons on the UI.\n" +
+8 -8
View File
@@ -357,7 +357,7 @@ namespace CalamityMod
BossDifficulty.TryGetValue("AstrumAureus", out float order);
int type = NPCType<AstrumAureus>();
int summon = ItemType<AstralChunk>();
List<int> loot = new List<int>() { ItemType<AstrageldonBag>(), ItemType<Stardust>(), ItemID.FallenStar, ItemType<Nebulash>(), ItemType<AuroraBlazer>(), ItemType<AlulaAustralis>(), ItemType<BorealisBomber>(), ItemType<AuroradicalThrow>(), ItemType<GravistarSabaton>(), ItemType<AstralJelly>(), ItemID.HallowedKey, ItemID.FragmentSolar, ItemID.FragmentVortex, ItemID.FragmentNebula, ItemID.FragmentStardust, ItemType<StarlightFuelCell>(), ItemID.GreaterHealingPotion };
List<int> loot = new List<int>() { ItemType<AstrageldonBag>(), ItemType<Stardust>(), ItemID.FallenStar, ItemType<Nebulash>(), ItemType<AuroraBlazer>(), ItemType<AlulaAustralis>(), ItemType<BorealisBomber>(), ItemType<AuroradicalThrow>(), ItemType<LeonidProgenitor>(), ItemType<GravistarSabaton>(), ItemType<AstralJelly>(), ItemID.HallowedKey, ItemType<StarlightFuelCell>(), ItemID.GreaterHealingPotion };
List<int> collection = new List<int>() { ItemType<AstrageldonTrophy>(), ItemType<AureusMask>(), ItemType<KnowledgeAstrumAureus>() };
string instructions = $"Use an [i:{summon}] at Night in the Astral Biome";
string despawn = CalamityUtils.ColorMessage("Astrum Aureus’ program has been executed. Initiate recall.", new Color(0xFF, 0xD7, 0x00));
@@ -370,7 +370,7 @@ namespace CalamityMod
BossDifficulty.TryGetValue("PlaguebringerGoliath", out float order);
int type = NPCType<PlaguebringerGoliath>();
int summon = ItemType<Abomination>();
List<int> loot = new List<int>() { ItemType<PlaguebringerGoliathBag>(), ItemType<PlagueCellCluster>(), ItemType<VirulentKatana>(), ItemType<DiseasedPike>(), ItemType<ThePlaguebringer>(), ItemType<Malevolence>(), ItemType<PestilentDefiler>(), ItemType<TheHive>(), ItemType<MepheticSprayer>(), ItemType<PlagueStaff>(), ItemType<TheSyringe>(), ItemType<FuelCellBundle>(), ItemType<InfectedRemote>(), ItemType<Malachite>(), ItemType<BloomStone>(), ItemType<ToxicHeart>(), ItemID.GreaterHealingPotion };
List<int> loot = new List<int>() { ItemType<PlaguebringerGoliathBag>(), ItemType<PlagueCellCluster>(), ItemType<InfectedArmorPlating>(), ItemID.Stinger, ItemType<VirulentKatana>(), ItemType<DiseasedPike>(), ItemType<ThePlaguebringer>(), ItemType<Malevolence>(), ItemType<PestilentDefiler>(), ItemType<TheHive>(), ItemType<MepheticSprayer>(), ItemType<PlagueStaff>(), ItemType<TheSyringe>(), ItemType<FuelCellBundle>(), ItemType<InfectedRemote>(), ItemType<Malachite>(), ItemType<BloomStone>(), ItemType<ToxicHeart>(), ItemID.GreaterHealingPotion };
List<int> collection = new List<int>() { ItemType<PlaguebringerGoliathTrophy>(), ItemType<PlaguebringerGoliathMask>(), ItemType<KnowledgePlaguebringerGoliath>(), ItemType<PlagueCaller>() };
string instructions = $"Use an [i:{summon}] in the Jungle Biome";
string despawn = CalamityUtils.ColorMessage("HOSTILE SPECIMENS TERMINATED. INITIATE RECALL TO HOME BASE.", new Color(0x00, 0xFF, 0x00));
@@ -396,7 +396,7 @@ namespace CalamityMod
BossDifficulty.TryGetValue("AstrumDeus", out float order);
List<int> segments = new List<int>() { NPCType<AstrumDeusHeadSpectral>(), NPCType<AstrumDeusBodySpectral>(), NPCType<AstrumDeusTailSpectral>() };
int summon = ItemType<Starcore>();
List<int> loot = new List<int>() { ItemType<AstrumDeusBag>(), ItemType<Stardust>(), ItemType<TheMicrowave>(), ItemType<StarSputter>(), ItemType<Starfall>(), ItemType<GodspawnHelixStaff>(), ItemType<RegulusRiot>(), ItemType<Quasar>(), ItemType<AstralBulwark>(), ItemType<HideofAstrumDeus>(), ItemID.FragmentSolar, ItemID.FragmentVortex, ItemID.FragmentNebula, ItemID.FragmentStardust, ItemID.GreaterHealingPotion };
List<int> loot = new List<int>() { ItemType<AstrumDeusBag>(), ItemType<Stardust>(), ItemID.FallenStar, ItemType<TheMicrowave>(), ItemType<StarSputter>(), ItemType<Starfall>(), ItemType<GodspawnHelixStaff>(), ItemType<RegulusRiot>(), ItemType<Quasar>(), ItemType<AstralBulwark>(), ItemType<HideofAstrumDeus>(), ItemID.FragmentSolar, ItemID.FragmentVortex, ItemID.FragmentNebula, ItemID.FragmentStardust, ItemID.GreaterHealingPotion };
List<int> collection = new List<int>() { ItemType<AstrumDeusTrophy>(), ItemType<AstrumDeusMask>(), ItemType<KnowledgeAstrumDeus>(), ItemType<KnowledgeAstralInfection>() };
string instructions = $"Defeat 3 empowered astral titans or use a [i:{summon}] at Night";
string despawn = CalamityUtils.ColorMessage("The infected deity retreats to the heavens.", new Color(0xFF, 0xD7, 0x00));
@@ -536,7 +536,7 @@ namespace CalamityMod
BossDifficulty.TryGetValue("SupremeCalamitas", out float order);
int type = NPCType<SupremeCalamitas>();
int summon = ItemType<EyeofExtinction>();
List<int> loot = new List<int>() { ItemType<CalamitousEssence>(), ItemType<Animus>(), ItemType<Azathoth>(), ItemType<Contagion>(), ItemType<CrystylCrusher>(), ItemType<DraconicDestruction>(), ItemType<Earth>(), ItemType<Fabstaff>(), ItemType<RoyalKnivesMelee>(), ItemType<RoyalKnives>(), ItemType<NanoblackReaperMelee>(), ItemType<NanoblackReaperRogue>(), ItemType<RedSun>(), ItemType<ScarletDevil>(), ItemType<SomaPrime>(), ItemType<BlushieStaff>(), ItemType<Svantechnical>(), ItemType<Judgement>(), ItemType<TriactisTruePaladinianMageHammerofMightMelee>(), ItemType<TriactisTruePaladinianMageHammerofMight>(), ItemType<Megafleet>(), ItemType<Endogenesis>(), ItemType<Vehemenc>(), ItemType<OmegaHealingPotion>() };
List<int> loot = new List<int>() { ItemType<CalamitousEssence>(), ItemType<Animus>(), ItemType<Azathoth>(), ItemType<Contagion>(), ItemType<CrystylCrusher>(), ItemType<Judgement>(), ItemType<DraconicDestruction>(), ItemType<Earth>(), ItemType<Endogenesis>(), ItemType<Fabstaff>(), ItemType<RoyalKnivesMelee>(), ItemType<RoyalKnives>(), ItemType<NanoblackReaperMelee>(), ItemType<NanoblackReaperRogue>(), ItemType<RedSun>(), ItemType<ScarletDevil>(), ItemType<SomaPrime>(), ItemType<BlushieStaff>(), ItemType<Svantechnical>(), ItemType<BensUmbrella>(), ItemType<TriactisTruePaladinianMageHammerofMightMelee>(), ItemType<TriactisTruePaladinianMageHammerofMight>(), ItemType<Megafleet>(), ItemType<PrototypeAndromechaRing>(), ItemType<Vehemenc>(), ItemType<OmegaHealingPotion>() };
List<int> collection = new List<int>() { ItemType<SupremeCalamitasTrophy>(), ItemType<KnowledgeCalamitas>(), ItemType<BrimstoneJewel>(), ItemType<Levi>() };
string instructions = $"Use an [i:{summon}]";
string despawn = CalamityUtils.ColorMessage("Please don't waste my time.", new Color(0xFF, 0xA5, 0x00));
@@ -551,7 +551,7 @@ namespace CalamityMod
InvasionDifficulty.TryGetValue("Acid Rain Initial", out float order);
List<int> enemies = AcidRainEvent.PossibleEnemiesPreHM.Select(enemy => enemy.Key).ToList();
int summon = ItemType<CausticTear>();
List<int> loot = new List<int>() { ItemType<SulfuricScale>() };
List<int> loot = new List<int>() { ItemType<SulfuricScale>(), ItemType<ParasiticSceptor>() };
List<int> collection = new List<int>() { ItemType<RadiatingCrystal>() };
string instructions = $"Use a [i:{summon}] or wait for the invasion to occur naturally after the Eye of Cthulhu is defeated.";
string despawn = CalamityUtils.ColorMessage("The mysterious creatures of the sulphuric sea descended back into the ocean.", new Color(146, 183, 116));
@@ -566,7 +566,7 @@ namespace CalamityMod
enemies.Add(ModContent.NPCType<IrradiatedSlime>());
enemies.AddRange(AcidRainEvent.PossibleMinibossesAS.Select(miniboss => miniboss.Key));
List<int> summons = new List<int>() { ItemType<CausticTear>(), ItemType<CausticTearNonConsumable>() };
List<int> loot = new List<int>() { ItemType<SulfuricScale>(), ItemType<CorrodedFossil>(), ItemType<LeadCore>(), ItemType<NuclearRod>(), ItemType<FlakToxicannon>(), ItemType<OrthoceraShell>(), ItemType<SkyfinBombers>(), ItemType<SlitheringEels>(), ItemType<SpentFuelContainer>(), ItemType<SulphurousGrabber>() };
List<int> loot = new List<int>() { ItemType<SulfuricScale>(), ItemType<CorrodedFossil>(), ItemType<LeadCore>(), ItemType<NuclearRod>(), ItemType<ParasiticSceptor>(), ItemType<FlakToxicannon>(), ItemType<OrthoceraShell>(), ItemType<SkyfinBombers>(), ItemType<SlitheringEels>(), ItemType<SpentFuelContainer>(), ItemType<SulphurousGrabber>() };
List<int> collection = new List<int>() { ItemType<RadiatingCrystal>() };
string instructions = $"Use a [i:{ItemType<CausticTear>()}] or [i:{ItemType<CausticTearNonConsumable>()}] or wait for the invasion to occur naturally after the Aquatic Scourge is defeated";
string despawn = CalamityUtils.ColorMessage("The mysterious creatures of the sulphuric sea descended back into the deep ocean.", new Color(146, 183, 116));
@@ -580,7 +580,7 @@ namespace CalamityMod
List<int> enemies = AcidRainEvent.PossibleEnemiesPolter.Select(enemy => enemy.Key).ToList();
enemies.AddRange(AcidRainEvent.PossibleMinibossesPolter.Select(miniboss => miniboss.Key));
List<int> summons = new List<int>() { ItemType<CausticTear>(), ItemType<CausticTearNonConsumable>() };
List<int> loot = new List<int>() { ItemType<SulfuricScale>(), ItemType<CorrodedFossil>(), ItemType<LeadCore>(), ItemType<NuclearRod>(), ItemType<FlakToxicannon>(), ItemType<OrthoceraShell>(), ItemType<SkyfinBombers>(), ItemType<SlitheringEels>(), ItemType<SpentFuelContainer>(), ItemType<SulphurousGrabber>(), ModContent.ItemType<GammaHeart>() };
List<int> loot = new List<int>() { ItemType<SulfuricScale>(), ItemType<CorrodedFossil>(), ItemType<LeadCore>(), ItemType<NuclearRod>(), ItemType<ParasiticSceptor>(), ItemType<FlakToxicannon>(), ItemType<OrthoceraShell>(), ItemType<SkyfinBombers>(), ItemType<SlitheringEels>(), ItemType<SpentFuelContainer>(), ItemType<SulphurousGrabber>(), ModContent.ItemType<GammaHeart>() };
List<int> collection = new List<int>() { ItemType<RadiatingCrystal>() };
string instructions = $"Use a [i:{ItemType<CausticTear>()}] or [i:{ItemType<CausticTearNonConsumable>()}] or wait for the invasion to occur naturally after the Polterghast is defeated";
string despawn = CalamityUtils.ColorMessage("The mysterious creatures of the sulphuric sea descended back into the deep ocean.", new Color(146, 183, 116));
@@ -618,7 +618,7 @@ namespace CalamityMod
// Queen Bee
AddLoot(bossChecklist, "QueenBee",
new List<int>() { ItemType<HardenedHoneycomb>() },
new List<int>() { ItemType<HardenedHoneycomb>(), ItemID.Stinger },
new List<int>() { ItemType<KnowledgeQueenBee>() }
);
+12 -8
View File
@@ -14,9 +14,10 @@ namespace CalamityMod.NPCs.AcidRain
{
public class NuclearTerror : ModNPC
{
public bool Walking = false;
public int AttackIndex = 0;
public int DelayTime = 0;
public bool Dying = false;
public bool Walking = false;
public float JumpTimer = 0f;
public Vector2 ShootPosition;
public static readonly int[] PhaseArray = new int[]
@@ -61,6 +62,7 @@ namespace CalamityMod.NPCs.AcidRain
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(npc.dontTakeDamage);
writer.Write(Dying);
writer.Write(Walking);
writer.Write(AttackIndex);
writer.Write(DelayTime);
@@ -70,6 +72,7 @@ namespace CalamityMod.NPCs.AcidRain
public override void ReceiveExtraAI(BinaryReader reader)
{
npc.dontTakeDamage = reader.ReadBoolean();
Dying = reader.ReadBoolean();
Walking = reader.ReadBoolean();
AttackIndex = reader.ReadInt32();
DelayTime = reader.ReadInt32();
@@ -78,8 +81,8 @@ namespace CalamityMod.NPCs.AcidRain
}
public override void AI()
{
Lighting.AddLight(npc.Center, (npc.dontTakeDamage ? Color.Lime.ToVector3() : Color.White.ToVector3()) * 2f);
if (npc.dontTakeDamage)
Lighting.AddLight(npc.Center, (Dying ? Color.Lime.ToVector3() : Color.White.ToVector3()) * 2f);
if (Dying)
return;
bool phase2 = npc.life / (float)npc.lifeMax < 0.5f;
if (DelayTime > 0)
@@ -103,7 +106,7 @@ namespace CalamityMod.NPCs.AcidRain
}
Player player = Main.player[npc.target];
npc.defDamage = 170;
npc.damage = npc.dontTakeDamage ? 0 : npc.defDamage;
npc.damage = Dying ? 0 : npc.defDamage;
TeleportCheck(player);
npc.ai[0]++;
Walking = false;
@@ -347,7 +350,7 @@ namespace CalamityMod.NPCs.AcidRain
public override void FindFrame(int frameHeight)
{
npc.frameCounter++;
int framesNeeded = npc.dontTakeDamage ? 7 : 6;
int framesNeeded = Dying ? 7 : 6;
if (Walking)
{
framesNeeded = 8 - (int)Math.Ceiling(Math.Abs(npc.velocity.X) / 5f); // Walk faster the faster we're moving
@@ -357,7 +360,7 @@ namespace CalamityMod.NPCs.AcidRain
npc.frame.Y += frameHeight;
npc.frameCounter = 0;
}
if (npc.dontTakeDamage)
if (Dying)
{
if (npc.frame.Y < frameHeight * 8)
{
@@ -402,16 +405,17 @@ namespace CalamityMod.NPCs.AcidRain
}
public override bool CheckDead()
{
if (!npc.dontTakeDamage)
if (!Dying)
{
npc.active = true;
npc.life = 1;
npc.dontTakeDamage = true;
Dying = true;
npc.velocity = Vector2.Zero;
npc.netUpdate = true;
return false;
}
return true;
return Dying;
}
public override void HitEffect(int hitDirection, double damage)
{
+10 -1
View File
@@ -86,7 +86,16 @@ namespace CalamityMod.NPCs.AcidRain
{
if (npc.ai[0] % 55f == 54f)
{
npc.velocity = Vector2.UnitX * (player.Center.X - npc.Center.X > 0).ToDirectionInt() * 27f;
float horizontalSchoolingSpeed = 9f;
if (CalamityWorld.downedAquaticScourge)
{
horizontalSchoolingSpeed = 15f;
}
if (CalamityWorld.downedPolterghast)
{
horizontalSchoolingSpeed = 24f;
}
npc.velocity = Vector2.UnitX * (player.Center.X - npc.Center.X > 0).ToDirectionInt() * horizontalSchoolingSpeed;
}
if ((Math.Abs(player.Center.Y - npc.Center.Y) > 50f && player.wet) || (!player.wet && npc.ai[1] <= 0f))
{
+29 -3
View File
@@ -71,7 +71,33 @@ namespace CalamityMod.NPCs.AcidRain
npc.TargetClosest(false);
npc.localAI[0] = 1f;
}
// Anti-sticky movement and player targeting detection (only one leech and attack the player at once)
Player player = Main.player[npc.target];
bool playerAlreadyTargeted = false;
float antiStickyAcceleration = 0.25f;
for (int i = 0; i < Main.npc.Length; i++)
{
if (Main.npc[i].type == npc.type &&
Main.npc[i].whoAmI != npc.whoAmI &&
Main.npc[i].active)
{
if (Main.npc[i].target == npc.target && !playerAlreadyTargeted)
{
playerAlreadyTargeted = true;
}
if (Main.npc[i].Hitbox.Intersects(npc.Hitbox))
{
npc.velocity += npc.DirectionFrom(Main.npc[i].Center) * antiStickyAcceleration;
}
}
}
if (!playerAlreadyTargeted || player.Calamity().waterLeechTarget == -1)
{
player.Calamity().waterLeechTarget = npc.whoAmI;
}
// Latch onto player
if (npc.ai[0] == 1f)
{
@@ -114,14 +140,14 @@ namespace CalamityMod.NPCs.AcidRain
npc.netUpdate = true;
}
}
else if (player.wet)
else if (player.wet && player.Calamity().waterLeechTarget == npc.whoAmI)
{
float speed = player.wet ? 23f : 15f;
float speed = player.wet ? 23f : 17f;
float swimIntertia = 24f;
if (CalamityWorld.downedPolterghast)
{
speed *= 1.6f;
swimIntertia = 13f;
swimIntertia = 17f;
}
npc.velocity = (npc.velocity * (swimIntertia - 1f) + npc.DirectionTo(player.Center) * speed) / swimIntertia;
}
+28
View File
@@ -63,6 +63,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using Terraria;
using Terraria.GameContent.Events;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
@@ -3530,6 +3531,10 @@ namespace CalamityMod.NPCs
{
damage = (int)(damage * 0.1);
}
else if (projectile.type == ProjectileType<DormantBrimseekerBab>())
{
damage = (int)(damage * 0.2);
}
else if (projectile.type == ProjectileID.Wasp || projectile.type == player.beeType() || projectile.type == ProjectileType<MalachiteBolt>() || projectile.type == ProjectileType<SakuraBullet>() || projectile.type == ProjectileType<PurpleButterfly>() || projectile.type == ProjectileID.DD2BetsyArrow)
{
damage = (int)(damage * 0.4);
@@ -5306,6 +5311,11 @@ namespace CalamityMod.NPCs
chat = "I happen to have several Angel Statues at the moment, a truely rare commodity. Want one?";
}
if (Main.rand.NextBool(7) && CalamityWorld.death)
{
chat = "The caverns have become increasingly dark as of late, so I stocked up on some special torches if you have the funds.";
}
break;
case NPCID.Mechanic:
@@ -5555,6 +5565,7 @@ namespace CalamityMod.NPCs
SetShopItem(ref shop, ref nextSlot, WorldGen.crimson ? ItemID.BallOHurt : ItemID.TheRottedFork, WorldGen.shadowOrbSmashed || NPC.downedBoss2);
SetShopItem(ref shop, ref nextSlot, ItemID.MasterBait, NPC.downedBoss3);
SetShopItem(ref shop, ref nextSlot, ItemID.AngelStatue, NPC.FindFirstNPC(NPCType<THIEF>()) != -1, Item.buyPrice(0, 5));
SetShopItem(ref shop, ref nextSlot, ItemID.UltrabrightTorch, CalamityWorld.death);
}
// Because of the defiled condition, the dye trader does not receive an alert icon when hardmode starts.
@@ -5818,6 +5829,23 @@ namespace CalamityMod.NPCs
}
#endregion
#region Any Events
public static bool AnyEvents(Player player)
{
if (Main.invasionType > 0)
return true;
if (player.PillarZone())
return true;
if (DD2Event.Ongoing)
return true;
if ((player.ZoneOverworldHeight || player.ZoneSkyHeight) && (Main.eclipse || Main.bloodMoon || Main.pumpkinMoon || Main.snowMoon))
return true;
if (CalamityWorld.rainingAcid && player.InSulphur())
return true;
return false;
}
#endregion
#region Get Downed Boss Variable
public static bool GetDownedBossVariable(int type)
{
+1 -1
View File
@@ -1689,7 +1689,7 @@ namespace CalamityMod.NPCs
break;
case NPCID.Plantera:
DropHelper.DropItemCondition(npc, ModContent.ItemType<LivingShard>(), !Main.expertMode, 6, 9);
DropHelper.DropItemCondition(npc, ModContent.ItemType<LivingShard>(), !Main.expertMode, 12, 18);
break;
case NPCID.SolarSpearman: //Drakanian
@@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
npc.height = 198;
npc.defense = 40;
npc.Calamity().RevPlusDR(0.25f);
npc.LifeMaxNERB(58500, 77275, 3700000);
npc.LifeMaxNERB(64350, 85002, 3700000);
double HPBoost = (double)CalamityMod.CalamityConfig.BossHealthPercentageBoost * 0.01;
npc.lifeMax += (int)((double)npc.lifeMax * HPBoost);
npc.knockBackResist = 0f;
+1 -1
View File
@@ -1307,7 +1307,7 @@ namespace CalamityMod.NPCs.Providence
{
// Materials
DropHelper.DropItemSpray(npc, ModContent.ItemType<UnholyEssence>(), 20, 30);
DropHelper.DropItemSpray(npc, ModContent.ItemType<DivineGeode>(), 10, 15);
DropHelper.DropItemSpray(npc, ModContent.ItemType<DivineGeode>(), 15, 20);
// Weapons
DropHelper.DropItemChance(npc, ModContent.ItemType<HolyCollider>(), 4);
+244 -4
View File
@@ -123,9 +123,17 @@ namespace CalamityMod.Projectiles
case ProjectileID.ButchersChainsaw:
trueMelee = true;
break;
case ProjectileID.StarWrath:
projectile.penetrate = projectile.maxPenetrate = 1;
break;
case ProjectileID.Spazmamini:
case ProjectileID.Retanimini:
case ProjectileID.MiniRetinaLaser:
projectile.localNPCHitCooldown = 10;
projectile.usesLocalNPCImmunity = true;
break;
default:
break;
}
@@ -1139,7 +1147,7 @@ namespace CalamityMod.Projectiles
}
}
if (Main.player[Main.myPlayer].lifeSteal > 0f && target.canGhostHeal && target.type != NPCID.TargetDummy && target.type != NPCType<SuperDummyNPC>())
if (Main.player[Main.myPlayer].lifeSteal > 0f && target.canGhostHeal && target.type != NPCID.TargetDummy && target.type != NPCType<SuperDummyNPC>() && !player.moonLeech)
{
// Increases the degree to which Spectre Healing set contributes to the lifesteal cap
if (player.ghostHeal)
@@ -1485,13 +1493,14 @@ namespace CalamityMod.Projectiles
target.AddBuff(BuffID.Venom, 240);
}
if (modPlayer.shadow)
if (modPlayer.shadow && modPlayer.shadowPotCooldown <= 0)
{
if (CalamityMod.javelinProjList.Contains(projectile.type))
{
int randrot = Main.rand.Next(-30, 391);
Vector2 SoulSpeed = new Vector2(13f, 13f).RotatedBy(MathHelper.ToRadians(randrot));
Projectile.NewProjectile(projectile.Center, SoulSpeed, ModContent.ProjectileType<PenumbraSoul>(), CalamityUtils.DamageSoftCap(projectile.damage * 0.1, 60), 3f, projectile.owner, 0f, 0f);
modPlayer.shadowPotCooldown = 30;
}
if (CalamityMod.spikyBallProjList.Contains(projectile.type))
{
@@ -1499,6 +1508,7 @@ namespace CalamityMod.Projectiles
Main.projectile[scythe].usesLocalNPCImmunity = true;
Main.projectile[scythe].localNPCHitCooldown = 10;
Main.projectile[scythe].penetrate = 2;
modPlayer.shadowPotCooldown = 30;
}
if (CalamityMod.daggerProjList.Contains(projectile.type))
{
@@ -1507,6 +1517,7 @@ namespace CalamityMod.Projectiles
shardVelocity *= 5f;
int shard = Projectile.NewProjectile(projectile.Center, shardVelocity, ModContent.ProjectileType<EquanimityDarkShard>(), CalamityUtils.DamageSoftCap(projectile.damage * 0.15, 60), 0f, projectile.owner);
Main.projectile[shard].timeLeft = 150;
modPlayer.shadowPotCooldown = 30;
}
if (CalamityMod.boomerangProjList.Contains(projectile.type))
{
@@ -1547,11 +1558,13 @@ namespace CalamityMod.Projectiles
int ghost = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, SpeedX, SpeedY, ProjectileID.SpectreWrath, spiritDamage, 0f, projectile.owner, (float)num3, 0f);
Main.projectile[ghost].Calamity().forceRogue = true;
Main.projectile[ghost].penetrate = 1;
modPlayer.shadowPotCooldown = 30;
}
if (CalamityMod.flaskBombProjList.Contains(projectile.type))
{
int blackhole = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<ShadowBlackhole>(), CalamityUtils.DamageSoftCap(projectile.damage * 0.05, 60), 3f, projectile.owner, 0f, 0f);
Main.projectile[blackhole].Center = projectile.Center;
modPlayer.shadowPotCooldown = 30;
}
}
}
@@ -1621,8 +1634,8 @@ namespace CalamityMod.Projectiles
{
if (Main.rand.NextBool(4))
{
Projectile.NewProjectile(projectile.Center, Vector2.Zero, ProjectileType<ApparatusExplosion>(), CalamityUtils.DamageSoftCap(projectile.damage * 0.25, 100), projectile.knockBack * 0.25f, projectile.owner);
modPlayer.jellyDmg = 20f;
Projectile.NewProjectile(projectile.Center, Vector2.Zero, ProjectileType<ApparatusExplosion>(), CalamityUtils.DamageSoftCap(projectile.damage * 0.25, 90), projectile.knockBack * 0.25f, projectile.owner);
modPlayer.jellyDmg = 25f;
}
}
else if (modPlayer.starbusterCore)
@@ -1915,6 +1928,8 @@ namespace CalamityMod.Projectiles
public static void SpawnLifeStealProjectile(Projectile projectile, Player player, float healAmount, int healProjectileType, float distanceRequired, float cooldownMultiplier)
{
if (Main.player[Main.myPlayer].moonLeech)
return;
Main.player[Main.myPlayer].lifeSteal -= healAmount * cooldownMultiplier;
float num13 = 0f;
int num14 = projectile.owner;
@@ -2133,6 +2148,231 @@ namespace CalamityMod.Projectiles
}
}
public static void ChargingMinionAI(Projectile projectile, float range, float maxPlayerDist, float extraMaxPlayerDist, float safeDist, int initialUpdates, float chargeDelayTime, float goToSpeed, float goBackSpeed, float chargeCounterMax, float chargeSpeed, bool tileVision, bool ignoreTilesWhenCharging)
{
Player player = Main.player[projectile.owner];
CalamityPlayer modPlayer = player.Calamity();
//Anti sticky movement to prevent stacking
float antiStickMvt = 0.05f;
for (int projIndex = 0; projIndex < Main.maxProjectiles; projIndex++)
{
Projectile proj = Main.projectile[projIndex];
bool typeCheck = proj.type == projectile.type;
if (projIndex != projectile.whoAmI && proj.active && proj.owner == projectile.owner && typeCheck && Math.Abs(projectile.position.X - proj.position.X) + Math.Abs(projectile.position.Y - proj.position.Y) < projectile.width)
{
if (projectile.position.X < proj.position.X)
{
projectile.velocity.X -= antiStickMvt;
}
else
{
projectile.velocity.X += antiStickMvt;
}
if (projectile.position.Y < proj.position.Y)
{
projectile.velocity.Y -= antiStickMvt;
}
else
{
projectile.velocity.Y += antiStickMvt;
}
}
}
//Breather time between charges as like a reset
bool chargeDelay = false;
if (projectile.ai[0] == 2f)
{
projectile.ai[1] += 1f;
projectile.extraUpdates = initialUpdates + (projectile.type == ModContent.ProjectileType<CloudElementalMinion>() ? 2 : 1);
if (projectile.ai[1] > chargeDelayTime)
{
projectile.ai[1] = 1f;
projectile.ai[0] = 0f;
projectile.extraUpdates = initialUpdates;
projectile.numUpdates = 0;
projectile.netUpdate = true;
}
else
{
chargeDelay = true;
}
}
if (chargeDelay)
{
return;
}
//Find a target
float maxDist = range;
Vector2 targetVec = projectile.position;
bool foundTarget = false;
Vector2 half = new Vector2(0.5f);
//Prioritize the targeted enemy if possible
if (player.HasMinionAttackTargetNPC)
{
NPC npc = Main.npc[player.MinionAttackTargetNPC];
if (npc.CanBeChasedBy(projectile, false))
{
//Check the size of the target to make it easier to hit fat targets like Levi
Vector2 sizeCheck = npc.position + npc.Size * half;
float targetDist = Vector2.Distance(npc.Center, projectile.Center);
//Some minions will ignore tiles when choosing a target like Ice Claspers, others will not
bool canHit = true;
if (!tileVision)
canHit = Collision.CanHitLine(projectile.position, projectile.width, projectile.height, npc.position, npc.width, npc.height);
if (!foundTarget && targetDist < maxDist && canHit)
{
maxDist = targetDist;
targetVec = sizeCheck;
foundTarget = true;
}
}
}
//If no npc is specifically targetted, check through the entire array
else
{
for (int npcIndex = 0; npcIndex < Main.maxNPCs; npcIndex++)
{
NPC npc = Main.npc[npcIndex];
if (npc.CanBeChasedBy(projectile, false))
{
Vector2 sizeCheck = npc.position + npc.Size * half;
float targetDist = Vector2.Distance(npc.Center, projectile.Center);
bool canHit = true;
if (!tileVision)
canHit = Collision.CanHitLine(projectile.position, projectile.width, projectile.height, npc.position, npc.width, npc.height);
if (!foundTarget && targetDist < maxDist && canHit)
{
maxDist = targetDist;
targetVec = sizeCheck;
foundTarget = true;
}
}
}
}
//If the player is too far, return to the player. Range is increased while attacking something.
float distBeforeForcedReturn = maxPlayerDist;
if (foundTarget)
{
distBeforeForcedReturn = extraMaxPlayerDist;
}
if (Vector2.Distance(player.Center, projectile.Center) > distBeforeForcedReturn)
{
projectile.ai[0] = 1f;
projectile.netUpdate = true;
}
//Go to the target if you found one
if (foundTarget && projectile.ai[0] == 0f)
{
//Some minions don't ignore tiles while charging like brittle stars
projectile.tileCollide = !ignoreTilesWhenCharging;
Vector2 targetSpot = targetVec - projectile.Center;
float targetDist = targetSpot.Length();
targetSpot.Normalize();
//Tries to get the minion in the sweet spot of 200 pixels away but the minion also charges so idk what good it does
if (targetDist > 200f)
{
float speed = goToSpeed; //8
targetSpot *= speed;
projectile.velocity = (projectile.velocity * 40f + targetSpot) / 41f;
}
else
{
float speed = -goBackSpeed; //-4
targetSpot *= speed;
projectile.velocity = (projectile.velocity * 40f + targetSpot) / 41f; //41
}
}
//Movement for idle or returning to the player
else
{
//Ignore tiles so they don't get stuck everywhere like Optic Staff
projectile.tileCollide = false;
bool returningToPlayer = false;
if (!returningToPlayer)
{
returningToPlayer = projectile.ai[0] == 1f;
}
//Player distance calculations
Vector2 playerVec = player.Center - projectile.Center + new Vector2(0f, -60f);
float playerDist = playerVec.Length();
//If the minion is actively returning, move faster
float playerHomeSpeed = 6f;
if (returningToPlayer)
{
playerHomeSpeed = 15f;
}
//Move somewhat faster if the player is kinda far~ish
if (playerDist > 200f && playerHomeSpeed < 8f)
{
playerHomeSpeed = 8f;
}
//Return to normal if close enough to the player
if (playerDist < safeDist && returningToPlayer && !Collision.SolidCollision(projectile.position, projectile.width, projectile.height))
{
projectile.ai[0] = 0f;
projectile.netUpdate = true;
}
//Teleport to the player if abnormally far
if (playerDist > 2000f)
{
projectile.position.X = player.Center.X - (float)(projectile.width / 2);
projectile.position.Y = player.Center.Y - (float)(projectile.height / 2);
projectile.netUpdate = true;
}
//If more than 70 pixels away, move toward the player
if (playerDist > 70f)
{
playerVec.Normalize();
playerVec *= playerHomeSpeed;
projectile.velocity = (projectile.velocity * 40f + playerVec) / 41f;
}
//Minions never stay still
else if (projectile.velocity.X == 0f && projectile.velocity.Y == 0f)
{
projectile.velocity.X = -0.15f;
projectile.velocity.Y = -0.05f;
}
}
//Increment attack counter randomly
if (projectile.ai[1] > 0f)
{
projectile.ai[1] += (float)Main.rand.Next(1, 4);
}
//If high enough, prepare to attack
if (projectile.ai[1] > chargeCounterMax)
{
projectile.ai[1] = 0f;
projectile.netUpdate = true;
}
//Charge at an enemy if not on cooldown
if (projectile.ai[0] == 0f)
{
if (projectile.ai[1] == 0f && foundTarget && maxDist < 500f)
{
projectile.ai[1] += 1f;
if (Main.myPlayer == projectile.owner)
{
projectile.ai[0] = 2f;
Vector2 targetPos = targetVec - projectile.Center;
targetPos.Normalize();
projectile.velocity = targetPos * chargeSpeed; //8
projectile.netUpdate = true;
}
}
}
}
public static void FloatingPetAI(Projectile projectile, bool faceRight, float tiltFloat, bool lightPet = false)
{
Player player = Main.player[projectile.owner];
Loaded 100 of 168 files, more files were not shown because too many files have changed in this diff. Show more