Merged Stream Gouge
This commit is contained in:
commit
bc2d2a03de
133 files changed
+652
-319
No files matched your search
@@ -0,0 +1,20 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
public class HeavyBleeding : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Heavy Bleeding");
|
||||
Description.SetDefault("You're losing a lot of blood");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex) => player.Calamity().waterLeechBleeding = true;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 740 B |
@@ -777,6 +777,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool vaporfied = false;
|
||||
public bool energyShellCooldown = false;
|
||||
public bool prismaticCooldown = false;
|
||||
public bool waterLeechBleeding = false;
|
||||
#endregion
|
||||
|
||||
#region Buff
|
||||
@@ -1793,6 +1794,7 @@ namespace CalamityMod.CalPlayer
|
||||
vaporfied = false;
|
||||
energyShellCooldown = false;
|
||||
prismaticCooldown = false;
|
||||
waterLeechBleeding = false;
|
||||
|
||||
revivify = false;
|
||||
trinketOfChiBuff = false;
|
||||
@@ -2138,11 +2140,12 @@ namespace CalamityMod.CalPlayer
|
||||
vaporfied = false;
|
||||
energyShellCooldown = false;
|
||||
prismaticCooldown = false;
|
||||
#endregion
|
||||
waterLeechBleeding = false;
|
||||
#endregion
|
||||
|
||||
#region Rogue
|
||||
// Stealth
|
||||
rogueStealth = 0f;
|
||||
#region Rogue
|
||||
// Stealth
|
||||
rogueStealth = 0f;
|
||||
rogueStealthMax = 0f;
|
||||
stealthAcceleration = 1f;
|
||||
|
||||
@@ -4224,6 +4227,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(player.name + " fell prey to their sins.");
|
||||
}
|
||||
if (waterLeechBleeding && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8)
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(player.name + " lost too much blood.");
|
||||
}
|
||||
if (shadowflame && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8)
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(player.name + "'s spirit was turned to ash.");
|
||||
@@ -7899,7 +7906,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (BossRushEvent.BossRushActive && CalamityConfig.Instance.BossRushImmunityFrameCurse)
|
||||
{
|
||||
bossRushImmunityFrameCurseTimer = 300 + player.immuneTime;
|
||||
bossRushImmunityFrameCurseTimer = 180 + player.immuneTime;
|
||||
}
|
||||
if (damage > 25)
|
||||
{
|
||||
|
||||
@@ -202,7 +202,20 @@ namespace CalamityMod.CalPlayer
|
||||
lifeRegenLost += 16;
|
||||
}
|
||||
|
||||
if (modPlayer.pFlames)
|
||||
if (modPlayer.waterLeechBleeding)
|
||||
{
|
||||
if (player.lifeRegen > 0)
|
||||
player.lifeRegen = 0;
|
||||
|
||||
player.lifeRegenTime = 0;
|
||||
lifeRegenLost += 6;
|
||||
if (CalamityWorld.downedAquaticScourge)
|
||||
lifeRegenLost += 6;
|
||||
if (CalamityWorld.downedPolterghast)
|
||||
lifeRegenLost += 12;
|
||||
}
|
||||
|
||||
if (modPlayer.pFlames)
|
||||
{
|
||||
if (player.lifeRegen > 0)
|
||||
player.lifeRegen = 0;
|
||||
|
||||
@@ -127,19 +127,33 @@ namespace CalamityMod.CalPlayer
|
||||
float aiTimer = Main.npc[CalamityGlobalNPC.holyBoss].ai[3];
|
||||
|
||||
float baseDistance = 2800f;
|
||||
float shorterFlameCocoonDistance = 1000f;
|
||||
float shorterSpearCocoonDistance = 1400f;
|
||||
float shorterFlameCocoonDistance = CalamityWorld.death ? 600f : CalamityWorld.revenge ? 400f : Main.expertMode ? 200f : 0f;
|
||||
float shorterSpearCocoonDistance = CalamityWorld.death ? 1000f : CalamityWorld.revenge ? 400f : Main.expertMode ? 200f : 0f;
|
||||
float shorterDistance = aiState == 2f ? shorterFlameCocoonDistance : shorterSpearCocoonDistance;
|
||||
|
||||
float maxDistance = (aiState == 2f || aiState == 5f) ? baseDistance - MathHelper.Lerp(0f, shorterDistance, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : baseDistance;
|
||||
bool guardianAlive = false;
|
||||
if (CalamityGlobalNPC.holyBossAttacker != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.holyBossAttacker].active)
|
||||
guardianAlive = true;
|
||||
}
|
||||
if (CalamityGlobalNPC.holyBossDefender != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.holyBossDefender].active)
|
||||
guardianAlive = true;
|
||||
}
|
||||
if (CalamityGlobalNPC.holyBossHealer != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.holyBossHealer].active)
|
||||
guardianAlive = true;
|
||||
}
|
||||
|
||||
float maxDistance = guardianAlive ? baseDistance : (aiState == 2f || aiState == 5f) ? baseDistance - MathHelper.Lerp(0f, shorterDistance, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : baseDistance;
|
||||
float drawDarknessDistance = maxDistance - 400f;
|
||||
float intensityScalar = MathHelper.Lerp(0f, 0.9f, MathHelper.Clamp((x - drawDarknessDistance) / 400f, 0f, 1f));
|
||||
|
||||
if (!Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].Calamity().ZoneAbyss && !Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].headcovered)
|
||||
ScreenObstruction.screenObstruction = MathHelper.Lerp(ScreenObstruction.screenObstruction, 1f, intensityScalar);
|
||||
|
||||
// Return to prevent running other darkness code
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -275,9 +289,10 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
else
|
||||
{
|
||||
// If any boss is alive (or you are between DoG phases), you gain adrenaline smoothly.
|
||||
// If any boss is alive (or you are between DoG phases or Boss Rush is active), you gain adrenaline smoothly.
|
||||
// EXCEPTION: Wall of Flesh is alive and you are not in hell. Then you don't get anything.
|
||||
if ((CalamityPlayer.areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0) && !wofAndNotHell)
|
||||
if ((CalamityPlayer.areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0 || BossRushEvent.BossRushActive) &&
|
||||
!wofAndNotHell)
|
||||
{
|
||||
int numAdrenBoosts =
|
||||
(modPlayer.adrenalineBoostOne ? 1 : 0) +
|
||||
|
||||
+19
-1
@@ -128,6 +128,24 @@ namespace CalamityMod
|
||||
[Tooltip("Sets Reactive Boss DR to always be full strength, even if the boss has already been defeated.\nIf disabled, the effect is only 66% as powerful after the boss has been defeated.\n\nReactive Boss DR makes bosses smoothly take less damage if they are being killed very quickly.\nIn most cases, the system has no noticeable effect.")]
|
||||
public bool FullPowerReactiveBossDR { get; set; }
|
||||
|
||||
[Label("Let Town NPCs spawn at night.")]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
[Tooltip("Allows you to determine if town NPCs (including the Old Man) can spawn at night.")]
|
||||
public bool CanTownNPCsSpawnAtNight { get; set; }
|
||||
|
||||
private const int MinTownNPCSpawnMultiplier = 1;
|
||||
private const int MaxTownNPCSpawnMultiplier = 10;
|
||||
|
||||
[Label("Town NPC Spawn Rate Multiplier")]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[Range(MinTownNPCSpawnMultiplier, MaxTownNPCSpawnMultiplier)]
|
||||
[Increment(1)]
|
||||
[DrawTicks]
|
||||
[DefaultValue(MinTownNPCSpawnMultiplier)]
|
||||
[Tooltip("Makes town NPCs spawn more quickly, the higher this value is.")]
|
||||
public int TownNPCSpawnRateMultiplier { get; set; }
|
||||
|
||||
private const float MinBossHealthBoost = 0f;
|
||||
private const float MaxBossHealthBoost = 900f;
|
||||
|
||||
@@ -258,7 +276,7 @@ namespace CalamityMod
|
||||
[Label("Immunity Frame Curse")]
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
[Tooltip("During the Boss Rush, being hit twice within five seconds will cause instant death.\nThis effect ignores revives.")]
|
||||
[Tooltip("During the Boss Rush, being hit twice within three seconds will cause instant death.\nThis effect ignores revives.")]
|
||||
public bool BossRushImmunityFrameCurse { get; set; }
|
||||
|
||||
[Label("Xeroc Curse")]
|
||||
|
||||
@@ -402,6 +402,7 @@ namespace CalamityMod
|
||||
ProjectileID.VortexBeater,
|
||||
ProjectileID.DD2PhoenixBow,
|
||||
ProjectileID.LastPrism,
|
||||
ProjectileID.LastPrismLaser,
|
||||
ProjectileID.LaserMachinegun,
|
||||
ProjectileID.ChargedBlasterCannon,
|
||||
ProjectileID.MedusaHead,
|
||||
@@ -418,7 +419,10 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<T1000Proj>(),
|
||||
ModContent.ProjectileType<YharimsCrystalPrism>(),
|
||||
ModContent.ProjectileType<DarkSparkPrism>(),
|
||||
ModContent.ProjectileType<YharimsCrystalBeam>(),
|
||||
ModContent.ProjectileType<DarkSparkBeam>(),
|
||||
ModContent.ProjectileType<GhastlyVisageProj>(),
|
||||
// ModContent.ProjectileType<ApotheosisWorm>(), // TODO: ADD THE APOTHEOSIS WORM HERE LATER. IT IS IN A DIFFERENT BRANCH AS OF WRITING THIS.
|
||||
|
||||
ModContent.ProjectileType<FlakKrakenProj>(),
|
||||
ModContent.ProjectileType<SylvanSlashAttack>(),
|
||||
|
||||
+27
-3
@@ -815,6 +815,13 @@ namespace CalamityMod
|
||||
return true;
|
||||
}, InterfaceScaleType.None));
|
||||
|
||||
// Mode Indicator UI.
|
||||
layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Mode Indicator UI", delegate ()
|
||||
{
|
||||
ModeIndicatorUI.Draw(Main.spriteBatch);
|
||||
return true;
|
||||
}, InterfaceScaleType.UI));
|
||||
|
||||
// Astral Arcanum overlay (if open)
|
||||
layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Astral Arcanum UI", delegate ()
|
||||
{
|
||||
@@ -1338,11 +1345,28 @@ namespace CalamityMod
|
||||
float aiTimer = Main.npc[CalamityGlobalNPC.holyBoss].ai[3];
|
||||
|
||||
float baseDistance = 2800f;
|
||||
float shorterFlameCocoonDistance = 1000f;
|
||||
float shorterSpearCocoonDistance = 1400f;
|
||||
float shorterFlameCocoonDistance = CalamityWorld.death ? 600f : CalamityWorld.revenge ? 400f : Main.expertMode ? 200f : 0f;
|
||||
float shorterSpearCocoonDistance = CalamityWorld.death ? 1000f : CalamityWorld.revenge ? 400f : Main.expertMode ? 200f : 0f;
|
||||
float shorterDistance = aiState == 2f ? shorterFlameCocoonDistance : shorterSpearCocoonDistance;
|
||||
|
||||
float maxDistance = (aiState == 2f || aiState == 5f) ? baseDistance - MathHelper.Lerp(0f, shorterDistance, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : baseDistance;
|
||||
bool guardianAlive = false;
|
||||
if (CalamityGlobalNPC.holyBossAttacker != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.holyBossAttacker].active)
|
||||
guardianAlive = true;
|
||||
}
|
||||
if (CalamityGlobalNPC.holyBossDefender != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.holyBossDefender].active)
|
||||
guardianAlive = true;
|
||||
}
|
||||
if (CalamityGlobalNPC.holyBossHealer != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.holyBossHealer].active)
|
||||
guardianAlive = true;
|
||||
}
|
||||
|
||||
float maxDistance = guardianAlive ? baseDistance : (aiState == 2f || aiState == 5f) ? baseDistance - MathHelper.Lerp(0f, shorterDistance, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : baseDistance;
|
||||
float drawDarknessDistance = maxDistance - 400f;
|
||||
float intensityScalar = MathHelper.Lerp(0f, 0.9f, MathHelper.Clamp((x - drawDarknessDistance) / 400f, 0f, 1f));
|
||||
scale -= intensityScalar;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 527 B |
Binary file not shown.
|
After Width: | Height: | Size: 539 B |
Binary file not shown.
|
After Width: | Height: | Size: 523 B |
Binary file not shown.
|
After Width: | Height: | Size: 567 B |
@@ -3,6 +3,7 @@ using Mono.Cecil.Cil;
|
||||
using MonoMod.Cil;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using Terraria;
|
||||
using Terraria.GameInput;
|
||||
using Terraria.ID;
|
||||
@@ -27,8 +28,13 @@ namespace CalamityMod.ILEditing
|
||||
/// </summary>
|
||||
public static void Initialize()
|
||||
{
|
||||
var spawnTownNPCMethod = typeof(Main).GetMethod("UpdateTime_SpawnTownNPCs", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
cachedUpdateTime_SpawnTownNPCs = Delegate.CreateDelegate(typeof(Action), spawnTownNPCMethod) as Action;
|
||||
|
||||
On.Terraria.NPC.SlimeRainSpawns += PreventBossSlimeRainSpawns;
|
||||
ApplyLifeBytesChanges();
|
||||
SlideDungeonOver();
|
||||
AlterTownNPCSpawnRate();
|
||||
LabDoorFixes();
|
||||
PreventStupidTreesNearOcean();
|
||||
}
|
||||
@@ -72,6 +78,48 @@ namespace CalamityMod.ILEditing
|
||||
On.Terraria.WorldGen.OpenDoor += LabDoorsOpen;
|
||||
On.Terraria.WorldGen.CloseDoor += LabDoorsClose;
|
||||
}
|
||||
|
||||
private static void PreventBossSlimeRainSpawns(On.Terraria.NPC.orig_SlimeRainSpawns orig, int plr)
|
||||
{
|
||||
if (!Main.player[plr].Calamity().bossZen)
|
||||
orig(plr);
|
||||
}
|
||||
|
||||
private static Action cachedUpdateTime_SpawnTownNPCs;
|
||||
|
||||
private static void AlterTownNPCSpawnRate()
|
||||
{
|
||||
IL.Terraria.Main.UpdateTime += (il) =>
|
||||
{
|
||||
// Don't do town NPC spawning at the end (after a !Main.dayTime return).
|
||||
// Do it at the beginning in spite of time.
|
||||
|
||||
var cursor = new ILCursor(il);
|
||||
cursor.EmitDelegate<Action>(() =>
|
||||
{
|
||||
// A cached delegate is used here instead of direct reflection for performance reasons
|
||||
// since UpdateTime is called every frame.
|
||||
if (Main.dayTime || CalamityConfig.Instance.CanTownNPCsSpawnAtNight)
|
||||
cachedUpdateTime_SpawnTownNPCs();
|
||||
});
|
||||
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchCallOrCallvirt<Main>("UpdateTime_SpawnTownNPCs")))
|
||||
{
|
||||
CalamityMod.Instance.Logger.Warn("Town NPC spawn editing code failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
cursor.Emit(OpCodes.Ret);
|
||||
};
|
||||
|
||||
On.Terraria.Main.UpdateTime_SpawnTownNPCs += (orig) =>
|
||||
{
|
||||
int oldWorldRate = Main.worldRate;
|
||||
Main.worldRate *= CalamityConfig.Instance.TownNPCSpawnRateMultiplier;
|
||||
orig();
|
||||
Main.worldRate = oldWorldRate;
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region IL Editing Injection Functions
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Elemental Quiver");
|
||||
Tooltip.SetDefault("Ranged projectiles have a chance to split\n" +
|
||||
"10% increased ranged damage, 5% increased ranged critical strike chance, and 20% reduced ammo usage\n" +
|
||||
"15% increased ranged damage, 5% increased ranged critical strike chance, and 20% reduced ammo usage\n" +
|
||||
"5 increased defense, 2 increased life regen, and 15% increased pick speed\n" +
|
||||
"Greatly increases arrow speed and grants a 20% chance to not consume arrows");
|
||||
}
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.eQuiver = true;
|
||||
player.rangedDamage += 0.1f;
|
||||
player.rangedDamage += 0.15f;
|
||||
player.rangedCrit += 5;
|
||||
player.ammoCost80 = true;
|
||||
player.lifeRegen += 2;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(4, 0, 0, 0);
|
||||
item.defense = 50;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(3, 0, 0, 0);
|
||||
item.defense = 50; //15
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(5, 0, 0, 0);
|
||||
item.defense = 50; //15
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
|
||||
@@ -2,6 +2,7 @@ using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor;
|
||||
using CalamityMod.Items.DifficultyItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.PermanentBoosters;
|
||||
@@ -261,16 +262,16 @@ namespace CalamityMod.Items
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (item.melee)
|
||||
Projectile.NewProjectile(position, velocity * 0.5f, ModContent.ProjectileType<LuxorsGiftMelee>(), CalamityUtils.DamageSoftCap(newDamage * 0.4, 60), 0f, player.whoAmI);
|
||||
Projectile.NewProjectile(position, velocity * 0.5f, ModContent.ProjectileType<LuxorsGiftMelee>(), CalamityUtils.DamageSoftCap(newDamage * 0.6, 60), 0f, player.whoAmI);
|
||||
|
||||
else if (rogue)
|
||||
Projectile.NewProjectile(position, velocity, ModContent.ProjectileType<LuxorsGiftRogue>(), CalamityUtils.DamageSoftCap(newDamage * 0.35, 50), 0f, player.whoAmI);
|
||||
Projectile.NewProjectile(position, velocity, ModContent.ProjectileType<LuxorsGiftRogue>(), CalamityUtils.DamageSoftCap(newDamage * 0.5, 50), 0f, player.whoAmI);
|
||||
|
||||
else if (item.ranged)
|
||||
Projectile.NewProjectile(position, velocity * 1.5f, ModContent.ProjectileType<LuxorsGiftRanged>(), CalamityUtils.DamageSoftCap(newDamage * 0.275, 40), 0f, player.whoAmI);
|
||||
Projectile.NewProjectile(position, velocity * 1.5f, ModContent.ProjectileType<LuxorsGiftRanged>(), CalamityUtils.DamageSoftCap(newDamage * 0.4, 40), 0f, player.whoAmI);
|
||||
|
||||
else if (item.magic)
|
||||
Projectile.NewProjectile(position, velocity, ModContent.ProjectileType<LuxorsGiftMagic>(), CalamityUtils.DamageSoftCap(newDamage * 0.525, 80), 0f, player.whoAmI);
|
||||
Projectile.NewProjectile(position, velocity, ModContent.ProjectileType<LuxorsGiftMagic>(), CalamityUtils.DamageSoftCap(newDamage * 0.8, 80), 0f, player.whoAmI);
|
||||
|
||||
else if (item.summon && player.ownedProjectileCounts[ModContent.ProjectileType<LuxorsGiftSummon>()] < 1)
|
||||
Projectile.NewProjectile(position, Vector2.Zero, ModContent.ProjectileType<LuxorsGiftSummon>(), damage, 0f, player.whoAmI);
|
||||
@@ -1125,7 +1126,7 @@ namespace CalamityMod.Items
|
||||
break;
|
||||
|
||||
case CalamityRarity.ItemSpecific:
|
||||
// Uniquely colored developer weapons
|
||||
// Uniquely colored developer items
|
||||
if (item.type == ModContent.ItemType<Fabstaff>())
|
||||
tt2.overrideColor = new Color(Main.DiscoR, 100, 255);
|
||||
if (item.type == ModContent.ItemType<BlushieStaff>())
|
||||
@@ -1137,19 +1138,31 @@ namespace CalamityMod.Items
|
||||
if (item.type == ModContent.ItemType<ProfanedSoulCrystal>())
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(255, 166, 0), new Color(25, 250, 25), 4f); //alternates between emerald green and amber (BanditHueh)
|
||||
if (item.type == ModContent.ItemType<BensUmbrella>())
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(210, 0, 255), new Color(255, 248, 24), 2f);
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(210, 0, 255), new Color(255, 248, 24), 4f);
|
||||
if (item.type == ModContent.ItemType<Endogenesis>())
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(131, 239, 255), new Color(36, 55, 230), 2f);
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(131, 239, 255), new Color(36, 55, 230), 4f);
|
||||
if (item.type == ModContent.ItemType<DraconicDestruction>())
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(255, 69, 0), new Color(139, 0, 0), 2f);
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(255, 69, 0), new Color(139, 0, 0), 4f);
|
||||
if (item.type == ModContent.ItemType<ScarletDevil>())
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(191, 45, 71), new Color(185, 187, 253), 2f);
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(191, 45, 71), new Color(185, 187, 253), 4f);
|
||||
if (item.type == ModContent.ItemType<RedSun>())
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(204, 86, 80), new Color(237, 69, 141), 4f);
|
||||
if (item.type == ModContent.ItemType<GaelsGreatsword>())
|
||||
tt2.overrideColor = new Color(146, 0, 0);
|
||||
if (item.type == ModContent.ItemType<CrystylCrusher>())
|
||||
tt2.overrideColor = new Color(129, 29, 149);
|
||||
if (item.type == ModContent.ItemType<Svantechnical>())
|
||||
tt2.overrideColor = new Color(220, 20, 60);
|
||||
if (item.type == ModContent.ItemType<SomaPrime>())
|
||||
tt2.overrideColor = new Color(254, 253, 235);
|
||||
if (item.type == ModContent.ItemType<Contagion>())
|
||||
tt2.overrideColor = new Color(207, 17, 117);
|
||||
if (item.type == ModContent.ItemType<TriactisTruePaladinianMageHammerofMightMelee>() || item.type == ModContent.ItemType<TriactisTruePaladinianMageHammerofMight>())
|
||||
tt2.overrideColor = new Color(227, 226, 180);
|
||||
if (item.type == ModContent.ItemType<RoyalKnivesMelee>() || item.type == ModContent.ItemType<RoyalKnives>())
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(154, 255, 151), new Color(228, 151, 255), 4f);
|
||||
if (item.type == ModContent.ItemType<DemonshadeHelm>() || item.type == ModContent.ItemType<DemonshadeBreastplate>() || item.type == ModContent.ItemType<DemonshadeGreaves>())
|
||||
tt2.overrideColor = CalamityUtils.ColorSwap(new Color(255, 132, 22), new Color(221, 85, 7), 4f);
|
||||
if (item.type == ModContent.ItemType<PrototypeAndromechaRing>())
|
||||
{
|
||||
if (Main.GlobalTime % 1f < 0.6f)
|
||||
@@ -1165,6 +1178,22 @@ namespace CalamityMod.Items
|
||||
tt2.overrideColor = Color.Lerp(Color.White, new Color(89, 229, 255), (Main.GlobalTime % 1f - 0.8f) / 0.2f);
|
||||
}
|
||||
}
|
||||
if (item.type == ModContent.ItemType<Earth>())
|
||||
{
|
||||
List<Color> earthColors = new List<Color>()
|
||||
{
|
||||
new Color(255, 99, 146),
|
||||
new Color(255, 228, 94),
|
||||
new Color(127, 200, 248)
|
||||
};
|
||||
if (tt2 != null)
|
||||
{
|
||||
int colorIndex = (int)(Main.GlobalTime / 2 % earthColors.Count);
|
||||
Color currentColor = earthColors[colorIndex];
|
||||
Color nextColor = earthColors[(colorIndex + 1) % earthColors.Count];
|
||||
tt2.overrideColor = Color.Lerp(currentColor, nextColor, Main.GlobalTime % 2f > 1f ? 1f : Main.GlobalTime % 1f);
|
||||
}
|
||||
}
|
||||
|
||||
// Uniquely colored legendary weapons and Yharim's Crystal
|
||||
if (item.type == ModContent.ItemType<AegisBlade>() || item.type == ModContent.ItemType<YharimsCrystal>())
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using CalamityMod.Tiles;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items
|
||||
@@ -16,6 +18,13 @@ namespace CalamityMod.Items
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.value = Item.buyPrice(0, 0, 0, 1);
|
||||
item.createTile = ModContent.TileType<PlacedRock>();
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.autoReuse = true;
|
||||
item.consumable = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Items.Tools
|
||||
{
|
||||
item.width = 62;
|
||||
item.height = 62;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 500;
|
||||
item.melee = true;
|
||||
item.useAnimation = 16;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
CalamityGlobalItem modItem = item.Calamity();
|
||||
|
||||
item.damage = 67;
|
||||
item.damage = 80;
|
||||
modItem.rogue = true;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
item.width = 56;
|
||||
item.height = 52;
|
||||
item.damage = 84;
|
||||
item.damage = 100;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.channel = true;
|
||||
@@ -56,6 +56,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, swingOffset);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
|
||||
@@ -24,10 +24,11 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.melee = true;
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.scale = 1.5f;
|
||||
item.useTime = 24;
|
||||
item.useAnimation = 24;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTurn = false;
|
||||
item.useTurn = true;
|
||||
item.knockBack = 7f;
|
||||
|
||||
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.height = 22;
|
||||
item.magic = true;
|
||||
item.mana = 6;
|
||||
item.damage = 130;
|
||||
item.damage = 110;
|
||||
item.knockBack = 11f;
|
||||
item.useTime = item.useAnimation = 20;
|
||||
item.autoReuse = true;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
item.width = 22;
|
||||
item.height = 28;
|
||||
item.damage = 8572;
|
||||
item.damage = 9572;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.consumable = true;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
public class PulseRifle : ModItem
|
||||
{
|
||||
private int BaseDamage = 6560;
|
||||
private int BaseDamage = 8560;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
CalamityGlobalItem modItem = item.Calamity();
|
||||
|
||||
item.shootSpeed = 10f;
|
||||
item.damage = 40;
|
||||
item.damage = 55;
|
||||
item.mana = 12;
|
||||
item.width = 38;
|
||||
item.height = 24;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.width = 50;
|
||||
item.height = 26;
|
||||
item.ranged = true;
|
||||
item.damage = 28;
|
||||
item.damage = 22;
|
||||
item.knockBack = 0f;
|
||||
item.useTime = item.useAnimation = 28;
|
||||
item.autoReuse = true;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
public class TeslaCannon : ModItem
|
||||
{
|
||||
private int BaseDamage = 10000;
|
||||
private int BaseDamage = 15000;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
CalamityGlobalItem modItem = item.Calamity();
|
||||
|
||||
item.damage = 34;
|
||||
item.damage = 102;
|
||||
modItem.rogue = true;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
num80 = num72 / num80;
|
||||
}
|
||||
|
||||
int num107 = 10;
|
||||
int num107 = 3;
|
||||
for (int num108 = 0; num108 < num107; num108++)
|
||||
{
|
||||
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 - 600f);
|
||||
@@ -95,8 +95,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
num80 = num72 / num80;
|
||||
num78 *= num80;
|
||||
num79 *= num80;
|
||||
float speedX4 = num78 + (float)Main.rand.Next(-120, 121) * 0.02f;
|
||||
float speedY5 = num79 + (float)Main.rand.Next(-120, 121) * 0.02f;
|
||||
float speedX4 = num78 + (float)Main.rand.Next(-30, 31) * 0.02f;
|
||||
float speedY5 = num79 + (float)Main.rand.Next(-30, 31) * 0.02f;
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<AuraRain>(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10));
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -20,7 +20,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 58;
|
||||
item.damage = 68;
|
||||
item.height = 58;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 68;
|
||||
item.melee = true;
|
||||
item.useAnimation = item.useTime = 15;
|
||||
item.useTurn = true;
|
||||
@@ -28,7 +30,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 4.25f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 58;
|
||||
item.rare = 7;
|
||||
item.value = Item.buyPrice(0, 60, 0, 0);
|
||||
item.shootSpeed = 14f;
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.melee = true;
|
||||
item.width = 54;
|
||||
item.height = 58;
|
||||
item.scale = 1.5f;
|
||||
item.useTime = 28;
|
||||
item.useAnimation = 28;
|
||||
item.useTurn = true;
|
||||
|
||||
@@ -17,7 +17,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 62;
|
||||
item.damage = 55;
|
||||
item.height = 62;
|
||||
item.scale = 2f;
|
||||
item.damage = 55;
|
||||
item.melee = true;
|
||||
item.useAnimation = 30;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -26,7 +28,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 8f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 62;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.width = 82;
|
||||
item.height = 84;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 4000;
|
||||
item.melee = true;
|
||||
item.useAnimation = 11;
|
||||
|
||||
@@ -18,11 +18,12 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 95;
|
||||
item.damage = 110;
|
||||
item.crit += 25;
|
||||
item.melee = true;
|
||||
item.width = 60;
|
||||
item.height = 60;
|
||||
item.width = 80;
|
||||
item.height = 80;
|
||||
item.scale = 1.5f;
|
||||
item.useTime = 9;
|
||||
item.useAnimation = 9;
|
||||
item.useTurn = true;
|
||||
|
||||
@@ -18,7 +18,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 64;
|
||||
item.damage = 60;
|
||||
item.height = 64;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 60;
|
||||
item.melee = true;
|
||||
item.useAnimation = 30;
|
||||
item.useTime = 30;
|
||||
@@ -27,7 +29,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 7.25f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 64;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.width = 60;
|
||||
item.height = 64;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 158;
|
||||
item.melee = true;
|
||||
item.useAnimation = 10;
|
||||
|
||||
@@ -26,12 +26,14 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useTime = 19;
|
||||
item.knockBack = 7.5f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = false;
|
||||
item.autoReuse = true;
|
||||
item.height = 56;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
item.shoot = ModContent.ProjectileType<BrimlanceProj>();
|
||||
item.shootSpeed = 12f;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
}
|
||||
}
|
||||
@@ -17,8 +17,10 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 54;
|
||||
item.damage = 120;
|
||||
item.width = 46;
|
||||
item.height = 62;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 120;
|
||||
item.melee = true;
|
||||
item.useAnimation = 22;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -27,7 +29,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 7.75f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 54;
|
||||
item.value = Item.buyPrice(0, 80, 0, 0);
|
||||
item.rare = 8;
|
||||
item.shootSpeed = 9f;
|
||||
@@ -81,7 +82,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
num79 *= num80;
|
||||
float num114 = num78;
|
||||
float num115 = num79 + (float)Main.rand.Next(-40, 41) * 0.02f;
|
||||
int proj = Projectile.NewProjectile(vector2.X, vector2.Y, num114 * 0.75f, num115 * 0.75f, ModContent.ProjectileType<CometQuasherMeteor>(), (int)(item.damage * player.MeleeDamage() * 0.75f), knockback, player.whoAmI, 0f, 0.5f + (float)Main.rand.NextDouble() * 0.3f);
|
||||
int proj = Projectile.NewProjectile(vector2.X, vector2.Y, num114 * 0.75f, num115 * 0.75f, ModContent.ProjectileType<CometQuasherMeteor>(), (int)(item.damage * player.MeleeDamage() * 0.5f), knockback, player.whoAmI, 0f, 0.5f + (float)Main.rand.NextDouble() * 0.3f);
|
||||
Main.projectile[proj].Calamity().lineColor = Main.rand.Next(3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,16 +34,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 10f;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
for (int i = 0; i < 1000; ++i)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 92;
|
||||
item.damage = 840;
|
||||
item.height = 104;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 840;
|
||||
item.melee = true;
|
||||
item.useAnimation = 16;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -34,10 +36,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 9.5f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 104;
|
||||
item.value = Item.buyPrice(5, 0, 0, 0);
|
||||
item.rare = 10;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
|
||||
|
||||
@@ -27,12 +27,14 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useTime = 25;
|
||||
item.knockBack = 7f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = false;
|
||||
item.autoReuse = true;
|
||||
item.height = 60;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
item.shoot = ModContent.ProjectileType<EarthenPikeSpear>();
|
||||
item.shootSpeed = 6f;
|
||||
item.shootSpeed = 8f;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 62;
|
||||
item.damage = 55;
|
||||
item.height = 62;
|
||||
item.scale = 2f;
|
||||
item.damage = 55;
|
||||
item.melee = true;
|
||||
item.useAnimation = item.useTime = 30;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -25,7 +27,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 8f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 62;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
item.Calamity().customRarity = CalamityRarity.RareVariant;
|
||||
|
||||
@@ -35,19 +35,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 8f;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
for (int i = 0; i < 1000; ++i)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CruptixBar>(), 10);
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.width = 60;
|
||||
item.height = 64;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 53;
|
||||
item.melee = true;
|
||||
item.useAnimation = 22;
|
||||
@@ -31,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.autoReuse = true;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
item.shootSpeed = 6f;
|
||||
item.shootSpeed = 8f;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
@@ -46,21 +47,20 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.autoReuse = false;
|
||||
item.shoot = ModContent.ProjectileType<FulgurationHalberdProj>();
|
||||
}
|
||||
return player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
item.noMelee = false;
|
||||
item.noUseGraphic = false;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ProjectileID.None;
|
||||
}
|
||||
return base.CanUseItem(player);
|
||||
return base.CanUseItem(player);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
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<FulgurationHalberdProj>(), damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
return false;
|
||||
|
||||
@@ -36,16 +36,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
for (int i = 0; i < Main.maxProjectiles; ++i)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useTime = 23;
|
||||
item.knockBack = 5.75f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = false;
|
||||
item.autoReuse = true;
|
||||
item.height = 54;
|
||||
item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
item.rare = 3;
|
||||
@@ -35,7 +35,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 10);
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.melee = true;
|
||||
item.width = 62;
|
||||
item.height = 62;
|
||||
item.scale = 1.5f;
|
||||
item.useTime = 24;
|
||||
item.useAnimation = 24;
|
||||
item.useTurn = true;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useTime = 20;
|
||||
item.knockBack = 7.5f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = false;
|
||||
item.autoReuse = true;
|
||||
item.height = 64;
|
||||
item.value = Item.buyPrice(0, 60, 0, 0);
|
||||
item.rare = 7;
|
||||
@@ -36,7 +36,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 8f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<DraedonBar>(), 12);
|
||||
|
||||
@@ -18,7 +18,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 94;
|
||||
item.damage = 400;
|
||||
item.height = 80;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 400;
|
||||
item.melee = true;
|
||||
item.useAnimation = 22;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -27,7 +29,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 7.75f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 80;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shootSpeed = 10f;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 66;
|
||||
item.damage = 390;
|
||||
item.damage = 350;
|
||||
item.melee = true;
|
||||
item.noMelee = true;
|
||||
item.useTurn = true;
|
||||
@@ -35,16 +35,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 5f;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
for (int i = 0; i < Main.maxProjectiles; ++i)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 98;
|
||||
item.damage = 60;
|
||||
item.height = 98;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 60;
|
||||
item.melee = true;
|
||||
item.useAnimation = 22;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -25,7 +27,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 7.5f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 98;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.damage = 90;
|
||||
item.width = 54;
|
||||
item.height = 62;
|
||||
item.scale = 1.5f;
|
||||
item.melee = true;
|
||||
item.useAnimation = 24;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useTime = 21;
|
||||
item.knockBack = 5.25f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = false;
|
||||
item.autoReuse = true;
|
||||
item.height = 50;
|
||||
item.value = Item.buyPrice(0, 2, 0, 0);
|
||||
item.rare = 2;
|
||||
@@ -33,7 +33,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 5);
|
||||
|
||||
@@ -43,15 +43,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = ShootSpeed;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
for (int i = 0; i < Main.projectile.Length; ++i)
|
||||
if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<SpatialLance>());
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.damage = 75;
|
||||
item.melee = true;
|
||||
item.width = item.height = 52;
|
||||
item.scale = 1.5f;
|
||||
item.useTime = 23;
|
||||
item.useAnimation = 23;
|
||||
item.useTurn = true;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<RSSolarFlare>();
|
||||
item.shootSpeed = 15f;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<IllustriousKnife>();
|
||||
item.shootSpeed = 9f;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useTime = 20;
|
||||
item.knockBack = 6.25f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = false;
|
||||
item.autoReuse = true;
|
||||
item.height = 42;
|
||||
item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
item.rare = 3;
|
||||
@@ -35,7 +35,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 6f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodSample>(), 8);
|
||||
|
||||
@@ -37,19 +37,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
for (int i = 0; i < 1000; ++i)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TerraLance>());
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useTime = 23;
|
||||
item.knockBack = 6;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = false;
|
||||
item.autoReuse = true;
|
||||
item.height = 72;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
@@ -35,7 +35,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 6f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 12);
|
||||
|
||||
@@ -17,7 +17,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 84;
|
||||
item.damage = 640;
|
||||
item.height = 90;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 640;
|
||||
item.melee = true;
|
||||
item.useAnimation = 25;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -26,7 +28,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 7.75f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 90;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shootSpeed = 12f;
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/StreamGougeGlow"));
|
||||
item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/StreamGougeGlow"));
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
@@ -19,7 +19,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 58;
|
||||
item.damage = 112;
|
||||
item.height = 58;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 112;
|
||||
item.melee = true;
|
||||
item.useAnimation = 17;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -28,7 +30,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 6.25f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 58;
|
||||
item.value = Item.buyPrice(0, 80, 0, 0);
|
||||
item.rare = 8;
|
||||
item.shoot = ModContent.ProjectileType<TerraEdgeBeam>();
|
||||
|
||||
@@ -35,19 +35,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 11f;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
for (int i = 0; i < 1000; ++i)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.ChlorophytePartisan);
|
||||
|
||||
@@ -19,7 +19,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 50;
|
||||
item.damage = 125;
|
||||
item.height = 62;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 125;
|
||||
item.melee = true;
|
||||
item.useAnimation = 17;
|
||||
item.useTime = 17;
|
||||
@@ -28,7 +30,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 7f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 62;
|
||||
item.value = Item.buyPrice(0, 80, 0, 0);
|
||||
item.rare = 8;
|
||||
item.shootSpeed = 5f;
|
||||
|
||||
@@ -20,7 +20,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 100;
|
||||
item.damage = 1900;
|
||||
item.height = 100;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 1900;
|
||||
item.melee = true;
|
||||
item.useAnimation = 17;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -29,7 +31,6 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 9f;
|
||||
item.UseSound = SoundID.Item20;
|
||||
item.autoReuse = true;
|
||||
item.height = 100;
|
||||
item.value = Item.buyPrice(1, 80, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<EssenceFireball>();
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.width = 94;
|
||||
item.height = 94;
|
||||
item.scale = 1.5f;
|
||||
item.melee = true;
|
||||
item.damage = BaseDamage;
|
||||
item.knockBack = 8.5f;
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.width = 90;
|
||||
item.height = 90;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 700;
|
||||
item.melee = true;
|
||||
item.useAnimation = 18;
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.width = 46;
|
||||
item.height = 58;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 60;
|
||||
item.crit += 96; //more knockback huehue
|
||||
item.melee = true;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<TriactisOPHammer>();
|
||||
item.shootSpeed = 25f;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -12,16 +12,18 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ultimus Cleaver");
|
||||
Tooltip.SetDefault("Launches damaging homing sparks");
|
||||
Tooltip.SetDefault("Launches damaging homing sparks and explodes on enemy hits");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 130;
|
||||
item.melee = true;
|
||||
item.useTurn = true;
|
||||
item.rare = 8;
|
||||
item.width = 72;
|
||||
item.height = 62;
|
||||
item.scale = 1.5f;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -31,7 +33,50 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.UseSound = SoundID.Item1;
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.OnFire, 600);
|
||||
player.ApplyDamageToNPC(target, (int)(item.damage * (player.allDamage + player.meleeDamage - 1f)), 0f, 0, false);
|
||||
float num50 = 1.7f;
|
||||
float num51 = 0.8f;
|
||||
float num52 = 2f;
|
||||
Vector2 value3 = (target.rotation - 1.57079637f).ToRotationVector2();
|
||||
Vector2 value4 = value3 * target.velocity.Length();
|
||||
Main.PlaySound(SoundID.Item14, target.position);
|
||||
int num3;
|
||||
for (int num53 = 0; num53 < 40; num53 = num3 + 1)
|
||||
{
|
||||
int num54 = Dust.NewDust(new Vector2(target.position.X, target.position.Y), target.width, target.height, 174, 0f, 0f, 200, default, num50);
|
||||
Dust dust = Main.dust[num54];
|
||||
dust.position = target.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)target.width / 2f;
|
||||
dust.noGravity = true;
|
||||
dust.velocity.Y -= 6f;
|
||||
dust.velocity *= 3f;
|
||||
dust.velocity += value4 * Main.rand.NextFloat();
|
||||
num54 = Dust.NewDust(new Vector2(target.position.X, target.position.Y), target.width, target.height, 174, 0f, 0f, 100, default, num51);
|
||||
dust.position = target.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)target.width / 2f;
|
||||
dust.velocity.Y -= 6f;
|
||||
dust.velocity *= 2f;
|
||||
dust.noGravity = true;
|
||||
dust.fadeIn = 1f;
|
||||
dust.color = Color.Crimson * 0.5f;
|
||||
dust.velocity += value4 * Main.rand.NextFloat();
|
||||
num3 = num53;
|
||||
}
|
||||
for (int num55 = 0; num55 < 20; num55 = num3 + 1)
|
||||
{
|
||||
int num56 = Dust.NewDust(new Vector2(target.position.X, target.position.Y), target.width, target.height, 174, 0f, 0f, 0, default, num52);
|
||||
Dust dust = Main.dust[num56];
|
||||
dust.position = target.Center + Vector2.UnitX.RotatedByRandom(3.1415927410125732).RotatedBy((double)target.velocity.ToRotation(), default) * (float)target.width / 3f;
|
||||
dust.noGravity = true;
|
||||
dust.velocity.Y -= 6f;
|
||||
dust.velocity *= 0.5f;
|
||||
dust.velocity += value4 * (0.6f + 0.6f * Main.rand.NextFloat());
|
||||
num3 = num55;
|
||||
}
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
@@ -97,7 +142,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
num342 *= (float)player.direction;
|
||||
num341 *= player.gravDir;
|
||||
Projectile.NewProjectile((float)(hitbox.X + hitbox.Width / 2) + num342, (float)(hitbox.Y + hitbox.Height / 2) + num341,
|
||||
(float)player.direction * num340, num339 * player.gravDir, ModContent.ProjectileType<UltimusCleaverDust>(), (int)(item.damage * player.MeleeDamage() * 0.1f), 0f, player.whoAmI, 0f, 0f);
|
||||
(float)player.direction * num340, num339 * player.gravDir, ModContent.ProjectileType<UltimusCleaverDust>(), (int)(item.damage * player.MeleeDamage() * 0.1), 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useTime = 25;
|
||||
item.knockBack = 5f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = false;
|
||||
item.autoReuse = true;
|
||||
item.height = 56;
|
||||
item.value = Item.buyPrice(0, 2, 0, 0);
|
||||
item.rare = 2;
|
||||
@@ -35,7 +35,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 4f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<VictideBar>(), 4);
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.melee = true;
|
||||
item.noMelee = true;
|
||||
item.channel = true;
|
||||
item.autoReuse = false;
|
||||
item.autoReuse = true;
|
||||
item.useTurn = true;
|
||||
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
@@ -58,19 +58,22 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.damage = 20;
|
||||
item.channel = false;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 33;
|
||||
item.useTime = 33;
|
||||
item.shootSpeed = 4.5f;
|
||||
}
|
||||
return player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
item.damage = BaseDamage;
|
||||
item.channel = true;
|
||||
item.autoReuse = false;
|
||||
item.useAnimation = 22;
|
||||
item.useTime = 22;
|
||||
item.shootSpeed = ShootSpeed;
|
||||
}
|
||||
return base.CanUseItem(player);
|
||||
return base.CanUseItem(player);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 232;
|
||||
item.damage = 200;
|
||||
item.ranged = true;
|
||||
item.width = 44;
|
||||
item.height = 100;
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.shoot = ModContent.ProjectileType<ContagionBow>();
|
||||
item.shootSpeed = 20f;
|
||||
item.useAmmo = AmmoID.Arrow;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
@@ -52,8 +52,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
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;
|
||||
int onyx = Projectile.NewProjectile(position.X, position.Y, shardVelocityX, shardVelocityY, ProjectileID.BlackBolt, shardDamage, shardKB, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[onyx].timeLeft -= 20;
|
||||
Projectile.NewProjectile(position.X, position.Y, shardVelocityX, shardVelocityY, ProjectileID.BlackBolt, shardDamage, shardKB, player.whoAmI, 0f, 0f);
|
||||
|
||||
// Fire three symmetric pairs of bullets alongside it
|
||||
Vector2 baseVelocity = new Vector2(speedX, speedY);
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.shoot = ModContent.ProjectileType<SlashRound>();
|
||||
item.shootSpeed = 30f;
|
||||
item.useAmmo = AmmoID.Bullet;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.rare = 9;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<CosmicFire>();
|
||||
item.shootSpeed = 7.5f;
|
||||
item.shootSpeed = 9f;
|
||||
item.useAmmo = AmmoID.Gel;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.shoot = ModContent.ProjectileType<IllustriousKnife>();
|
||||
item.shootSpeed = 9f;
|
||||
item.Calamity().rogue = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.shoot = ModContent.ProjectileType<TriactisOPHammer>();
|
||||
item.shootSpeed = 25f;
|
||||
item.Calamity().rogue = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -8,6 +8,7 @@ using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using System.IO;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
|
||||
namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
@@ -27,18 +28,15 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
npc.width = 26;
|
||||
npc.height = 14;
|
||||
|
||||
npc.damage = 10;
|
||||
npc.lifeMax = 30;
|
||||
|
||||
if (CalamityWorld.downedPolterghast)
|
||||
{
|
||||
npc.damage = 60;
|
||||
npc.lifeMax = 2250;
|
||||
npc.defense = 10;
|
||||
}
|
||||
else if (CalamityWorld.downedAquaticScourge)
|
||||
{
|
||||
npc.damage = 30;
|
||||
npc.lifeMax = 90;
|
||||
}
|
||||
|
||||
@@ -120,6 +118,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
if (npc.Distance(destination) < 45f)
|
||||
{
|
||||
player.AddBuff(BuffID.Bleeding, 180, true);
|
||||
player.AddBuff(ModContent.BuffType<HeavyBleeding>(), 30, true);
|
||||
}
|
||||
else if (!npc.wet && npc.Distance(destination) > 85f)
|
||||
{
|
||||
|
||||
+4
-4
@@ -4669,11 +4669,11 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (BossRushEvent.BossRushActive)
|
||||
{
|
||||
idlePhaseTimer = 35;
|
||||
idlePhaseAcceleration *= 1.1f;
|
||||
idlePhaseVelocity *= 1.15f;
|
||||
idlePhaseTimer = 45;
|
||||
idlePhaseAcceleration *= 1.06f;
|
||||
idlePhaseVelocity *= 1.12f;
|
||||
chargeTime -= 3;
|
||||
chargeVelocity *= 1.25f;
|
||||
chargeVelocity *= 1.15f;
|
||||
}
|
||||
|
||||
if (calamityGlobalNPC.newAI[1] == 1f)
|
||||
|
||||
@@ -4610,7 +4610,7 @@ namespace CalamityMod.NPCs
|
||||
if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height))
|
||||
{
|
||||
// Laser speed
|
||||
float projectileSpeed = npc.ai[2] == 0f ? 2f : 4f;
|
||||
float projectileSpeed = npc.ai[2] == 0f ? 4f : 2f;
|
||||
projectileSpeed += enrageScale;
|
||||
if (phase2)
|
||||
projectileSpeed += 0.25f;
|
||||
|
||||
+24
-24
@@ -338,6 +338,13 @@ namespace CalamityMod.NPCs
|
||||
NPCID.TheDestroyerTail
|
||||
};
|
||||
|
||||
public static List<int> DarkEnergyIDs = new List<int>
|
||||
{
|
||||
NPCType<DarkEnergy>(),
|
||||
NPCType<DarkEnergy2>(),
|
||||
NPCType<DarkEnergy3>()
|
||||
};
|
||||
|
||||
public static List<int> StormWeaverIDs = new List<int>
|
||||
{
|
||||
NPCType<StormWeaverHeadNaked>(),
|
||||
@@ -838,7 +845,7 @@ namespace CalamityMod.NPCs
|
||||
npc.buffImmune[BuffID.Slow] = true;
|
||||
}
|
||||
|
||||
if (DestroyerIDs.Contains(npc.type) || (EaterofWorldsIDs.Contains(npc.type) && BossRushEvent.BossRushActive) || npc.type == NPCID.DD2EterniaCrystal || npc.townNPC || npc.type == NPCID.SpikeBall || npc.type == NPCID.BlazingWheel)
|
||||
if (DestroyerIDs.Contains(npc.type) || npc.type == NPCID.SkeletronHead || (EaterofWorldsIDs.Contains(npc.type) && BossRushEvent.BossRushActive) || npc.type == NPCID.DD2EterniaCrystal || npc.townNPC || npc.type == NPCID.SpikeBall || npc.type == NPCID.BlazingWheel)
|
||||
{
|
||||
for (int k = 0; k < npc.buffImmune.Length; k++)
|
||||
{
|
||||
@@ -3051,30 +3058,11 @@ namespace CalamityMod.NPCs
|
||||
GrenadeResist(projectile, ref damage);
|
||||
PierceResistGlobal(projectile, ref damage);
|
||||
|
||||
// Old resists
|
||||
/*if (projectile.type == ProjectileType<AtlantisSpear2>())
|
||||
{
|
||||
damage = (int)(damage * 0.1);
|
||||
}
|
||||
else if (projectile.type == ProjectileType<DormantBrimseekerBab>())
|
||||
{
|
||||
damage = (int)(damage * 0.2);
|
||||
}
|
||||
else if (projectile.type == player.beeType() || projectile.type == ProjectileType<MalachiteBolt>())
|
||||
{
|
||||
damage = (int)(damage * 0.4);
|
||||
}*/
|
||||
|
||||
// New resists
|
||||
if (projectile.type == ProjectileType<RainbowBoom>() || projectile.type == ProjectileType<RainBolt>())
|
||||
{
|
||||
damage = (int)(damage * 0.2);
|
||||
}
|
||||
else if (ProjectileID.Sets.StardustDragon[projectile.type] || projectile.type == ProjectileType<PlaguenadeBee>() || projectile.type == ProjectileType<PlaguenadeProj>())
|
||||
if (ProjectileID.Sets.StardustDragon[projectile.type] || projectile.type == ProjectileType<PlaguenadeBee>() || projectile.type == ProjectileType<PlaguenadeProj>())
|
||||
{
|
||||
damage = (int)(damage * 0.25);
|
||||
}
|
||||
else if (projectile.type == ProjectileID.DD2BetsyArrow || projectile.type == ProjectileType<ForbiddenSunProjectile>() || projectile.type == ProjectileType<ForbiddenSunburst>() || projectile.type == ProjectileType<Tornado>())
|
||||
else if (projectile.type == ProjectileType<RainbowBoom>() || projectile.type == ProjectileType<RainBolt>() || projectile.type == ProjectileID.DD2BetsyArrow || projectile.type == ProjectileType<ForbiddenSunProjectile>() || projectile.type == ProjectileType<ForbiddenSunburst>() || projectile.type == ProjectileType<Tornado>())
|
||||
{
|
||||
damage = (int)(damage * 0.5);
|
||||
}
|
||||
@@ -3087,7 +3075,7 @@ namespace CalamityMod.NPCs
|
||||
damage = (int)(damage * 0.75);
|
||||
}
|
||||
}
|
||||
else if (CosmicGuardianIDs.Contains(npc.type))
|
||||
else if (CosmicGuardianIDs.Contains(npc.type) || DarkEnergyIDs.Contains(npc.type))
|
||||
{
|
||||
GrenadeResist(projectile, ref damage);
|
||||
PierceResistGlobal(projectile, ref damage);
|
||||
@@ -3115,6 +3103,10 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
damage = (int)(damage * 0.5);
|
||||
}
|
||||
else if (projectile.type == ProjectileType<WavePounderBoom>())
|
||||
{
|
||||
damage = (int)(damage * 0.4);
|
||||
}
|
||||
else if (ProjectileID.Sets.StardustDragon[projectile.type])
|
||||
{
|
||||
damage = (int)(damage * 0.1);
|
||||
@@ -3133,6 +3125,10 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
damage = (int)(damage * 0.5);
|
||||
}
|
||||
else if (projectile.type == ProjectileType<VoltageStream>())
|
||||
{
|
||||
damage = (int)(damage * 0.45);
|
||||
}
|
||||
else if (projectile.type == ProjectileType<SulphuricNukesplosion>())
|
||||
{
|
||||
damage = (int)(damage * 0.38);
|
||||
@@ -3151,6 +3147,10 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
damage = (int)(damage * 0.9);
|
||||
}
|
||||
else if (projectile.type == ProjectileType<VoltageStream>())
|
||||
{
|
||||
damage = (int)(damage * 0.75);
|
||||
}
|
||||
if (projectile.type == ProjectileType<SHPExplosion>() || projectile.type == ProjectileType<DormantBrimseekerBab>() || projectile.type == ProjectileType<PoleWarperSummon>())
|
||||
{
|
||||
damage = (int)(damage * 0.5);
|
||||
@@ -4341,7 +4341,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
else if (DestroyerIDs.Contains(npc.type))
|
||||
{
|
||||
if (drawColor != Color.Black && ((newAI[3] >= 900f && npc.life / (float)npc.lifeMax < 0.5f) || (newAI[1] < 600f && newAI[1] > 60f)))
|
||||
if (drawColor != Color.Black && npc.ai[2] == 0f && ((newAI[3] >= 900f && npc.life / (float)npc.lifeMax < 0.5f) || (newAI[1] < 600f && newAI[1] > 60f)))
|
||||
{
|
||||
Vector2 halfSize = npc.frame.Size() / 2;
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
|
||||
@@ -300,15 +300,6 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
return CalamityGlobalNPC.voidBoss < 0 || !Main.npc[CalamityGlobalNPC.voidBoss].active;
|
||||
}
|
||||
|
||||
public override void OnHitByProjectile(Projectile projectile, int damage, float knockback, bool crit)
|
||||
{
|
||||
if (CalamityWorld.DoGSecondStageCountdown <= 0 || !CalamityWorld.downedSentinel1)
|
||||
{
|
||||
if (projectile.type == ModContent.ProjectileType<MoltenAmputatorProj>())
|
||||
damage = (int)(damage * 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.VortexDebuff, 20, true);
|
||||
|
||||
@@ -260,15 +260,6 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
return CalamityGlobalNPC.voidBoss < 0 || !Main.npc[CalamityGlobalNPC.voidBoss].active;
|
||||
}
|
||||
|
||||
public override void OnHitByProjectile(Projectile projectile, int damage, float knockback, bool crit)
|
||||
{
|
||||
if (CalamityWorld.DoGSecondStageCountdown <= 0 || !CalamityWorld.downedSentinel1)
|
||||
{
|
||||
if (projectile.type == ModContent.ProjectileType<MoltenAmputatorProj>())
|
||||
damage = (int)(damage * 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.VortexDebuff, 20, true);
|
||||
|
||||
@@ -288,15 +288,6 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
return CalamityGlobalNPC.voidBoss < 0 || !Main.npc[CalamityGlobalNPC.voidBoss].active;
|
||||
}
|
||||
|
||||
public override void OnHitByProjectile(Projectile projectile, int damage, float knockback, bool crit)
|
||||
{
|
||||
if (CalamityWorld.DoGSecondStageCountdown <= 0 || !CalamityWorld.downedSentinel1)
|
||||
{
|
||||
if (projectile.type == ModContent.ProjectileType<MoltenAmputatorProj>())
|
||||
damage = (int)(damage * 0.9);
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
player.AddBuff(BuffID.VortexDebuff, 20, true);
|
||||
|
||||
@@ -694,7 +694,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
if (bulletHellCounter2 % 30 == 0) //projectiles that move in wave pattern
|
||||
{
|
||||
int random = Main.rand.Next(-1000, 1001);
|
||||
int random = Main.rand.Next(-500, 501);
|
||||
Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + random, -5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneWave>(), waveDamage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.position.X - 1000f, player.position.Y - random, 5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneWave>(), waveDamage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
{
|
||||
npc.ai[1] += 1f;
|
||||
}
|
||||
if (npc.ai[1] >= 30f)
|
||||
if (npc.ai[1] >= 45f)
|
||||
{
|
||||
npc.ai[1] = 0f;
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SCalSounds/BrimstoneHellblastSound"), npc.Center);
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Main.PlaySound(SoundID.Item33, (int)projectile.position.X, (int)projectile.position.Y);
|
||||
projectile.localAI[1] = 1f;
|
||||
}
|
||||
if (projectile.velocity.Length() < 14f)
|
||||
if (projectile.velocity.Length() < 12f)
|
||||
{
|
||||
projectile.velocity *= 1.0025f;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Main.PlaySound(SoundID.Item33, (int)projectile.position.X, (int)projectile.position.Y);
|
||||
projectile.localAI[1] = 1f;
|
||||
}
|
||||
if (projectile.velocity.Length() < 14f)
|
||||
if (projectile.velocity.Length() < 12f)
|
||||
{
|
||||
projectile.velocity *= 1.0025f;
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ namespace CalamityMod.Projectiles
|
||||
projectile.localAI[1] = 1f;
|
||||
}
|
||||
|
||||
if (projectile.velocity.Length() < 14f)
|
||||
if (projectile.velocity.Length() < 12f)
|
||||
projectile.velocity *= 1.0025f;
|
||||
|
||||
return false;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
set => projectile.ai[0] = value;
|
||||
}
|
||||
public const int TotalSpins = 2;
|
||||
public const float SpinTime = 60f;
|
||||
public const float SpinTime = 30f;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Frequency Manipulator");
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
projectile.ownerHitCheck = true;
|
||||
projectile.hide = true;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 8;
|
||||
projectile.localNPCHitCooldown = 6;
|
||||
projectile.alpha = 255;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public const float MinEnergyParticleSpeed = 0.25f;
|
||||
public const float MaxEnergyParticleSpeed = 4f;
|
||||
public const float EnergyChargeRadiusRatio = 1.45f;
|
||||
public const float ChargeTime = 60f;
|
||||
public const float ChargeTime = 30f;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Gauss Shot");
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
Dust dust = Dust.NewDustPerfect(projectile.Center, 263);
|
||||
dust.velocity = angle.ToRotationVector2().RotatedByRandom(0.25f) * Main.rand.NextFloat(6f, 8f);
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2.1f;
|
||||
dust.scale = 1.6f;
|
||||
}
|
||||
}
|
||||
// Ring dust.
|
||||
@@ -54,10 +54,11 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
Dust dust = Dust.NewDustPerfect(projectile.Center + angle.ToRotationVector2() * radius, 226);
|
||||
dust.velocity = Vector2.Zero;
|
||||
dust.noGravity = true;
|
||||
dust.scale = 2f;
|
||||
dust.scale = 1.5f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
if (Main.myPlayer == projectile.owner)
|
||||
|
||||
@@ -22,8 +22,9 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
projectile.width = projectile.height = 500;
|
||||
projectile.friendly = true;
|
||||
projectile.ranged = true;
|
||||
projectile.penetrate = 1;
|
||||
projectile.timeLeft = 60;
|
||||
projectile.tileCollide = false;
|
||||
projectile.penetrate = -1;
|
||||
projectile.timeLeft = 40;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 8;
|
||||
}
|
||||
@@ -41,7 +42,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
dust.velocity = dust.velocity.RotatedByRandom(0.4f);
|
||||
dust.velocity = dust.velocity.RotatedBy(Time / 60f * MathHelper.ToRadians(720f));
|
||||
dust.velocity *= Main.rand.NextFloat(20f, 50f);
|
||||
dust.scale = Main.rand.NextFloat(1.7f, 2.1f);
|
||||
dust.scale = Main.rand.NextFloat(1.2f, 1.6f);
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
Loaded 100 of 133 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user