Replaced all line endings with LF

This commit is contained in:
Ozzatron committed 2022-04-02 15:52:15 -04:00
1 parent 1cded2a64a
commit dfde4a9e1b
545 files changed
+817 -817

No files matched your search

+1 -1
View File
@@ -8,4 +8,4 @@ namespace CalamityMod.Balancing
void ApplyBalancingChange(NPC npc, ref int damage);
}
}
}
+2 -2
View File
@@ -9,11 +9,11 @@ namespace CalamityMod.Buffs.DamageOverTime
public class Shred : ModBuff
{
internal const int StackFalloffFrames = 320;
// 75 DPS (15x5) per stack may seem low, but it gets boosted by ranged stats and can supercrit.
internal static int BaseDamage = 15;
internal static int FramesPerDamageTick = 12;
public override void SetDefaults()
{
DisplayName.SetDefault("Shred");
+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.DamageOverTime
public override void SetDefaults()
{
DisplayName.SetDefault("Sulphuric Poisoning");
Description.SetDefault("The acidic water burns away your flesh");
Description.SetDefault("The acidic water burns away your flesh");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Buffs.DamageOverTime
public const int CalamityDuration = 24;
public const int AflameDuration = 120;
public override void SetDefaults()
{
DisplayName.SetDefault("Vulnerability Hex");
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Buffs.Pets
player.Calamity().littleLightPet = true;
bool petProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<LittleLightProj>()] <= 0;
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer)
Projectile.NewProjectile(player.Center, -Vector2.UnitY * 10f, ModContent.ProjectileType<LittleLightProj>(), 0, 0f, player.whoAmI, 0f, 0f);
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ namespace CalamityMod.Buffs.Pets
}
}
}
}
}
+1 -1
View File
@@ -20,4 +20,4 @@ namespace CalamityMod.Buffs.Potions
player.Calamity().baguette = true;
}
}
}
}
+2 -2
View File
@@ -4,7 +4,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class ProfanedCrystalBuff : ModBuff
public class ProfanedCrystalBuff : ModBuff
{
public override void SetDefaults()
{
@@ -42,7 +42,7 @@ namespace CalamityMod.Buffs.StatBuffs
bool offense = (Main.dayTime && !player.wet) || player.lavaWet;
bool enrage = player.statLife <= (int)(player.statLifeMax2 * 0.5);
tip = "You are an emissary of the profaned goddess now!\n" +
(offense ? "The " + (Main.dayTime ? "light of the sun" : "heat of the lava") + " empowers your offensive capabilities" :
(offense ? "The " + (Main.dayTime ? "light of the sun" : "heat of the lava") + " empowers your offensive capabilities" :
"The " + (player.wet ? (player.honeyWet ? "honey cools" : "water douses") : "darkness of night cools") + " your flames, empowering your defensive capabilities") +
(enrage ? "\nYour weakened life force fuels your desperate attacks" : "");
}
+7 -7
View File
@@ -2742,7 +2742,7 @@ namespace CalamityMod.CalPlayer
ZoneAbyssLayer4 = ZoneAbyss &&
point.Y > (Main.rockLayer + y * 0.26);
ZoneSulphur = (CalamityWorld.sulphurTiles >= 300 || (player.ZoneOverworldHeight && sulphurPosX)) && !ZoneAbyss;
//Overriding 1.4's ass req boosts
@@ -3244,7 +3244,7 @@ namespace CalamityMod.CalPlayer
rage = 0f;
gaelRageAttackCooldown = CalamityUtils.SecondsToFrames(GaelsGreatsword.SkullsplosionCooldownSeconds);
}
// Activating Rage Mode
if (rage >= rageMax && !rageModeActive)
{
@@ -4398,7 +4398,7 @@ namespace CalamityMod.CalPlayer
for (int i = 0; i < Main.maxProjectiles; i++)
{
Projectile projectile = Main.projectile[i];
if ((projectile.minionSlots <= 0f && !CalamityLists.ZeroMinionSlotExceptionList.Contains(projectile.type)) || !projectile.minion ||
if ((projectile.minionSlots <= 0f && !CalamityLists.ZeroMinionSlotExceptionList.Contains(projectile.type)) || !projectile.minion ||
projectile.owner != player.whoAmI || !projectile.active || CalamityLists.MinionsToNotResurrectList.Contains(projectile.type))
continue;
@@ -4713,7 +4713,7 @@ namespace CalamityMod.CalPlayer
PendingProjectilesToRespawn[i].SummonCopy(player.whoAmI);
// Apply vanilla buffs as usual to the player.
if (VanillaMinionBuffRelationship.ContainsKey(PendingProjectilesToRespawn[i].Type))
player.AddBuff(VanillaMinionBuffRelationship[PendingProjectilesToRespawn[i].Type], 3600);
@@ -5782,7 +5782,7 @@ namespace CalamityMod.CalPlayer
if (daedalusReflect && !disableAllDodges && !projRefRare && !player.HasCooldown(GlobalDodge.ID))
projectileDamageReduction += 0.5;
}
if (beeResist)
{
@@ -9060,7 +9060,7 @@ namespace CalamityMod.CalPlayer
* DGS = (100% + 1% * T)
* EM = (100% + 1% * T) * 1.0084^T
* BOTH = (100% + 1.5% * T) * 1.0084^T
*
*
* DGS alone caps in 100 frames
* EM alone caps in 41 frames
* Both together caps in 32 frames
@@ -10106,7 +10106,7 @@ namespace CalamityMod.CalPlayer
private int HandlePSCAnimationFrames(AnimationType newType)
{
int key = profanedCrystalAnimCounter.Key; //0-based indexing
int key = profanedCrystalAnimCounter.Key; //0-based indexing
int value = profanedCrystalAnimCounter.Value - 1;
AnimationType currentType = key < 8 ? AnimationType.Idle : key == 8 ? AnimationType.Jump : AnimationType.Walk;
+6 -6
View File
@@ -97,7 +97,7 @@ namespace CalamityMod.CalPlayer
Player drawPlayer = drawInfo.drawPlayer;
CalamityPlayer modPlayer = drawPlayer.Calamity();
modPlayer.ProvidenceBurnEffectDrawer.DrawSet(drawPlayer.Bottom - Vector2.UnitY * 10f);
modPlayer.ProvidenceBurnEffectDrawer.SpawnAreaCompactness = 18f;
modPlayer.ProvidenceBurnEffectDrawer.RelativePower = 0.4f;
@@ -405,7 +405,7 @@ namespace CalamityMod.CalPlayer
currentlyHeldItem.type == ModContent.ItemType<EssenceFlayer>() ||
currentlyHeldItem.type == ModContent.ItemType<TheEnforcer>() ||
currentlyHeldItem.type == ModContent.ItemType<TerrorBlade>() ||
currentlyHeldItem.type == ModContent.ItemType<EtherealSubjugator>() ||
currentlyHeldItem.type == ModContent.ItemType<EtherealSubjugator>() ||
(currentlyHeldItem.type == ModContent.ItemType<PrismaticBreaker>() && currentlyHeldItem.useStyle == ItemUseStyleID.SwingThrow))
{
Texture2D texture = ModContent.GetTexture("CalamityMod/Items/Weapons/Melee/ExcelsusGlow");
@@ -542,7 +542,7 @@ namespace CalamityMod.CalPlayer
}
}
});
public static readonly PlayerLayer ForbiddenCircletSign = new PlayerLayer("CalamityMod", "ForbiddenSigil", PlayerLayer.BackAcc, drawInfo =>
{
DrawData drawData = new DrawData();
@@ -680,10 +680,10 @@ namespace CalamityMod.CalPlayer
(itemDrawPosition - Main.screenPosition + drawOffset).Floor(),
new Rectangle?(rectangle),
Color.White,
drawPlayer.itemRotation,
drawPlayer.itemRotation,
origin,
drawPlayer.inventory[drawPlayer.selectedItem].scale,
effect,
effect,
0));
}
});
@@ -850,7 +850,7 @@ namespace CalamityMod.CalPlayer
list[list.IndexOf(PlayerLayer.ShoeAcc)].visible = false;
if (player.Calamity().fab || player.Calamity().crysthamyr || player.Calamity().onyxExcavator)
AddPlayerLayer(list, clAfterAll, list[list.Count - 1], false);
AddPlayerLayer(list, clAfterAll, list[list.Count - 1], false);
if (player.heldProj != -1 && Main.projectile[player.heldProj].active && Main.projectile[player.heldProj].type == ModContent.ProjectileType<RancorHoldout>())
list.Insert(list.IndexOf(PlayerLayer.Arms), DrawRancorBookManually);
+3 -3
View File
@@ -3885,7 +3885,7 @@ namespace CalamityMod.CalPlayer
// 10% is converted to 9%, 25% is converted to 20%, 50% is converted to 33%, 75% is converted to 43%, 100% is converted to 50%
if (player.endurance > 0f)
player.endurance = 1f - (1f / (1f + player.endurance));
// Do not apply reduced aggro if there are any bosses alive and it's singleplayer
if (areThereAnyDamnBosses && Main.netMode == NetmodeID.SinglePlayer)
{
@@ -3950,8 +3950,8 @@ namespace CalamityMod.CalPlayer
armorPenetrationStat = player.armorPenetration;
moveSpeedStat = (int)((player.moveSpeed - 1f) * 100f);
wingFlightTimeStat = player.wingTimeMax / 60f;
float trueJumpSpeedBoost = player.jumpSpeedBoost +
(player.wereWolf ? 0.2f : 0f) +
float trueJumpSpeedBoost = player.jumpSpeedBoost +
(player.wereWolf ? 0.2f : 0f) +
(player.jumpBoost ? 0.75f : 0f);
jumpSpeedStat = trueJumpSpeedBoost * 20f;
rageDamageStat = (int)(100D * RageDamageBoost);
+1 -1
View File
@@ -377,4 +377,4 @@ namespace CalamityMod
}
}
}
}
}
+4 -4
View File
@@ -143,9 +143,9 @@ namespace CalamityMod
(Main.npc[npcIndex4].modNPC as Providence).challenge = reader.ReadBoolean();
break;
//
//
// General syncs for entities
//
//
case CalamityModMessageType.SpawnNPCOnPlayer:
x = reader.ReadInt32();
@@ -241,9 +241,9 @@ namespace CalamityMod
CalamityWorld.encounteredOldDuke = reader.ReadBoolean();
break;
//
//
// Draedon Summoner stuff
//
//
case CalamityModMessageType.CodebreakerSummonStuff:
CalamityWorld.DraedonSummonCountdown = reader.ReadInt32();
CalamityWorld.DraedonSummonPosition = reader.ReadVector2();
+1 -1
View File
@@ -14,4 +14,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(124, 195, 214);
public override Color CooldownEndColor => new Color(147, 230, 253);
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => Color.Lerp(new Color(149, 127, 109), new Color(220, 101, 101), 1 - instance.Completion);
public override Color CooldownEndColor => Color.Lerp(new Color(149, 127, 109), new Color(220, 101, 101), 1 - instance.Completion);
}
}
}
+1 -1
View File
@@ -15,4 +15,4 @@ namespace CalamityMod.Cooldowns
public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/AbilitySounds/BloodflareRangerRecharge");
}
}
}
+1 -1
View File
@@ -29,4 +29,4 @@ namespace CalamityMod.Cooldowns
spriteBatch.Draw(sprite, position, null, Color.Crimson * opacity * (1 - instance.Completion), 0, sprite.Size() * 0.5f, scale, SpriteEffects.None, 0f);
}
}
}
}
+1 -1
View File
@@ -49,4 +49,4 @@ namespace CalamityMod.Cooldowns
}
}
}
}
}
+1 -1
View File
@@ -19,7 +19,7 @@
netID = nid;
}
}
// Cooldowns are nothing other than identifiers. They serve as a minimal identification interface that is netcode compatible.
// Everything else is handled by one of the following two types:
// - CooldownInstance (if a player has a cooldown, this is what they have)
+1 -1
View File
@@ -89,7 +89,7 @@ namespace CalamityMod.Cooldowns
/// This is used to look up gameplay behavior and rendering behavior as the cooldown instance is used in the game engine.
/// </summary>
internal ushort netID;
/// <summary>
/// The player that the cooldown is applying to
/// </summary>
+1 -1
View File
@@ -15,4 +15,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(194, 75, 97);
public override Color CooldownEndColor => new Color(255, 76, 76);
}
}
}
+1 -1
View File
@@ -21,4 +21,4 @@ namespace CalamityMod.Cooldowns
Projectile.NewProjectile(instance.player.Center, Vector2.Zero, ProjectileType<AllianceTriangle>(), 0, 0f, instance.player.whoAmI);
}
}
}
}
+1 -1
View File
@@ -64,4 +64,4 @@ namespace CalamityMod.Cooldowns
public override void OnCompleted() => instance.player.Calamity().abyssalDivingSuitPlateHits = 0;
}
}
}
+1 -1
View File
@@ -14,4 +14,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(165, 22, 46);
public override Color CooldownEndColor => new Color(216, 103, 43);
}
}
}
+1 -1
View File
@@ -14,4 +14,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(132, 23, 32);
public override Color CooldownEndColor => new Color(164, 52, 45);
}
}
}
+1 -1
View File
@@ -40,4 +40,4 @@ namespace CalamityMod.Cooldowns
}
}
}
}
}
+1 -1
View File
@@ -47,4 +47,4 @@ namespace CalamityMod.Cooldowns
}
}
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(252, 109, 202);
public override Color CooldownEndColor => new Color(119, 254, 254);
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => Color.Lerp(new Color(177, 147, 89), new Color(105, 103, 126), instance.Completion);
public override Color CooldownEndColor => Color.Lerp(new Color(177, 147, 89), new Color(105, 103, 126), instance.Completion);
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(17, 242, 244);
public override Color CooldownEndColor => Color.White;
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(148, 62, 216);
public override Color CooldownEndColor => new Color(255, 187, 207);
}
}
}
+1 -1
View File
@@ -64,4 +64,4 @@ namespace CalamityMod.Cooldowns
spriteBatch.Draw(overlay, position + Vector2.UnitY * lostHeight * scale, crop, OutlineColor * opacity * 0.9f, 0, sprite.Size() * 0.5f, scale, SpriteEffects.None, 0f);
}
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(144, 184, 205);
public override Color CooldownEndColor => new Color(232, 246, 254);
}
}
}
+1 -1
View File
@@ -64,4 +64,4 @@ namespace CalamityMod.Cooldowns
spriteBatch.Draw(overlay, position + Vector2.UnitY * lostHeight * scale, crop, OutlineColor * opacity * 0.9f, 0, sprite.Size() * 0.5f, scale, SpriteEffects.None, 0f);
}
}
}
}
+1 -1
View File
@@ -14,4 +14,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownEndColor => Color.Lerp(new Color(208, 234, 255), new Color(231, 3, 54), instance.Completion);
public override LegacySoundStyle EndSound => instance.player.Calamity().mod.GetLegacySoundSlot(Terraria.ModLoader.SoundType.Custom, "Sounds/Custom/AbilitySounds/PotionSicknessOver");
}
}
}
+1 -1
View File
@@ -16,4 +16,4 @@ namespace CalamityMod.Cooldowns
internal Color rainbowMode => MulticolorLerp(Main.GlobalTime * 0.3f % 1, new Color[] { new Color(103, 244, 251), new Color(255, 167, 236), new Color(255, 225, 136) });
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(181, 136, 177);
public override Color CooldownEndColor => new Color(255, 194, 161);
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(122, 66, 59);
public override Color CooldownEndColor => new Color(165, 103, 87);
}
}
}
+1 -1
View File
@@ -40,4 +40,4 @@ namespace CalamityMod.Cooldowns
}
}
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => new Color(100, 64, 44);
public override Color CooldownEndColor => new Color(132, 95, 54);
}
}
}
+1 -1
View File
@@ -15,4 +15,4 @@ namespace CalamityMod.Cooldowns
public override bool CanTickDown => !CalamityPlayer.areThereAnyDamnBosses && !CalamityPlayer.areThereAnyDamnEvents;
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => Color.Lerp(new Color(171, 106, 49), new Color(215, 182, 82), 1 - instance.Completion);
public override Color CooldownEndColor => Color.Lerp(new Color(171, 106, 49), new Color(215, 182, 82), 1 - instance.Completion);
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ namespace CalamityMod.Cooldowns
public override Color CooldownStartColor => Color.Lerp(new Color(171, 106, 49), new Color(215, 182, 82), 1 - instance.Completion);
public override Color CooldownEndColor => Color.Lerp(new Color(171, 106, 49), new Color(215, 182, 82), 1 - instance.Completion);
}
}
}
+1 -1
View File
@@ -16,4 +16,4 @@ namespace CalamityMod.Cooldowns
internal Color rainbowMode => MulticolorLerp(Main.GlobalTime * 0.3f % 1, new Color[] { new Color(236, 202, 255), new Color(192, 245, 255), new Color(255, 194, 205) });
}
}
}
+1 -1
View File
@@ -52,4 +52,4 @@ namespace CalamityMod.CustomRecipes
return false;
}
}
}
}
+1 -1
View File
@@ -85,4 +85,4 @@ namespace CalamityMod.CustomRecipes
HasFoundIceSchematic = flags2[1];
}
}
}
}
+1 -1
View File
@@ -30,4 +30,4 @@ namespace CalamityMod.CustomRecipes
return false;
}
}
}
}
+1 -1
View File
@@ -827,4 +827,4 @@ namespace CalamityMod.DataStructures
}
#endregion
}
}
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.DataStructures
points = nextPoints;
}
return Vector2.Lerp(points[0], points[1], T);
}
}
+1 -1
View File
@@ -17,4 +17,4 @@ namespace CalamityMod.Dusts
// This is what God Slayer Slugs use, at least. I'm not sure about other Cosmilite stuff, didn't bother to check.
BlueCosmilite = 180,
}
}
}
+2 -2
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Dusts
public override bool Update(Dust dust)
{
dust.position += dust.velocity;
dust.scale *= 0.94f;
dust.scale *= 0.94f;
dust.velocity *= 0.90f;
Lighting.AddLight(dust.position, 0.255f, 0.185f, 0.094f);
if (dust.scale < 0.4f)
@@ -30,4 +30,4 @@ namespace CalamityMod.Dusts
public override Color? GetAlpha(Dust dust, Color lightColor) => new Color(Color.White.R, Color.White.G, Color.White.B, dust.alpha);
}
}
}
+1 -1
View File
@@ -37,4 +37,4 @@ namespace CalamityMod.Dusts
public override Color? GetAlpha(Dust dust, Color lightColor) => lightColor;
}
}
}
+1 -1
View File
@@ -7,4 +7,4 @@
LargeRobot,
SpecialAttack
}
}
}
+1 -1
View File
@@ -6,4 +6,4 @@
Jump,
Walk
}
}
}
+1 -1
View File
@@ -11,4 +11,4 @@
Rainbow = CalamityUtils.RainbowRarityValue,
DraedonRust = CalamityUtils.DraedonRustRarityValue,
}
}
}
+1 -1
View File
@@ -8,4 +8,4 @@
Summon = 3,
Rogue = 4
}
}
}
+1 -1
View File
@@ -7,4 +7,4 @@
Crimson,
Hallow
}
}
}
+1 -1
View File
@@ -7,4 +7,4 @@
Summer,
Fall
}
}
}
+2 -2
View File
@@ -440,7 +440,7 @@ namespace CalamityMod.Events
// Increase cooldown post-Fishron.
if (BossRushStage >= Bosses.FindIndex(boss => boss.EntityID == NPCID.DukeFishron))
BossRushSpawnCountdown += 300;
// Override the spawn countdown if specified.
if (BossRushStage < Bosses.Count - 1 && Bosses[BossRushStage + 1].SpecialSpawnCountdown != -1)
BossRushSpawnCountdown = Bosses[BossRushStage + 1].SpecialSpawnCountdown;
@@ -448,7 +448,7 @@ namespace CalamityMod.Events
// Change time as necessary.
if (Bosses[BossRushStage].ToChangeTimeTo != TimeChangeContext.None)
CalamityUtils.ChangeTime(Bosses[BossRushStage].ToChangeTimeTo == TimeChangeContext.Day);
// Play the typical boss roar sound.
if (!Bosses[BossRushStage].UsesSpecialSound)
Main.PlaySound(SoundID.Roar, Main.player[ClosestPlayerToWorldCenter].position, 0);
+4 -4
View File
@@ -644,9 +644,9 @@ namespace CalamityMod.ILEditing
/// 355,
/// 358
/// });
///
/// to
///
///
/// to
///
/// var arr = new short[2]
/// {
/// 355,
@@ -654,7 +654,7 @@ namespace CalamityMod.ILEditing
/// });
/// arr = arr.ToList().Add(id).ToArray();
/// num8 = Utils.SelectRandom(Main.rand, arr);
///
///
/// </summary>
/// <param name="il"></param>
private static void AddTwinklersToStatue(ILContext il)
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories
Tooltip.SetDefault("12% increased rogue damage and 15% increased rogue projectile velocity\n" +
"Stealth generates 10% faster\n" +
"Summons a red lightning aura to surround the player and electrify nearby enemies\n" +
"TOOLTIP LINE HERE" +
"TOOLTIP LINE HERE" +
"This effect has a 1 second cooldown before it can be used again");
}
+1 -1
View File
@@ -51,4 +51,4 @@ namespace CalamityMod.Items.Accessories
}
}
}
}
}
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Accessories
float slowWeaponBonus = MathHelper.Lerp(0f, MaxSlowWeaponBonus, useTimeInterpolant);
return baseCritMult * (1f + convertedCritBonus + slowWeaponBonus);
}
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Daawnlight Spirit Origin");
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
{
// The percentage of a full Rage bar that is gained every second with Heart of Darkness equipped.
public const float RagePerSecond = 0.01f;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Heart of Darkness");
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
{
// Base damage of lunar flares on stealth strikes. Increased by rogue damage stats, but not stealth damage.
internal const int BaseDamage = 85;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Moonstone Crown");
+2 -2
View File
@@ -40,9 +40,9 @@ namespace CalamityMod.Items.Accessories
const int damage = 1200;
if (player.ownedProjectileCounts[ModContent.ProjectileType<YoungDuke>()] < 1)
{
Projectile.NewProjectile(player.Center, Vector2.Zero,
Projectile.NewProjectile(player.Center, Vector2.Zero,
ModContent.ProjectileType<YoungDuke>(),
(int)(damage * player.MinionDamage()),
(int)(damage * player.MinionDamage()),
6.5f, Main.myPlayer, 0f, 0f);
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
public class OrnateShield : ModItem
{
public const int ShieldSlamIFrames = 4;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ornate Shield");
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
DisplayName.SetDefault("Plagued Fuel Pack");
Tooltip.SetDefault("5% increased rogue damage and 15% increased rogue projectile velocity\n" +
"Stealth generates 10% faster\n" +
"TOOLTIP LINE HERE" +
"TOOLTIP LINE HERE" +
"This effect has a 1 second cooldown before it can be used again");
}
+2 -2
View File
@@ -74,7 +74,7 @@ namespace CalamityMod.Items.Accessories
if (line.Name == "Tooltip0")
{
index = tooltips.IndexOf(line);
}
}
else
{
line.text = "";
@@ -84,7 +84,7 @@ namespace CalamityMod.Items.Accessories
{
line.text = "";
}
}
string rejectionReason = (!draedon) ? "[c/f05a5a:The soul within this crystal has been defiled by overwhelming energy waves from dangerous mechanations]" : "[c/f05a5a:The soul within this crystal has been defiled by the powerful magic of a supreme witch]"; //there might be a better way to word the draedon line, not sure
tooltips.Insert(index+1, new TooltipLine(CalamityMod.Instance, "Tooltip1", rejectionReason + "\nMerchants will reject a defiled soul such as this."));
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories
{
DisplayName.SetDefault("Sand Cloak");
Tooltip.SetDefault("+1 defense and 5% increased movement speed\n" +
"TOOLTIP LINE HERE\n" +
"TOOLTIP LINE HERE\n" +
"This effect has a 30 second cooldown before it can be used again");
}
+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Items.Ammo
public class HolyFireBullet : ModItem
{
internal const float ExplosionMultiplier = 0.33f;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Holy Fire Bullet");
+1 -1
View File
@@ -56,4 +56,4 @@ namespace CalamityMod.Items.Armor
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -52,4 +52,4 @@ namespace CalamityMod.Items.Armor
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -77,4 +77,4 @@ namespace CalamityMod.Items.Armor
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -47,4 +47,4 @@ namespace CalamityMod.Items.Armor
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -45,4 +45,4 @@ namespace CalamityMod.Items.Armor
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -91,7 +91,7 @@ namespace CalamityMod.Items.Armor
$"When a gem is lost, it breaks off and homes towards the nearest enemy or boss, if one is present, dealing a base of {GemDamage} damage\n" +
$"Gems have a {GemRegenTime / 60} second delay before they appear again\n" +
redGemText +
yellowGemText +
yellowGemText +
greenGemText +
blueGemText +
purpleGemText +
+1 -1
View File
@@ -46,4 +46,4 @@ namespace CalamityMod.Items.Armor
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -149,4 +149,4 @@ namespace CalamityMod.Items.Armor
recipe.AddRecipe();
}
}
}
}
+2 -2
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor
public class PlaguebringerVisor : ModItem
{
public const int PlagueDashIFrames = 4;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Plaguebringer Visor");
@@ -82,4 +82,4 @@ namespace CalamityMod.Items.Armor
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Armor
player.velocity.X *= 1.1f;
shouldBoost = false;
}
}
else if (!shouldBoost && player.velocity.Y == 0)
{
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor
item.height = 26;
item.value = Item.buyPrice(0, 1, 0, 0);
item.rare = ItemRarityID.Green;
item.defense = 5;
item.defense = 5;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
+5 -5
View File
@@ -1040,7 +1040,7 @@ namespace CalamityMod.Items
#region Equip Changes
public override void UpdateEquip(Item item, Player player)
{
{
switch (item.type)
{
case ItemID.MagicHat:
@@ -1422,7 +1422,7 @@ namespace CalamityMod.Items
* Post-DoG = 3
* Post-Yharon = 4
*/
if (CalamityWorld.downedYharon)
player.statDefense += 3;
else if (CalamityWorld.downedPolterghast || CalamityWorld.downedDoG)
@@ -1443,7 +1443,7 @@ namespace CalamityMod.Items
* Post-DoG = 6
* Post-Yharon = 8
*/
if (CalamityWorld.downedYharon)
player.statDefense += 6;
else if (CalamityWorld.downedDoG)
@@ -1468,7 +1468,7 @@ namespace CalamityMod.Items
* Post-DoG = 9
* Post-Yharon = 11
*/
if (CalamityWorld.downedYharon)
player.statDefense += 8;
else if (CalamityWorld.downedDoG)
@@ -1495,7 +1495,7 @@ namespace CalamityMod.Items
* Post-DoG = 12
* Post-Yharon = 15
*/
if (CalamityWorld.downedYharon)
player.statDefense += 11;
else if (CalamityWorld.downedDoG)
+4 -4
View File
@@ -802,7 +802,7 @@ namespace CalamityMod.Items
}
}
internal static IItemTweak MaxStack(int stk) => new MaxStackRule(stk);
internal class PickPowerRule : IItemTweak
{
internal readonly int newPickPower = 0;
@@ -824,7 +824,7 @@ namespace CalamityMod.Items
public void ApplyTweak(Item it) => it.Calamity().canFirePointBlankShots = true;
}
internal static IItemTweak PointBlank => new PointBlankRule();
#region Scale (True Melee)
internal class ScaleDeltaRule : IItemTweak
{
@@ -938,7 +938,7 @@ namespace CalamityMod.Items
public void ApplyTweak(Item it) => it.tileBoost = newTileBoost;
}
internal static IItemTweak TileBoostExact(int tb) => new TileBoostExactRule(tb);
internal class TrueMeleeRule : IItemTweak
{
public bool AppliesTo(Item it) => IsMelee(it);
@@ -1000,7 +1000,7 @@ namespace CalamityMod.Items
}
}
internal static IItemTweak UseRatio(float f) => new UseRatioRule(f);
internal class UseAnimationDeltaRule : IItemTweak
{
internal readonly int delta = 0;
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.DifficultyItems
// Misc lines
"Nerfs the effectiveness of life steal a bit more.\n" +
// Boss lines
"Enrages all bosses and gives them far more aggressive AI.\n" +
"Bosses and their projectiles deal 25% more damage.\n" +
+1 -1
View File
@@ -33,4 +33,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -33,4 +33,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -33,4 +33,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -39,4 +39,4 @@ namespace CalamityMod.Items.Dyes
{
}
}
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -33,4 +33,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -33,4 +33,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -33,4 +33,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -21,4 +21,4 @@ namespace CalamityMod.Items.Dyes
item.value = CalamityGlobalItem.Rarity4BuyPrice;
}
}
}
}
+1 -1
View File
@@ -32,4 +32,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ namespace CalamityMod.Items.Dyes
recipe.AddRecipe();
}
}
}
}
Loaded 100 of 545 files, more files were not shown because too many files have changed in this diff. Show more