Merge branch '1.4.4' into MegalodonLine
This commit is contained in:
commit
d76140ee79
749 files changed
+5450
-4050
No files matched your search
@@ -148,9 +148,6 @@ namespace CalamityMod.Balancing
|
||||
// 40% resist to Cryophobia.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<CryoBlast>()))));
|
||||
|
||||
// 40% resist to SHPC.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<SHPExplosion>()))));
|
||||
|
||||
// 30% resist to Meowthrower.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<MeowFire>()))));
|
||||
|
||||
|
||||
@@ -62,17 +62,17 @@
|
||||
|
||||
// Dodge cooldowns (in frames)
|
||||
// TODO -- Some of these could be moved to the respective item files
|
||||
internal static readonly int BeltDodgeCooldownMin = 900;
|
||||
internal static readonly int BeltDodgeCooldownMin = 1200;
|
||||
internal static readonly int BeltDodgeCooldownMax = 5400;
|
||||
internal static readonly int BrainDodgeCooldownMin = 900;
|
||||
internal static readonly int BrainDodgeCooldownMin = 1200;
|
||||
internal static readonly int BrainDodgeCooldownMax = 5400;
|
||||
internal static readonly int AmalgamDodgeCooldownMin = 900;
|
||||
internal static readonly int AmalgamDodgeCooldownMin = 1200;
|
||||
internal static readonly int AmalgamDodgeCooldownMax = 5400;
|
||||
internal static readonly int MirrorDodgeCooldownMin = 900;
|
||||
internal static readonly int MirrorDodgeCooldownMin = 1200;
|
||||
internal static readonly int MirrorDodgeCooldownMax = 5400;
|
||||
internal static readonly int DaedalusReflectCooldownMin = 900;
|
||||
internal static readonly int DaedalusReflectCooldownMin = 1200;
|
||||
internal static readonly int DaedalusReflectCooldownMax = 5400;
|
||||
internal static readonly int EvolutionReflectCooldownMin = 900;
|
||||
internal static readonly int EvolutionReflectCooldownMin = 1200;
|
||||
internal static readonly int EvolutionReflectCooldownMax = 5400;
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -102,6 +102,10 @@ namespace CalamityMod.Buffs
|
||||
{
|
||||
player.GetDamage<GenericDamageClass>() -= 0.2f;
|
||||
}
|
||||
else if (type == BuffID.Werewolf)
|
||||
{
|
||||
player.GetAttackSpeed<MeleeDamageClass>() -= 0.051f;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Update(int type, NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
public class HeavyBleeding : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().heavybleeding = true;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().heavybleeding < npc.buffTime[buffIndex])
|
||||
npc.Calamity().heavybleeding = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
internal static void DrawEffects(PlayerDrawSet drawInfo)
|
||||
{
|
||||
Player player = drawInfo.drawPlayer;
|
||||
var modPlayer = player.Calamity();
|
||||
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Vector2 randVel = new Vector2(5, 5).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1f);
|
||||
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.6f, 0.9f));
|
||||
dust.noGravity = false;
|
||||
Particle spark = new AltSparkParticle(modPlayer.RandomDebuffVisualSpot, randVel + new Vector2(0, -4), true, 12, Main.rand.NextFloat(0.25f, 0.6f), Color.DarkRed * 0.5f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
Particle spark = new GlowOrbParticle(modPlayer.RandomDebuffVisualSpot, new Vector2(0, 4) * Main.rand.NextFloat(0.5f, 0.7f), true, 16, Main.rand.NextFloat(0.55f, 0.8f), Color.DarkRed * 0.8f, false, false, false);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
}
|
||||
|
||||
internal static void DrawEffects(NPC npc, ref Color drawColor)
|
||||
{
|
||||
Vector2 npcSize = npc.Center + new Vector2(Main.rand.NextFloat(-npc.width / 2, npc.width / 2), Main.rand.NextFloat(-npc.height / 2, npc.height / 2));
|
||||
Vector2 randVel = new Vector2(5, 5).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1f);
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
Particle spark = new AltSparkParticle(npcSize, randVel + new Vector2(0, -4), true, 12, Main.rand.NextFloat(0.25f, 0.6f), Color.DarkRed * 0.5f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
else
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(npcSize, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.2f, 0.6f));
|
||||
dust.noGravity = false;
|
||||
}
|
||||
if (Main.rand.NextBool(8))
|
||||
{
|
||||
Particle spark = new GlowOrbParticle(npcSize, new Vector2(0, 4) * Main.rand.NextFloat(0.5f, 0.7f), true, 16, Main.rand.NextFloat(0.55f, 0.8f), Color.DarkRed * 0.8f, false, false, false);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 638 B |
+577
-261
File diff suppressed because it is too large.
Load diff
@@ -253,6 +253,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (calamityPlayer.gsInferno && drawInfo.shadow == 0f)
|
||||
GodSlayerInferno.DrawEffects(drawInfo);
|
||||
|
||||
if (calamityPlayer.heavybleeding && drawInfo.shadow == 0f)
|
||||
HeavyBleeding.DrawEffects(drawInfo);
|
||||
|
||||
// Holy Flames, Holy Inferno and Banishing Fire share the same visual effects
|
||||
if (drawInfo.shadow == 0f && (calamityPlayer.hFlames || calamityPlayer.hInferno || calamityPlayer.banishingFire))
|
||||
HolyFlames.DrawEffects(drawInfo);
|
||||
@@ -261,6 +264,9 @@ namespace CalamityMod.CalPlayer
|
||||
else if (calamityPlayer.icarusFolly && drawInfo.shadow == 0f)
|
||||
IcarusFolly.DrawEffects(drawInfo);
|
||||
|
||||
if (calamityPlayer.laceration && drawInfo.shadow == 0f)
|
||||
Laceration.DrawEffects(drawInfo);
|
||||
|
||||
if (calamityPlayer.miracleBlight && drawInfo.shadow == 0f)
|
||||
MiracleBlight.DrawEffects(drawInfo);
|
||||
|
||||
@@ -366,7 +372,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// Some extraneous and probably undocumented visual effect caused by the heart lad pet thing
|
||||
if ((calamityPlayer.ladHearts > 0) && !Player.loveStruck && Main.netMode != NetmodeID.Server && drawInfo.shadow == 0f)
|
||||
if ((calamityPlayer.ladHearts > 0) && !Player.loveStruck && !Main.dedServ && drawInfo.shadow == 0f)
|
||||
{
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.NPCs.OldDuke;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -43,10 +44,36 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
int uncommonRate = Math.Clamp(240 / attempt.fishingLevel, 3, 240); // Iron/Mythril (originally 300)
|
||||
attempt.uncommon = Main.rand.NextBool(uncommonRate);
|
||||
|
||||
// These roll result bools are individually stored for the rarifying visuals
|
||||
int rareRate = Math.Clamp(840 / attempt.fishingLevel, 4, 840); // Biome (originally 1050)
|
||||
attempt.uncommon = Main.rand.NextBool(rareRate);
|
||||
bool rareRoll = Main.rand.NextBool(rareRate);
|
||||
attempt.rare = rareRoll;
|
||||
|
||||
int veryRareRate = Math.Clamp(1800 / attempt.fishingLevel, 5, 1800); // Golden/Titanium (originally 2250)
|
||||
attempt.uncommon = Main.rand.NextBool(veryRareRate);
|
||||
bool veryRareRoll = Main.rand.NextBool(veryRareRate);
|
||||
attempt.veryrare = veryRareRoll;
|
||||
|
||||
Vector2 basePos = new Vector2(attempt.X * 16f, attempt.Y * 16f);
|
||||
if (rareRoll || veryRareRoll)
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
Vector2 position = basePos + Vector2.UnitX * Main.rand.NextFloat(-16f, 16f);
|
||||
Vector2 velocity = (Vector2.UnitY * Main.rand.NextFloat(-12f, -9f)).RotatedByRandom(MathHelper.ToRadians(18f));
|
||||
float scale = Main.rand.NextFloat(0.5f, 1.5f);
|
||||
CritSpark spark = new(position, velocity, Color.White, Main.hslToRgb(Main.rand.NextFloat(), 1f, 0.5f), scale, 36, 0.2f, scale * 2f);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
Vector2 position = basePos + Vector2.UnitX * Main.rand.NextFloat(-16f, 16f);
|
||||
Vector2 velocity = (Vector2.UnitY * Main.rand.NextFloat(-3f, -0.5f)).RotatedByRandom(MathHelper.ToRadians(12f));
|
||||
PearlParticle pearl = new(position, velocity, false, 24, Main.rand.NextFloat(0.5f, 1f), Main.hslToRgb(Main.rand.NextFloat(), 1f, (rareRoll || veryRareRoll) ? 0.75f : 1f));
|
||||
GeneralParticleHandler.SpawnParticle(pearl);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (nCore && !Player.HasCooldown(Cooldowns.NebulousCore.ID))
|
||||
if (nebulousCore && !Player.HasCooldown(Cooldowns.NebulousCore.ID))
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item67, Player.Center);
|
||||
|
||||
@@ -430,6 +430,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BrainRot" + Main.rand.Next(1, 3 + 1)).Format(Player.name));
|
||||
}
|
||||
if (heavybleeding)
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.HeavyBleeding" + Main.rand.Next(1, 3 + 1)).Format(Player.name));
|
||||
}
|
||||
if (laceration)
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Laceration" + Main.rand.Next(1, 3 + 1)).Format(Player.name));
|
||||
@@ -1542,15 +1546,27 @@ namespace CalamityMod.CalPlayer
|
||||
dust2.color = Main.rand.NextBool() ? Color.Coral : Color.DarkTurquoise;
|
||||
}
|
||||
}
|
||||
|
||||
if (corrosiveSpine)
|
||||
{
|
||||
int cloudCount = 3;
|
||||
for (int i = 0; i < cloudCount; i++)
|
||||
{
|
||||
float speed = 2f;
|
||||
int damage = 40;
|
||||
int cloud = Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.One.RotatedByRandom(MathHelper.TwoPi) * speed, ModContent.ProjectileType<ScourgeVenomCloud>(), damage, 0f, Player.whoAmI);
|
||||
if (cloud.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[cloud].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Free and Consumable Dodge Hooks
|
||||
public override bool FreeDodge(Player.HurtInfo info)
|
||||
{
|
||||
// 22AUG2023: Ozzatron: god slayer damage resistance removed due to it being strong enough to godmode rev yharon
|
||||
// If the incoming damage is somehow less than 1 (TML doesn't allow this, but...), the hit is completely ignored.
|
||||
if (info.Damage < 1 /* || (godSlayerDamage && info.Damage <= 80) */)
|
||||
if (info.Damage < 1)
|
||||
return true;
|
||||
|
||||
// Silva armor revive provides complete immunity.
|
||||
@@ -1687,16 +1703,16 @@ namespace CalamityMod.CalPlayer
|
||||
return true;
|
||||
|
||||
// Mirror evades do not work if the global dodge cooldown is active. This cooldown can be triggered by either mirror.
|
||||
if (!Player.HasCooldown(GlobalDodge.ID) && info.Damage >= dodgeDamageGateValue)
|
||||
if (!Player.HasCooldown(GlobalDodge.ID) && actualDamageTaken >= dodgeDamageGateValue)
|
||||
{
|
||||
if (eclipseMirror)
|
||||
{
|
||||
EclipseMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, info.Damage);
|
||||
EclipseMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, actualDamageTaken);
|
||||
return true;
|
||||
}
|
||||
else if (abyssalMirror)
|
||||
{
|
||||
AbyssMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, info.Damage);
|
||||
AbyssMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, actualDamageTaken);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -2245,8 +2261,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
#endregion
|
||||
|
||||
modStealth = 1f;
|
||||
|
||||
// Give Rage combat frames because being hurt counts as combat.
|
||||
if (RageEnabled)
|
||||
rageCombatFrames = BalancingConstants.RageCombatDelayTime;
|
||||
@@ -2521,7 +2535,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.wingsLogic == (int)VanillaWingID.BoneWings)
|
||||
{
|
||||
// Drop some bones for visual effects
|
||||
if (Main.netMode != NetmodeID.Server && Player.wingTime > 0)
|
||||
if (!Main.dedServ && Player.wingTime > 0)
|
||||
{
|
||||
var source = Player.GetSource_Accessory(FindAccessory(ItemID.BoneWings));
|
||||
for (int i = 0; i < 6; i++)
|
||||
@@ -2857,7 +2871,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
NetMessage.SendPlayerDeath(Player.whoAmI, damageSource, (int)1000.0, 0, false, -1, -1);
|
||||
}
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
ChatHelper.BroadcastChatMessage(deathText, new Color(225, 25, 25));
|
||||
}
|
||||
|
||||
@@ -99,13 +99,14 @@ namespace CalamityMod.CalPlayer
|
||||
ApplyDoTDebuff(wDeath, 0);
|
||||
|
||||
ApplyDoTDebuff(irradiated, 4, purity);
|
||||
int sulphurDoT = 6 - (sulphurSet ? 2 : 0) - (sulphurskin ? 2 : 0);
|
||||
int sulphurDoT = 6 - (sulphurSet ? 2 : 0) - (sulphurskin ? 2 : 0) - (corrosiveSpine ? 2 : 0);
|
||||
ApplyDoTDebuff(sulphurPoison, sulphurDoT, purity);
|
||||
ApplyDoTDebuff(rTide, 6, purity);
|
||||
ApplyDoTDebuff(weakBrimstoneFlames, 7);
|
||||
ApplyDoTDebuff(bBlood, 8, purity);
|
||||
ApplyDoTDebuff(brainRot, 8, purity);
|
||||
ApplyDoTDebuff(laceration, 12, purity);
|
||||
ApplyDoTDebuff(heavybleeding, 30, purity);
|
||||
ApplyDoTDebuff(laceration, 40, purity);
|
||||
ApplyDoTDebuff(vaporfied, 8, purity);
|
||||
int staticDoT = ((Player.controlLeft || Player.controlRight) ? 12 : 3) / (eleResist ? 2 : 1);
|
||||
ApplyDoTDebuff(staticDischarge, staticDoT, purity);
|
||||
@@ -166,6 +167,8 @@ namespace CalamityMod.CalPlayer
|
||||
increment *= 0.5f;
|
||||
if (sulphurSet && !ASPoisoning)
|
||||
increment *= 0.5f;
|
||||
if (corrosiveSpine && !ASPoisoning)
|
||||
increment *= 0.5f;
|
||||
if (ZoneAbyssLayer1 && !ASPoisoning)
|
||||
increment *= 0.33f;
|
||||
|
||||
|
||||
@@ -883,7 +883,7 @@ namespace CalamityMod.CalPlayer
|
||||
private void MiscEffects()
|
||||
{
|
||||
// Update textures
|
||||
if (Main.netMode != NetmodeID.Server && Player.whoAmI == Main.myPlayer)
|
||||
if (!Main.dedServ && Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Asset<Texture2D> carpetAuric = ExtraTextureRefs.FlyingCarpetAuric;
|
||||
Asset<Texture2D> carpetOriginal = ExtraTextureRefs.FlyingCarpetVanilla;
|
||||
@@ -1609,7 +1609,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// If any cooldowns were removed, send a cooldown removal packet that lists all cooldowns to remove.
|
||||
if (expiredCooldowns.Count > 0)
|
||||
SyncCooldownRemoval(Main.netMode == NetmodeID.Server, expiredCooldowns);
|
||||
SyncCooldownRemoval(Main.dedServ, expiredCooldowns);
|
||||
|
||||
// Grant the player 5 seconds of immunity to immobilizing debuffs after an immobilizing debuff wears off.
|
||||
if (Player.stoned || Player.frozen || Player.webbed || gState)
|
||||
@@ -1725,8 +1725,6 @@ namespace CalamityMod.CalPlayer
|
||||
hideOfDeusTimer--;
|
||||
if (murasamaHitCooldown > 0)
|
||||
murasamaHitCooldown--;
|
||||
if (harpyWingFeatherCooldown > 0)
|
||||
harpyWingFeatherCooldown--;
|
||||
if (burningSeaBurnOut > 0)
|
||||
{
|
||||
burningSeaBurnOut--;
|
||||
@@ -2184,7 +2182,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// Vortex Armor nerf
|
||||
if (Player.vortexStealthActive)
|
||||
if (Player.vortexStealthActive && Player.ActiveItem().type != ItemID.PsychoKnife)
|
||||
{
|
||||
Player.GetDamage<RangedDamageClass>() -= (1f - Player.stealth) * 0.4f; // Change 80 to 40
|
||||
Player.GetCritChance<RangedDamageClass>() -= (int)((1f - Player.stealth) * 5f); // Change 20 to 15
|
||||
@@ -2393,7 +2391,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Biome Effects
|
||||
public void DrawPollenInFloralParadise()
|
||||
{
|
||||
if (!ZoneFloralParadise || !Main.rand.NextBool(7) || Main.netMode == NetmodeID.Server)
|
||||
if (!ZoneFloralParadise || !Main.rand.NextBool(7) || Main.dedServ)
|
||||
return;
|
||||
|
||||
for (int i = 0; i < 15; i++)
|
||||
@@ -2755,7 +2753,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.moveSpeed -= (1f - aquaticBoost * 0.0001f) * 0.1f;
|
||||
}
|
||||
else
|
||||
aquaticBoost = aquaticBoostMax; modStealth = 1f;
|
||||
aquaticBoost = aquaticBoostMax;
|
||||
|
||||
if (Player.ActiveItem().type == ModContent.ItemType<Auralis>() && Player.StandingStill(0.1f))
|
||||
{
|
||||
@@ -2763,7 +2761,7 @@ namespace CalamityMod.CalPlayer
|
||||
auralisStealthCounter++;
|
||||
|
||||
bool usingScope = false;
|
||||
if (!Main.gameMenu && Main.netMode != NetmodeID.Server)
|
||||
if (!Main.gameMenu && !Main.dedServ)
|
||||
{
|
||||
if (Player.noThrow <= 0 && !Player.lastMouseInterface || !(Main.CurrentPan == Vector2.Zero))
|
||||
{
|
||||
@@ -3532,7 +3530,7 @@ namespace CalamityMod.CalPlayer
|
||||
const int FramesPerHit = 30;
|
||||
|
||||
// Constantly increment the timer every frame.
|
||||
brimLoreInfernoTimer = (brimLoreInfernoTimer + 1) % FramesPerHit;
|
||||
hydrothermicInfernoTimer = (hydrothermicInfernoTimer + 1) % FramesPerHit;
|
||||
|
||||
// Only run this code for the client which is wearing the armor.
|
||||
// Brimstone flames is applied every single frame, but direct damage is only dealt twice per second.
|
||||
@@ -3552,7 +3550,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Vector2.Distance(Player.Center, npc.Center) <= range)
|
||||
{
|
||||
npc.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
|
||||
if (brimLoreInfernoTimer == 0)
|
||||
if (hydrothermicInfernoTimer == 0)
|
||||
Projectile.NewProjectile(source, npc.Center, Vector2.Zero, ModContent.ProjectileType<DirectStrike>(), damage, 0f, Player.whoAmI, npc.whoAmI);
|
||||
}
|
||||
}
|
||||
@@ -4466,7 +4464,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Text Chat Messages
|
||||
private void HandleTextChatMessages()
|
||||
{
|
||||
if (Player.whoAmI != Main.myPlayer || Main.netMode == NetmodeID.Server)
|
||||
if (Player.whoAmI != Main.myPlayer || Main.dedServ)
|
||||
return;
|
||||
|
||||
if (startMessageDisplayDelay >= 0)
|
||||
@@ -4633,7 +4631,7 @@ namespace CalamityMod.CalPlayer
|
||||
SyncAndroombaAIPacket.Send(npc.ModNPC<AndroombaFriendly>(), phase: 1);
|
||||
}
|
||||
}
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, npc.whoAmI);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,13 +77,13 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
target.Calamity().IncreasedHeatEffects_Fireball = fireball;
|
||||
target.Calamity().IncreasedHeatEffects_CinnamonRoll = cinnamonRoll;
|
||||
target.Calamity().IncreasedHeatEffects_FlameWakerBoots = flameWakerBoots;
|
||||
target.Calamity().IncreasedHeatEffects_HellfireTreads = hellfireTreads;
|
||||
target.Calamity().IncreasedHeatEffects_FireBoots = bootLevel;
|
||||
target.Calamity().IncreasedHeatEffects_FlameWings = flameWingsHeat;
|
||||
|
||||
target.Calamity().IncreasedSicknessEffects_ToxicHeart = toxicHeart;
|
||||
|
||||
target.Calamity().IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin;
|
||||
target.Calamity().IncreasedSicknessAndWaterEffects_CorrosiveSpine = corrosiveSpine;
|
||||
|
||||
switch (item.type)
|
||||
{
|
||||
@@ -193,12 +193,13 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
cgn.IncreasedHeatEffects_Fireball = fireball;
|
||||
cgn.IncreasedHeatEffects_CinnamonRoll = cinnamonRoll;
|
||||
cgn.IncreasedHeatEffects_HellfireTreads = hellfireTreads;
|
||||
cgn.IncreasedHeatEffects_FireBoots = bootLevel;
|
||||
cgn.IncreasedHeatEffects_FlameWings = flameWingsHeat;
|
||||
|
||||
cgn.IncreasedSicknessEffects_ToxicHeart = toxicHeart;
|
||||
|
||||
cgn.IncreasedSicknessAndWaterEffects_EvergreenGin = evergreenGin;
|
||||
cgn.IncreasedSicknessAndWaterEffects_CorrosiveSpine = corrosiveSpine;
|
||||
|
||||
switch (proj.type)
|
||||
{
|
||||
@@ -226,6 +227,11 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.ButchersChainsaw:
|
||||
case ProjectileID.MechanicalPiranha:
|
||||
target.AddBuff(BuffType<HeavyBleeding>(), 180);
|
||||
break;
|
||||
|
||||
case ProjectileID.LunarFlare:
|
||||
target.AddBuff(BuffType<Nightwither>(), 180);
|
||||
break;
|
||||
@@ -309,7 +315,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (!proj.npcProj && !proj.trap && proj.friendly)
|
||||
{
|
||||
if ((plaguebringerCarapace || uberBees) && FriendlyBeesList.Includes(proj.type))
|
||||
if (plaguebringerCarapace && FriendlyBeesList.Includes(proj.type))
|
||||
target.AddBuff(BuffType<Plague>(), 300);
|
||||
|
||||
// All projectiles fired from Soma Prime are marked using CalamityGlobalProjectile
|
||||
@@ -1037,39 +1043,6 @@ namespace CalamityMod.CalPlayer
|
||||
titanCooldown = 15;
|
||||
}
|
||||
|
||||
if (corrosiveSpine && modProj.stealthStrikeHitCount < 3 && (Player.ownedProjectileCounts[ProjectileType<Corrocloud1>()] + Player.ownedProjectileCounts[ProjectileType<Corrocloud2>()] + Player.ownedProjectileCounts[ProjectileType<Corrocloud3>()]) < 3)
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
int type = -1;
|
||||
switch (Main.rand.Next(15))
|
||||
{
|
||||
case 0:
|
||||
type = ProjectileType<Corrocloud1>();
|
||||
break;
|
||||
case 1:
|
||||
type = ProjectileType<Corrocloud2>();
|
||||
break;
|
||||
case 2:
|
||||
type = ProjectileType<Corrocloud3>();
|
||||
break;
|
||||
}
|
||||
|
||||
if (type != -1)
|
||||
{
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(22);
|
||||
|
||||
float speed = Main.rand.NextFloat(5f, 11f);
|
||||
int cloud = Projectile.NewProjectile(spawnSource, position, Vector2.One.RotatedByRandom(MathHelper.TwoPi) * speed, type, damage, proj.knockBack, Player.whoAmI);
|
||||
if (cloud.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[cloud].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (raiderTalisman && modProj.stealthStrike)
|
||||
{
|
||||
raiderCritLifespan = CalamityUtils.SecondsToFrames(RaidersTalisman.RaiderCooldown);
|
||||
@@ -1170,10 +1143,6 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
target.AddBuff(BuffType<AstralInfectionDebuff>(), 120);
|
||||
}
|
||||
if (corrosiveSpine)
|
||||
{
|
||||
target.AddBuff(BuffID.Poisoned, 240);
|
||||
}
|
||||
}
|
||||
if (summon)
|
||||
{
|
||||
@@ -1228,6 +1197,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
CalamityUtils.Inflict246DebuffsNPC(target, BuffType<CrushDepth>());
|
||||
}
|
||||
if (corrosiveSpine)
|
||||
{
|
||||
target.AddBuff(BuffType<Irradiated>(), 120);
|
||||
}
|
||||
if (alchFlask)
|
||||
{
|
||||
CalamityUtils.Inflict246DebuffsNPC(target, BuffType<Plague>());
|
||||
|
||||
+2
-1
@@ -136,7 +136,7 @@ namespace CalamityMod
|
||||
|
||||
public static void SyncWorld()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
NetMessage.SendData(MessageID.WorldData);
|
||||
}
|
||||
|
||||
@@ -245,6 +245,7 @@ namespace CalamityMod
|
||||
UpdateCodebreakerContainedStuff,
|
||||
UpdateCodebreakerDecryptCountdown,
|
||||
UnlockAbyssChests,
|
||||
UpdateCanvasPainting,
|
||||
|
||||
// Draedon Summoner
|
||||
CodebreakerSummonStuff,
|
||||
|
||||
@@ -337,7 +337,7 @@ namespace CalamityMod.Events
|
||||
|
||||
// Flow: 2024/09/06
|
||||
// Salute for the one who wrote 3 if conditional block after experiencing immeasurable torment with packet generations
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
AcidRainSyncPacket.Send();
|
||||
AcidRainOldDukeSummonSyncPacket.Send();
|
||||
|
||||
@@ -541,7 +541,7 @@ namespace CalamityMod.Events
|
||||
if (HostileProjectileKillCounter == 1)
|
||||
CalamityUtils.KillAllHostileProjectiles();
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
BRHostileProjKillSyncPacket.Send();
|
||||
}
|
||||
@@ -557,7 +557,7 @@ namespace CalamityMod.Events
|
||||
if (BossRushStage != 0)
|
||||
{
|
||||
BossRushStage = 0;
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
BossRushStagePacket.Send();
|
||||
}
|
||||
@@ -656,7 +656,7 @@ namespace CalamityMod.Events
|
||||
CalamityUtils.KillAllHostileProjectiles();
|
||||
|
||||
CalamityNetcode.SyncWorld();
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
BossRushStagePacket.Send();
|
||||
BossRushStartTimerPacket.Send();
|
||||
@@ -745,7 +745,7 @@ namespace CalamityMod.Events
|
||||
}
|
||||
|
||||
// Sync the stage and progress of Boss Rush whenever a relevant boss dies.
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
{
|
||||
BossRushStagePacket.Send();
|
||||
BRHostileProjKillSyncPacket.Send();
|
||||
@@ -776,7 +776,7 @@ namespace CalamityMod.Events
|
||||
public static void SyncStartTimer(int time)
|
||||
{
|
||||
StartTimer = time;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
return;
|
||||
|
||||
BossRushStartTimerPacket.Send();
|
||||
@@ -785,7 +785,7 @@ namespace CalamityMod.Events
|
||||
public static void SyncEndTimer(int time)
|
||||
{
|
||||
EndTimer = time;
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
return;
|
||||
|
||||
BossRushEndTimerPacket.Send();
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.FluidSimulation
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server && basicShader is null)
|
||||
if (!Main.dedServ && basicShader is null)
|
||||
{
|
||||
basicShader = new BasicEffect(Main.instance.GraphicsDevice)
|
||||
{
|
||||
@@ -231,7 +231,7 @@ namespace CalamityMod.FluidSimulation
|
||||
{
|
||||
// Everything here involves heavy manipulation of render targets to work. Doing any of that on the server
|
||||
// would certainly result in a crash due to a lack of a graphics device.
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
if (!ShouldUpdate)
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.FluidSimulation
|
||||
|
||||
public FluidFieldState(int size, SurfaceFormat fieldContents = SurfaceFormat.Color)
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
Size = size;
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Graphics.Metaballs
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Load the layer asset wrapper.
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Graphics.Metaballs
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Load layer assets.
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace CalamityMod.Graphics.Metaballs
|
||||
MetaballManager.metaballs.Add(this);
|
||||
|
||||
// Disallow render target creation on servers.
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Generate render targets.
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Graphics.Metaballs
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Load the layer asset wrapper.
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Graphics.Renderers
|
||||
#region Loading
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
Main.QueueMainThreadAction(() =>
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Graphics.Renderers
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
// Clear the cached renderers, so they can be readded on mod loading when initialized.
|
||||
|
||||
@@ -89,6 +89,7 @@ namespace CalamityMod.ILEditing
|
||||
On_NPC.DoDeathEvents_CelebrateBossDeath += TripletsDefeatTextOverride;
|
||||
On_TileDrawing.DrawSingleTile += GlowMaskTileRender;
|
||||
On_Main.DoUpdate_HandleChat += SpawnPunchCard;
|
||||
On_Player.PlaceThing_CannonBall += AllowCannonJellyfishUse;
|
||||
|
||||
// Mana Burn (Chaos Stone) and Chalice of the Blood God
|
||||
IL_Player.ApplyLifeAndOrMana += ManaSicknessAndChaliceBufferHeal;
|
||||
|
||||
@@ -11,11 +11,13 @@ using CalamityMod.Events;
|
||||
using CalamityMod.FluidSimulation;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Accessories.Vanity;
|
||||
using CalamityMod.Items.Critters;
|
||||
using CalamityMod.Items.Armor.Wulfrum;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using CalamityMod.Items.Placeables.FurniturePlagued;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.NPCs;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
@@ -24,10 +26,10 @@ using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.Ravager;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Systems;
|
||||
using CalamityMod.Tiles;
|
||||
using CalamityMod.Tiles.Abyss;
|
||||
using CalamityMod.Walls;
|
||||
using CalamityMod.Waterfalls;
|
||||
using CalamityMod.Waters;
|
||||
@@ -655,7 +657,7 @@ namespace CalamityMod.ILEditing
|
||||
modPlayer.chaliceBleedoutBuffer -= amountOfBleedToClear;
|
||||
|
||||
// Display text indicating that healing was applied to the bleedout buffer.
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
string text = $"(+{amountOfBleedToClear})";
|
||||
Rectangle location = new Rectangle((int)player.position.X + 4, (int)player.position.Y - 3, player.width - 4, player.height - 4);
|
||||
@@ -850,7 +852,7 @@ namespace CalamityMod.ILEditing
|
||||
|
||||
cursor.EmitDelegate<Action>(() =>
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server && BiomeTileCounterSystem.FloralParadiseTiles > 0)
|
||||
if (!Main.dedServ && BiomeTileCounterSystem.FloralParadiseTiles > 0)
|
||||
DrawFog(Utils.GetLerpValue(0f, 250f, BiomeTileCounterSystem.FloralParadiseTiles, true));
|
||||
});
|
||||
|
||||
@@ -1857,7 +1859,7 @@ namespace CalamityMod.ILEditing
|
||||
Main.npc[retinazerIndex].target = targetPlayerIndex;
|
||||
Main.npc[retinazerIndex].timeLeft *= 20;
|
||||
|
||||
if (Main.netMode == NetmodeID.Server && retinazerIndex < 200)
|
||||
if (Main.dedServ && retinazerIndex < 200)
|
||||
{
|
||||
NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, retinazerIndex);
|
||||
}
|
||||
@@ -1968,6 +1970,117 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Allow Cannons to use jellyfish
|
||||
public static void AllowCannonJellyfishUse(Terraria.On_Player.orig_PlaceThing_CannonBall orig, Player self)
|
||||
{
|
||||
// Check if the player is holding a jelly
|
||||
if (self.HeldItem.type == ModContent.ItemType<BabyCannonballJellyfishItem>())
|
||||
{
|
||||
// I have no comments here.
|
||||
bool veryLongRangeCheck = self.position.X / 16f - (float)Player.tileRangeX - (float)self.HeldItem.tileBoost - (float)self.blockRange <= (float)Player.tileTargetX
|
||||
&& (self.position.X + (float)self.width) / 16f + (float)Player.tileRangeX + (float)self.HeldItem.tileBoost - 1f + (float)self.blockRange >= (float)Player.tileTargetX
|
||||
&& self.position.Y / 16f - (float)Player.tileRangeY - (float)self.HeldItem.tileBoost - (float)self.blockRange <= (float)Player.tileTargetY
|
||||
&& (self.position.Y + (float)self.height) / 16f + (float)Player.tileRangeY + (float)self.HeldItem.tileBoost - 2f + (float)self.blockRange >= (float)Player.tileTargetY;
|
||||
|
||||
int targX = Player.tileTargetX;
|
||||
int targY = Player.tileTargetY;
|
||||
|
||||
Tile t = CalamityUtils.ParanoidTileRetrieval(targX, targY);
|
||||
|
||||
// All vanilla cannon types (such as the Bunny Cannon) are a single tile ID, this lets us determine that this tile is the normal Cannon
|
||||
int cannonType = t.TileFrameX / 72;
|
||||
|
||||
// If the player's target tile is within range, is a normal Cannon, they are using an item, and their item time is zero, shoot the baby
|
||||
if (t.TileType == TileID.Cannon && cannonType == 0 && self.ItemTimeIsZero && self.controlUseItem && veryLongRangeCheck)
|
||||
{
|
||||
self.cursorItemIconEnabled = true;
|
||||
self.cursorItemIconID = ModContent.ItemType<BabyCannonballJellyfishItem>();
|
||||
self.HeldItem.makeNPC = -1; // Prevent it from spawning critters when used
|
||||
|
||||
// Determines where all the action should happen and what the angle of the cannon is
|
||||
int tileX = t.TileFrameX / 18;
|
||||
int angle = 0;
|
||||
while (tileX >= 4)
|
||||
{
|
||||
tileX -= 4;
|
||||
}
|
||||
tileX = targX - tileX;
|
||||
int tileY;
|
||||
for (tileY = t.TileFrameY / 18; tileY >= 3; tileY -= 3)
|
||||
{
|
||||
angle++;
|
||||
}
|
||||
tileY = targY - tileY;
|
||||
|
||||
self.ApplyItemTime(self.HeldItem);
|
||||
|
||||
float speedX = 0f;
|
||||
float speedY = 0f;
|
||||
|
||||
// Vanilla code for determining the velocity of shot cannonballs kept intact for consistency
|
||||
if (angle == 0)
|
||||
{
|
||||
speedX = 10f;
|
||||
speedY = 0f;
|
||||
}
|
||||
if (angle == 1)
|
||||
{
|
||||
speedX = 7.5f;
|
||||
speedY = -2.5f;
|
||||
}
|
||||
if (angle == 2)
|
||||
{
|
||||
speedX = 5f;
|
||||
speedY = -5f;
|
||||
}
|
||||
if (angle == 3)
|
||||
{
|
||||
speedX = 2.75f;
|
||||
speedY = -6f;
|
||||
}
|
||||
if (angle == 4)
|
||||
{
|
||||
speedX = 0f;
|
||||
speedY = -10f;
|
||||
}
|
||||
if (angle == 5)
|
||||
{
|
||||
speedX = -2.75f;
|
||||
speedY = -6f;
|
||||
}
|
||||
if (angle == 6)
|
||||
{
|
||||
speedX = -5f;
|
||||
speedY = -5f;
|
||||
}
|
||||
if (angle == 7)
|
||||
{
|
||||
speedX = -7.5f;
|
||||
speedY = -2.5f;
|
||||
}
|
||||
if (angle == 8)
|
||||
{
|
||||
speedX = -10f;
|
||||
speedY = 0f;
|
||||
}
|
||||
Vector2 spawnPosition = new Vector2((tileX + 2) * 16, (tileY + 2) * 16);
|
||||
// Finally shoot the projectile
|
||||
int jellyfishb = Projectile.NewProjectile(new EntitySource_TileInteraction(self, tileX, tileY), spawnPosition.X, spawnPosition.Y, speedX, speedY, ModContent.ProjectileType<BabyCannonballProjectile>(), self.HeldItem.damage, 8f, self.whoAmI);
|
||||
Main.projectile[jellyfishb].originatedFromActivableTile = true;
|
||||
// Shlorb
|
||||
SoundEngine.PlaySound(SoundID.Item95, spawnPosition);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Reset the item to be able to spawn critters again if any of the conditions aren't met
|
||||
self.HeldItem.makeNPC = ModContent.NPCType<BabyCannonballJellyfish>();
|
||||
}
|
||||
}
|
||||
else
|
||||
orig(self);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Add Stohne to the Jungle
|
||||
public static void AddStohne(Terraria.GameContent.Biomes.On_JunglePass.orig_GenerateFinishingTouches orig, JunglePass self, GenerationProgress progress, int oldX, int oldY)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
|
||||
ArmorIDs.Face.Sets.PreventHairDraw[equipSlot] = true;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void Load()
|
||||
{
|
||||
// All code below runs only if we're not loading on a server
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Add equip textures
|
||||
EquipLoader.AddEquipTexture(Mod, $"{Texture}_{EquipType.Head}", EquipType.Head, this);
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void Load()
|
||||
{
|
||||
// All code below runs only if we're not loading on a server
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Add equip textures
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/AquaticTrans_Head", EquipType.Head, this);
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
@@ -11,8 +13,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 32;
|
||||
Item.height = 34;
|
||||
Item.width = 56;
|
||||
Item.height = 64;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.accessory = true;
|
||||
@@ -27,5 +29,21 @@ namespace CalamityMod.Items.Accessories
|
||||
else
|
||||
modPlayer.arcFlashRingVisual = false;
|
||||
}
|
||||
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)
|
||||
{
|
||||
CalamityUtils.DrawInventoryCustomScale(
|
||||
spriteBatch,
|
||||
texture: TextureAssets.Item[Type].Value,
|
||||
position,
|
||||
frame,
|
||||
drawColor,
|
||||
itemColor,
|
||||
origin,
|
||||
scale,
|
||||
wantedScale: 0.7f,
|
||||
drawOffset: new(1f, 0f)
|
||||
);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 3.8 KiB |
@@ -63,6 +63,8 @@ namespace CalamityMod.Items.Accessories
|
||||
player.buffImmune[ModContent.BuffType<ArmorCrunch>()] = true; // "Stronger" Broken Armor
|
||||
player.buffImmune[ModContent.BuffType<BrainRot>()] = true; // Counterpart to Burning Blood
|
||||
player.buffImmune[ModContent.BuffType<BurningBlood>()] = true; // "Stronger" Bleeding
|
||||
player.buffImmune[ModContent.BuffType<HeavyBleeding>()] = true;
|
||||
player.buffImmune[ModContent.BuffType<Laceration>()] = true;
|
||||
player.buffImmune[BuffID.Venom] = true; // "Stronger" Poisoned
|
||||
player.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = true; // "Stronger" Poisoned
|
||||
player.buffImmune[BuffID.Webbed] = true; // "Stronger" Slow
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -22,6 +23,10 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.bloodPact = true; // This applies the +25% health boost.
|
||||
modPlayer.healingPotionMultiplier += 0.25f;
|
||||
//Grants immunity to most Bleeding debuffs
|
||||
player.buffImmune[BuffID.Bleeding] = true;
|
||||
player.buffImmune[ModContent.BuffType<BurningBlood>()] = true;
|
||||
player.buffImmune[ModContent.BuffType<HeavyBleeding>()] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 801 B |
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Rarities;
|
||||
@@ -51,6 +52,12 @@ namespace CalamityMod.Items.Accessories
|
||||
player.pStone = true;
|
||||
player.lifeRegen += 4;
|
||||
|
||||
//All of Blood Pact's immunities + Laceration
|
||||
player.buffImmune[BuffID.Bleeding] = true;
|
||||
player.buffImmune[ModContent.BuffType<BurningBlood>()] = true;
|
||||
player.buffImmune[ModContent.BuffType<HeavyBleeding>()] = true;
|
||||
player.buffImmune[ModContent.BuffType<Laceration>()] = true;
|
||||
|
||||
// This applies the +25% health boost and the bleedout buffer effect.
|
||||
// Health boost intentionally stacks with Blood Pact.
|
||||
// This accessory's bleedout buffer clearing effect intentionally stacks with Blood Pact's healing potion boost.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -21,29 +22,9 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.corrosiveSpine = true;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.Calamity().corrosiveSpine = true;
|
||||
if (player.immune)
|
||||
{
|
||||
if (Main.rand.NextBool(15))
|
||||
{
|
||||
var source = player.GetSource_Accessory(Item);
|
||||
int cloudCount = Main.rand.Next(2, 5);
|
||||
for (int i = 0; i < cloudCount; i++)
|
||||
{
|
||||
int type = Utils.SelectRandom(Main.rand, new int[]
|
||||
{
|
||||
ModContent.ProjectileType<Corrocloud1>(),
|
||||
ModContent.ProjectileType<Corrocloud2>(),
|
||||
ModContent.ProjectileType<Corrocloud3>()
|
||||
});
|
||||
float speed = Main.rand.NextFloat(3f, 11f);
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(80);
|
||||
Projectile.NewProjectile(source, player.Center, Vector2.One.RotatedByRandom(MathHelper.TwoPi) * speed,
|
||||
type, damage, 0f, player.whoAmI);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
|
||||
ArmorIDs.Face.Sets.OverrideHelmet[equipSlot] = true;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
|
||||
ArmorIDs.Face.Sets.OverrideHelmet[equipSlot] = true;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.nCore = true;
|
||||
modPlayer.nebulousCore = true;
|
||||
player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
|
||||
// Spawn nebula stars
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
|
||||
ArmorIDs.Face.Sets.PreventHairDraw[equipSlot] = true;
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace CalamityMod.Items.Accessories
|
||||
*/
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/ProfanedSoulTransHead", EquipType.Head, this);
|
||||
@@ -174,7 +174,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4));
|
||||
ItemID.Sets.AnimatesAsSoul[Type] = true;
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -179,10 +179,6 @@ namespace CalamityMod.Items.Accessories
|
||||
TwoPlaces(60f * player.GetStandingStealthRegen()),
|
||||
TwoPlaces(60f * player.GetMovingStealthRegen()),
|
||||
Sign(rogueVelocity) + TwoPlaces(100f * rogueVelocity));
|
||||
|
||||
// Rogue consumable chance only if item is consumable
|
||||
if (heldItem.consumable)
|
||||
stats2 += this.GetLocalization("RogueConsumption").Format(100f * modPlayer.rogueAmmoCost);
|
||||
}
|
||||
|
||||
// If tool, add tool range
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/AbandonedWulfrumHelmet_HeadSet", EquipType.Head, name: "WulfrumOldSetHead");
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/AbandonedWulfrumHelmet_Body", EquipType.Body, this);
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, "WulfrumOldSetHead", EquipType.Head);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Fabsol_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Fabsol_Body", EquipType.Body, this);
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Dandy_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Dandy_Body", EquipType.Body, this);
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Heart_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Heart_Body", EquipType.Body, this);
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Mishiro_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Mishiro_Body", EquipType.Body, this);
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Popo_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/PopoNoseless_Head", EquipType.Head, name: "PopoNoseless");
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Shayy_Head", EquipType.Head, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Shayy_Body", EquipType.Body, this);
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
int damage = npc.SimpleStrikeNPC((int)(npc.lifeMax / 200), player.direction, true);
|
||||
SoundEngine.PlaySound(Projectiles.Summon.CnidarianJellyfishOnTheString.SlapSound with { Volume = 2, MaxInstances = 200 }, npc.Center);
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
BloodShed(itemRect, npc, damage, player);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Auric
|
||||
public override void Load()
|
||||
{
|
||||
// All code below runs only if we're not loading on a server
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
// Add equip textures
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Auric/AuricTeslaBodyArmor_Back", EquipType.Back, this);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Brimflame
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/CirrusDress_Legs", EquipType.Legs, this);
|
||||
}
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
ArmorIDs.Body.Sets.HidesHands[equipSlot] = true;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Daedalus/DaedalusBreastplate_Waist", EquipType.Waist, this);
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Items.Armor.Demonshade
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<SummonDamageClass>().ApplyTo(DevilDamage);
|
||||
|
||||
var devil = Projectile.NewProjectileDirect(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType<DemonshadeRedDevil>(), damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
var devil = Projectile.NewProjectileDirect(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType<DemonshadeRedDevil>(), damage, 0f, Main.myPlayer, 2f, 0f);
|
||||
devil.originalDamage = DevilDamage;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Empyrean
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Empyrean/EmpyreanCloak_Neck", EquipType.Neck, this);
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Empyrean/EmpyreanCloak_Back", EquipType.Back, this);
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor.Empyrean
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Empyrean
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Empyrean/MeldTransformation_Head", EquipType.Head, name: "MeldTransformation");
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Empyrean/MeldTransformation_Body", EquipType.Body, name: "MeldTransformation");
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor.Empyrean
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
var equipSlotHead = EquipLoader.GetEquipSlot(Mod, "MeldTransformation", EquipType.Head);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.FathomSwarmer
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
@@ -138,14 +138,14 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/MarniteArchitect/MarniteArchitectToga_Legs", EquipType.Legs, this);
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
MountData.playerHeadOffset = 4;
|
||||
|
||||
//Sprites
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
MountData.frontTextureGlow = Request<Texture2D>("CalamityMod/Items/Armor/MarniteArchitect/MarniteLiftFire");
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/OmegaBlue/OmegaBlueHelmet_HeadMadness", EquipType.Head, name: "OmegaBlueTransformation");
|
||||
}
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
var equipSlotHead = EquipLoader.GetEquipSlot(Mod, "OmegaBlueTransformation", EquipType.Head);
|
||||
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Prismatic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/SnowRuffian/SnowRuffianChestplate_Back", EquipType.Back, this);
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/SnowRuffian/SnowRuffianWings", EquipType.Wings, this, equipTexture: new SnowRuffianWings());
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.TitanHeart
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public new string LocalizationCategory => "Items.Armor.Vanity";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public new string LocalizationCategory => "Items.Armor.Vanity";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head);
|
||||
ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Vanity/OldHunterShirt_Back", EquipType.Back, this);
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public new string LocalizationCategory => "Items.Armor.Vanity";
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Vanity/RobesOfCalamity_Legs", EquipType.Legs, this);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawHead[Item.headSlot] = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor.Vanity
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
var equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body);
|
||||
ArmorIDs.Body.Sets.HidesArms[equipSlot] = true;
|
||||
|
||||
Loaded 100 of 749 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user