Merge conflict fix

This commit is contained in:
mountaindrew10 committed 2023-11-29 06:04:01 -06:00
commit b4c459958b
178 files changed
+1820 -1579

No files matched your search

+38 -45
View File
@@ -64,8 +64,8 @@ namespace CalamityMod.Balancing
// Nerf Luminite Arrow trails by 50%.
Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.MoonlordArrowTrail)),
// Nerf Seedler seeds by 66.6%.
Do(new ProjectileResistBalancingRule(1f / 3f, ProjectileID.SeedlerNut, ProjectileID.SeedlerThorn)),
// Nerf Seedler seeds by 25%.
Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.SeedlerNut, ProjectileID.SeedlerThorn)),
// Nerf Cursed Dart flames by 50%.
Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CursedDartFlame)),
@@ -137,12 +137,15 @@ namespace CalamityMod.Balancing
// 40% resist to Cryophobia.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<CryoBlast>()))));
// 40% resist to Mineral Mortar's Projectile.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<MineralMortarProjectile>()))));
// 15% resist to Snowstorm Staff.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DestroyerIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<Snowflake>()))));
#endregion
#region Astrum Aureus
//35% resist to The Ballista's greatarrows.
// 35% resist to The Ballista's greatarrows.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<AstrumAureus>(), Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<BallistaGreatArrow>()))));
#endregion
@@ -185,6 +188,9 @@ namespace CalamityMod.Balancing
// 25% resist to Resurrection Butterfly.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AstrumDeusIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<SakuraBullet>(), ProjectileType<PurpleButterfly>()))));
// 70% resist to the Stardust Dragon.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AstrumDeusIDs, Do(new ProjectileResistBalancingRule(0.3f, ProjectileID.StardustDragon1, ProjectileID.StardustDragon2, ProjectileID.StardustDragon3, ProjectileID.StardustDragon4))));
#endregion
#region Moon Lord
@@ -237,22 +243,19 @@ namespace CalamityMod.Balancing
#endregion
#region The Devourer of Gods
// 15% vulnerability to Time Bolt stealth strikes.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new StealthStrikeBalancingRule(1.15f, ProjectileType<TimeBoltKnife>()))));
// 40% resist to Eidolic Wail.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<EidolicWailSoundwave>()))));
// 35% resist to Venusian Trident's explosions.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<VenusianBolt>(), ProjectileType<VenusianExplosion>()))));
// 40% resist to Eidolic Wail.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<EidolicWailSoundwave>()))));
// 15% vulnerability to Time Bolt stealth strikes.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new StealthStrikeBalancingRule(1.15f, ProjectileType<TimeBoltKnife>()))));
#endregion The Devourer of Gods
#region Yharon
// 15% resist to Time Bolt.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<Yharon>(), Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<TimeBoltKnife>()))));
// 5% resist to Old Reaper.
//NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<Yharon>(), Do(new ProjectileResistBalancingRule(0.95f, ProjectileType<ReaperProjectile>()))));
#endregion
#region Exo Mechs: Ares
@@ -264,9 +267,6 @@ namespace CalamityMod.Balancing
// 25% resist to Aetherflux Cannon.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PhasedGodRay>()))));
// 25% resist to Murasama.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<MurasamaSlash>()))));
// 20% resist to the Spin Throw part of the Ark of the Cosmos' combo.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.8f, AotCThrowCombo))));
@@ -285,6 +285,9 @@ namespace CalamityMod.Balancing
// 15% resist to Enforcer projectiles.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<EssenceFlame2>()))));
// 15% resist to Murasama.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<MurasamaSlash>()))));
#endregion
#region Exo Mechs: Artemis and Apollo
@@ -292,14 +295,8 @@ namespace CalamityMod.Balancing
// TODO -- NPC sets (mostly worm bosses) should probably be their own holding class.
int[] exoTwins = new int[] { NPCType<Artemis>(), NPCType<Apollo>() };
// 20% resist to Dynamic Pursuer.
NPCSpecificBalancingChanges.AddRange(Bundle(exoTwins, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
// 10% resist to Eclipse's Fall stealth strike.
NPCSpecificBalancingChanges.AddRange(Bundle(exoTwins, Do(new ProjectileResistBalancingRule(0.9f, ProjectileType<EclipsesSmol>()))));
// 10% resist to Seared Pan.
NPCSpecificBalancingChanges.AddRange(Bundle(exoTwins, Do(new ProjectileResistBalancingRule(0.9f, ProjectileType<SearedPanProjectile>(), ProjectileType<PanSpark>(), ProjectileType<NiceCock>()))));
#endregion
#region Exo Mechs: Thanatos
@@ -309,12 +306,12 @@ namespace CalamityMod.Balancing
// 65% resist to Enforcer projectiles.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<EssenceFlame2>()))));
// 65% resist to Dynamic Pursuer. (Do 40% if lightning pierce is removed)
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
// 65% resist to Final Dawn lunge.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<FinalDawnThrow2>()))));
// 60% resist to Dynamic Pursuer.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.4f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
// 50% resist to Chicken Cannon.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<ChickenExplosion>()))));
@@ -324,12 +321,12 @@ namespace CalamityMod.Balancing
// 50% resist to Vehemence skulls.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<VehemenceSkull>(), ProjectileType<PrismaticBeam>()))));
// 50% resist to Wrathwing stealth strike.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<WrathwingCinder>()))));
// 50% resist to Yharim's Crystal.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<YharimsCrystalBeam>()))));
// 45% resist to Wrathwing stealth strike's fireballs.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<WrathwingCinder>()))));
// 40% resist to Rancor.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<RancorLaserbeam>()))));
@@ -339,6 +336,9 @@ namespace CalamityMod.Balancing
// 30% resist to Eclipse Fall.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<EclipsesFallMain>()))));
// 30% resist to Prismatic Breaker's laser beam.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<PrismaticBeam>()))));
// 30% resist to Pulse Rifle.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<PulseRifleShot>()))));
@@ -348,9 +348,6 @@ namespace CalamityMod.Balancing
// 30% resist to Dragon Scales and The Wand's tornadoes
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<InfernadoFriendly>(), ProjectileType<DragonScalesInfernado>()))));
// 30% resist to Prismatic Breaker's laser beam.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<PrismaticBeam>()))));
// 25% resist to the Spin Throw part of the Ark of the Cosmos' combo.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, AotCThrowCombo))));
@@ -360,12 +357,6 @@ namespace CalamityMod.Balancing
// 25% resist to Gael's Greatsword's big skulls.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, BigGaelsSkullFilter))));
// 15% resist to Godslayer Slugs.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<GodSlayerSlugProj>()))));
// 15% resist to Luminite Bullets.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileID.MoonlordBullet))));
// 25% resist to Zenith.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.FinalFractal))));
@@ -375,18 +366,23 @@ namespace CalamityMod.Balancing
// 20% resist to Eradicator beams.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<NebulaShot>()))));
// 20% resist to Plasma Grenade and Dynamic Pursuer's explosions
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<PlasmaGrenadeProjectile>(),ProjectileType<PlasmaGrenadeSmallExplosion>(), ProjectileType<MassivePlasmaExplosion>()))));
// 20% resist to Voltaic Climax / Void Vortex hitscan beams.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<ClimaxBeam>()))));
// 20% resist to Plasma grenades and Dynamic Pursuer's explosions
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<PlasmaGrenadeProjectile>(),ProjectileType<PlasmaGrenadeSmallExplosion>(), ProjectileType<MassivePlasmaExplosion>()))));
// 15% resist to Final Dawn AoE sweep flames.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<FinalDawnFlame>()))));
// 15% resist to Godslayer Slugs.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<GodSlayerSlugProj>()))));
// 15% resist to Gruesome Eminence.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<SpiritCongregation>()))));
// 15% resist to Luminite Bullets.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileID.MoonlordBullet))));
#endregion
#region Supreme Calamitas: Brimstone Hearts
@@ -404,23 +400,20 @@ namespace CalamityMod.Balancing
// 50% resist to Subsuming Vortex.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.5f, ProjectileType<ExoVortex>(), ProjectileType<ExoVortex2>(), ProjectileType<EnormousConsumingVortex>())));
// 30% resist to Murasama.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.7f, ProjectileType<MurasamaSlash>())));
// 30% resist to Zenith.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.7f, ProjectileID.FinalFractal)));
// 25% resist to Yharim's Crystal.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.75f, ProjectileType<YharimsCrystalBeam>())));
// 10% resist to Surge Driver's alt click comets.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.9f, ProjectileType<PrismComet>())));
// 10% resist to Celestus.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.9f, ProjectileType<CelestusProj>(), ProjectileType<CelestusMiniScythe>())));
// 10% resist to Executioner's Blade stealth strikes.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.9f, ProjectileType<ExecutionersBladeStealthProj>())));
// 10% resist to Celestus.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.9f, ProjectileType<CelestusProj>(), ProjectileType<CelestusMiniScythe>())));
// 10% resist to Surge Driver's alt click comets.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.9f, ProjectileType<PrismComet>())));
// 15% vulnerability to The Atom Splitter. (Yes, this is kinda weird, but it's what Piky asked for).
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(1.15f, ProjectileType<TheAtomSplitterProjectile>(), ProjectileType<TheAtomSplitterDuplicate>())));
+2 -2
View File
@@ -19,9 +19,9 @@ namespace CalamityMod.Buffs.Summon
CalamityPlayer modPlayer = player.Calamity();
if (player.ownedProjectileCounts[ModContent.ProjectileType<IceClasperMinion>()] > 0)
{
modPlayer.iClasper = true;
modPlayer.IceClasperBool = true;
}
if (!modPlayer.iClasper)
if (!modPlayer.IceClasperBool)
{
player.DelBuff(buffIndex);
buffIndex--;
+6 -2
View File
@@ -225,6 +225,7 @@ namespace CalamityMod.CalPlayer
public int auralisAurora = 0;
public int necroReviveCounter = -1;
public int hideOfDeusTimer = 0;
public int murasamaHitCooldown = 0;
public int giantShellPostHit = 0;
public int tortShellPostHit = 0;
public int spiritOriginBullseyeShootCountdown = 0;
@@ -509,6 +510,7 @@ namespace CalamityMod.CalPlayer
public int ascendantInsigniaCooldown = 0;
public bool ascendantTrail = false;
public bool eGauntlet = false;
public int gloveLevel = 0; // Used to prevent glove stacking
public bool eTalisman = false;
public int statisTimer = 0;
public bool nucleogenesis = false;
@@ -985,7 +987,7 @@ namespace CalamityMod.CalPlayer
public bool wDroid = false;
public bool resButterfly = false;
public bool mWorm = false;
public bool iClasper = false;
public bool IceClasperBool = false;
public bool magicHat = false;
public bool herring = false;
public bool blackhawk = false;
@@ -1677,6 +1679,7 @@ namespace CalamityMod.CalPlayer
ascendantInsignia = false;
ascendantTrail = false;
eGauntlet = false;
gloveLevel = 0;
eTalisman = false;
nucleogenesis = false;
nuclearFuelRod = false;
@@ -2008,7 +2011,7 @@ namespace CalamityMod.CalPlayer
wDroid = false;
resButterfly = false;
mWorm = false;
iClasper = false;
IceClasperBool = false;
magicHat = false;
herring = false;
blackhawk = false;
@@ -2268,6 +2271,7 @@ namespace CalamityMod.CalPlayer
auralisAurora = 0;
necroReviveCounter = -1;
hideOfDeusTimer = 0;
murasamaHitCooldown = 0;
RustyMedallionCooldown = 0;
SulphWaterPoisoningLevel = 0f;
holyInfernoFadeIntensity = 0f;
+10 -1
View File
@@ -1437,6 +1437,8 @@ namespace CalamityMod.CalPlayer
titanCooldown--;
if (hideOfDeusTimer > 0)
hideOfDeusTimer--;
if (murasamaHitCooldown > 0)
murasamaHitCooldown--;
if (hellbornBoost > 0)
hellbornBoost--;
if (persecutedEnchantSummonTimer < 1800)
@@ -2623,11 +2625,18 @@ namespace CalamityMod.CalPlayer
if (eGauntlet)
{
Player.kbGlove = true;
Player.GetDamage<MeleeDamageClass>() += 0.15f;
Player.GetCritChance<MeleeDamageClass>() += 5;
}
// Gauntlet Melee Speed, prevents glove stacking for melee speed
if (gloveLevel > 0)
{
// Determine the glove the player benefits from in priority of latest in progression
float gloveAttackSpeed = (gloveLevel == 5 ? 0.15f : gloveLevel == 4 ? 0.14f : gloveLevel == 3 ? 0.12f : gloveLevel <= 2 ? 0.10f : 0);
Player.GetAttackSpeed<MeleeDamageClass>() += gloveAttackSpeed; // Give the player attack speed based on the glove they have
}
// Bloodflare Core's heal over time
if (bloodflareCore && bloodflareCoreRemainingHealOverTime > 0 && Player.miscCounter % BloodflareCore.HealFrameCooldown == 0)
{
+4
View File
@@ -162,6 +162,9 @@ namespace CalamityMod
// Tile Entities
//
case CalamityModMessageType.UnlockAbyssChests:
Abyss.UnlockAllAbyssChests();
break;
case CalamityModMessageType.PowerCellFactory:
TEPowerCellFactory.ReadSyncPacket(mod, reader);
break;
@@ -359,6 +362,7 @@ namespace CalamityMod
UpdateCodebreakerConstituents,
UpdateCodebreakerContainedStuff,
UpdateCodebreakerDecryptCountdown,
UnlockAbyssChests,
// Draedon Summoner
CodebreakerSummonStuff,
+6
View File
@@ -120,6 +120,9 @@ namespace CalamityMod.Effects
// Used by Acid Eels, presumably to have their snaking movements look more smooth.
internal static Effect PrimTextureOverlayShader;
// Used as a default for primitive drawing when no specific shader is supplied. This shader simply renders the vertex color data without modification.
internal static Effect StandardPrimitiveShader;
// Used by Devourer of Gods. Renders the portal that he escapes through at the end of phase 1.
internal static Effect DoGPortalShader;
@@ -337,6 +340,9 @@ namespace CalamityMod.Effects
PrimTextureOverlayShader = LoadShader("PrimTextureOverlayShader");
RegisterMiscShader(PrimTextureOverlayShader, "TrailPass", "PrimitiveTexture");
StandardPrimitiveShader = LoadShader("StandardPrimitiveShader");
RegisterMiscShader(StandardPrimitiveShader, "PrimitivePass", "StandardPrimitiveShader");
DoGPortalShader = LoadShader("ScreenShaders/DoGPortalShader");
RegisterMiscShader(DoGPortalShader, "ScreenPass", "DoGPortal");
+57
View File
@@ -0,0 +1,57 @@
sampler uImage0 : register(s0);
sampler uImage1 : register(s1);
float3 uColor;
float3 uSecondaryColor;
float uOpacity;
float uSaturation;
float uRotation;
float uTime;
float4 uSourceRect;
float2 uWorldPosition;
float uDirection;
float3 uLightSource;
float2 uImageSize0;
float2 uImageSize1;
matrix uWorldViewProjection;
float4 uShaderSpecificData;
struct VertexShaderInput
{
float4 Position : POSITION0;
float4 Color : COLOR0;
float2 TextureCoordinates : TEXCOORD0;
};
struct VertexShaderOutput
{
float4 Position : SV_POSITION;
float4 Color : COLOR0;
float2 TextureCoordinates : TEXCOORD0;
};
VertexShaderOutput VertexShaderFunction(in VertexShaderInput input)
{
VertexShaderOutput output = (VertexShaderOutput) 0;
float4 pos = mul(input.Position, uWorldViewProjection);
output.Position = pos;
output.Color = input.Color;
output.TextureCoordinates = input.TextureCoordinates;
return output;
}
// Returns the direct output from the primitive's specified color value. Nothing fancy.
float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
{
return input.Color;
}
technique Technique1
{
pass PrimitivePass
{
VertexShader = compile vs_2_0 VertexShaderFunction();
PixelShader = compile ps_2_0 PixelShaderFunction();
}
}
Binary file not shown.
+5 -25
View File
@@ -39,7 +39,6 @@ namespace CalamityMod
public VertexWidthFunction WidthFunction;
public VertexColorFunction ColorFunction;
public static BasicEffect BaseEffect;
public MiscShaderData SpecialShader;
public TrailPointRetrievalFunction TrailPointFunction;
@@ -61,24 +60,10 @@ namespace CalamityMod
TrailPointFunction = pointFunction;
SpecialShader = specialShader ?? GameShaders.Misc["CalamityMod:StandardPrimitiveShader"];
if (specialShader != null)
SpecialShader = specialShader;
if (BaseEffect is null)
BaseEffect = new BasicEffect(Main.instance.GraphicsDevice)
{
VertexColorEnabled = true,
TextureEnabled = false
};
UpdateBaseEffect(out _, out _);
}
public void UpdateBaseEffect(out Matrix effectProjection, out Matrix effectView)
{
CalamityUtils.CalculatePerspectiveMatricies(out effectView, out effectProjection);
BaseEffect.View = effectView;
BaseEffect.Projection = effectProjection;
}
public static List<Vector2> RigidPointRetreivalFunction(IEnumerable<Vector2> originalPositions, Vector2 generalOffset, int totalTrailPoints, IEnumerable<float> _ = null)
@@ -253,7 +238,7 @@ namespace CalamityMod
if (trailPoints.All(point => point == trailPoints[0]))
return;
UpdateBaseEffect(out Matrix projection, out Matrix view);
CalamityUtils.CalculatePerspectiveMatricies(out Matrix view, out Matrix projection);
VertexPosition2DColor[] vertices = GetVerticesFromTrailPoints(trailPoints);
short[] triangleIndices = GetIndicesFromTrailPoints(trailPoints.Count);
@@ -267,13 +252,8 @@ namespace CalamityMod
Main.instance.GraphicsDevice.RasterizerState.ScissorTestEnable = true;
Main.instance.GraphicsDevice.ScissorRectangle = new Rectangle(0, 0, Main.screenWidth, Main.screenHeight); //offscreen culling
if (SpecialShader != null)
{
SpecialShader.Shader.Parameters["uWorldViewProjection"].SetValue(view * projection);
SpecialShader.Apply();
}
else
BaseEffect.CurrentTechnique.Passes[0].Apply();
SpecialShader.Shader.Parameters["uWorldViewProjection"].SetValue(view * projection);
SpecialShader.Apply();
Main.instance.GraphicsDevice.DrawUserIndexedPrimitives(PrimitiveType.TriangleList, vertices, 0, vertices.Length, triangleIndices, 0, triangleIndices.Length / 3);
Main.pixelShader.CurrentTechnique.Passes[0].Apply();
+2 -2
View File
@@ -11,8 +11,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 30;
Item.height = 44;
Item.width = 40;
Item.height = 26;
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
Item.rare = ItemRarityID.Lime;
Item.accessory = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 585 B

+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
public class DragonScales : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int ShitBaseDamage = 55;
public static int ShitBaseDamage = 57;
public static int TornadoBaseDamage = 210;
public override void SetDefaults()
+2 -2
View File
@@ -28,8 +28,8 @@ namespace CalamityMod.Items.Accessories
player.kbGlove = true;
player.autoReuseGlove = true;
player.meleeScaleGlove = true;
player.GetAttackSpeed<MeleeDamageClass>() += 0.15f;
player.GetDamage<TrueMeleeDamageClass>() += 0.1f;
modPlayer.gloveLevel = 5;
player.GetDamage<TrueMeleeDamageClass>() += 0.10f;
}
public override void AddRecipes()
+1 -1
View File
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.Accessories
var source = player.GetSource_Accessory(Item);
Vector2 velocity = new Vector2(0f, -1f);
int baseDamage = 90;
int baseDamage = 50;
if (modPlayer.oldFashioned)
baseDamage = (int)(baseDamage * OldFashioned.AccessoryAndSetBonusDamageMultiplier);
+9 -6
View File
@@ -36,7 +36,8 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.GetDamage<SummonDamageClass>() += 0.07f;
player.GetModPlayer<WulfrumBatteryPlayer>().battery = true;
if (!hideVisual)
player.GetModPlayer<WulfrumBatteryPlayer>().battery = true;
}
//Scrappable for 3-6 wulfrum scrap or a 20% chance to get an energy core
@@ -66,20 +67,22 @@ namespace CalamityMod.Items.Accessories
{
if (!projectile.npcProj && !projectile.trap && projectile.minion && !ProjectileID.Sets.MinionShot[projectile.type] && Main.player[projectile.owner].GetModPlayer<WulfrumBatteryPlayer>().battery)
{
float lightMult = 2f;
float lightMult = 1f;
if (Lighting.UpdateEveryFrame) //The light loks wayyy too bright in retro/trippy
lightMult *= 0.5f;
lightMult *= 0.25f;
Lighting.AddLight(projectile.Center, Color.DeepSkyBlue.ToVector3() * lightMult);
Lighting.AddLight(projectile.Center, Color.LightGreen.ToVector3() * lightMult);
if (Main.rand.NextBool(16))
if (Main.rand.NextBool(15))
{
float size = (projectile.Hitbox.Size() / 2f).Length();
Dust zapDust = Dust.NewDustPerfect(projectile.Center + Main.rand.NextVector2Circular(1f, 1f) * size, 226, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(1f, 2.3f));
Dust zapDust = Dust.NewDustPerfect(projectile.Center + Main.rand.NextVector2Circular(1f, 1f) * size, 66, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(0.5f, 1.3f));
zapDust.noGravity = true;
zapDust.color = Main.rand.NextBool() ? Color.SkyBlue : Color.LightGreen;
zapDust.velocity = projectile.velocity * 0.2f;
}
}
}
+12 -10
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Rarities;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -9,11 +8,13 @@ namespace CalamityMod.Items.Ammo
{
public class MortarRound : ModItem, ILocalizedModType
{
internal static int TileBlastRadiusNormal = 3;
internal static int TileBlastRadiusGFB = 5;
public static int TileBlastRadius => Main.getGoodWorld ? TileBlastRadiusGFB : TileBlastRadiusNormal;
public static int HitboxBlastRadius => TileBlastRadius * 16 + 12;
public new string LocalizationCategory => "Items.Ammo";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 99;
}
public override void SetStaticDefaults() => Item.ResearchUnlockCount = 99;
public override void SetDefaults()
{
@@ -23,9 +24,9 @@ namespace CalamityMod.Items.Ammo
Item.height = 14;
Item.maxStack = 9999;
Item.consumable = true;
Item.knockBack = 7.5f;
Item.knockBack = 7f;
Item.value = Item.sellPrice(copper: 20);
Item.rare = ModContent.RarityType<Turquoise>();
Item.rare = ItemRarityID.Yellow;
Item.ammo = AmmoID.Bullet;
Item.shoot = ModContent.ProjectileType<MortarRoundProj>();
}
@@ -33,9 +34,10 @@ namespace CalamityMod.Items.Ammo
public override void AddRecipes()
{
CreateRecipe(100).
AddIngredient(ItemID.RocketIV, 100).
AddIngredient<UelibloomBar>().
AddTile(TileID.LunarCraftingStation).
AddIngredient(ItemID.EmptyBullet, 100).
AddIngredient(ItemID.ExplosivePowder, 4).
AddIngredient<ScoriaBar>().
AddTile(TileID.WorkBenches).
Register();
}
}
+5 -9
View File
@@ -1,5 +1,4 @@
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Rarities;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -9,22 +8,19 @@ namespace CalamityMod.Items.Ammo
public class RubberMortarRound : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Ammo";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 99;
}
public override void SetStaticDefaults() => Item.ResearchUnlockCount = 99;
public override void SetDefaults()
{
Item.damage = 25;
Item.damage = 20;
Item.DamageType = DamageClass.Ranged;
Item.width = 20;
Item.height = 14;
Item.maxStack = 9999;
Item.consumable = true;
Item.knockBack = 7.5f;
Item.knockBack = 7f;
Item.value = Item.sellPrice(copper: 20);
Item.rare = ModContent.RarityType<Turquoise>();
Item.rare = ItemRarityID.Yellow;
Item.ammo = AmmoID.Bullet;
Item.shoot = ModContent.ProjectileType<RubberMortarRoundProj>();
}
@@ -34,7 +30,7 @@ namespace CalamityMod.Items.Ammo
CreateRecipe(100).
AddIngredient<MortarRound>(100).
AddIngredient(ItemID.PinkGel, 5).
AddTile(TileID.LunarCraftingStation).
AddTile(TileID.WorkBenches).
Register();
}
}
+4 -3
View File
@@ -1,4 +1,5 @@
using CalamityMod.CalPlayer;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
@@ -68,8 +69,8 @@ namespace CalamityMod.Items.Armor.Empyrean
player.setBonus = this.GetLocalizedValue("SetBonus");
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
{
player.AddBuff(BuffID.Wrath, 2);
player.AddBuff(BuffID.Rage, 2);
player.AddBuff(ModContent.BuffType<EmpyreanWrath>(), 2);
player.AddBuff(ModContent.BuffType<EmpyreanRage>(), 2);
}
player.GetDamage<ThrowingDamageClass>() += 0.09f;
modPlayer.rogueVelocity += 0.09f;
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Silva
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
public override void SetDefaults()
{
Item.width = 34;
Item.width = 24;
Item.height = 24;
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
Item.defense = 44;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 308 B

+25 -9
View File
@@ -1183,24 +1183,40 @@ namespace CalamityMod.Items
if (item.type == ItemID.FireGauntlet)
{
player.GetDamage<MeleeDamageClass>() += 0.02f;
player.GetAttackSpeed<MeleeDamageClass>() += 0.02f;
}
//Feral Claws line melee speed adjustments
// Feral Claws line melee speed adjustments and nonstacking
// First removes all their melee speed so it can be given based on which you wear without stacking
if (item.type == ItemID.FeralClaws)
{
player.GetAttackSpeed<MeleeDamageClass>() -= 0.02f;
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Feral Claws 10%
if (modPlayer.gloveLevel < 1)
modPlayer.gloveLevel = 1;
}
if (item.type == ItemID.PowerGlove)
if (item.type == ItemID.PowerGlove)
{
player.GetAttackSpeed<MeleeDamageClass>() -= 0.02f;
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Power Glove 10%
if (modPlayer.gloveLevel < 2)
modPlayer.gloveLevel = 2;
}
if (item.type == ItemID.BerserkerGlove)
if (item.type == ItemID.BerserkerGlove)
{
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f;
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Berserker Glove 0%
}
if (item.type == ItemID.MechanicalGlove)
{
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Mechanical Glove 12%
if (modPlayer.gloveLevel < 3)
modPlayer.gloveLevel = 3;
}
if (item.type == ItemID.FireGauntlet)
{
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Fire Gauntlet 14%
if (modPlayer.gloveLevel < 4)
modPlayer.gloveLevel = 4;
}
if (modPlayer.eGauntlet && modPlayer.gloveLevel < 5) // Elemental Gauntlet 15%
modPlayer.gloveLevel = 5;
//Celestial Stone line melee speed removal
if (item.type == ItemID.SunStone)
+8 -2
View File
@@ -670,7 +670,7 @@ namespace CalamityMod.Items
if (item.type == ItemID.PowerGlove)
{
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("12%", "10%"));
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("12% increased melee speed", "10% increased melee speed, does not stack with downgrades"));
EditTooltipByNum(0, (line) => line.Text += "\n10% increased true melee damage");
}
@@ -680,13 +680,19 @@ namespace CalamityMod.Items
}
if (item.type == ItemID.MechanicalGlove)
{
string extraLine = "\n12% increased melee speed, does not stack with downgrades";
EditTooltipByNum(1, (line) => line.Text = "12% increased melee damage" + extraLine);
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("12% increased melee speed", "12% increased melee speed, does not stack with downgrades"));
EditTooltipByNum(0, (line) => line.Text += "\n10% increased true melee damage");
}
if (item.type == ItemID.FireGauntlet)
{
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("fire damage", "Hellfire"));
string extraLine = "\n10% increased true melee damage";
EditTooltipByNum(1, (line) => line.Text = "14% increased melee damage and speed" + extraLine);
string extraLine2 = "\n14% increased melee speed, does not stack with downgrades" + extraLine;
EditTooltipByNum(1, (line) => line.Text = "14% increased melee damage" + extraLine2);
}
// On Fire! debuff immunities
+2 -2
View File
@@ -107,7 +107,7 @@ namespace CalamityMod.Items
{ ItemID.Flairon, Do(DamageExact(73)) },
{ ItemID.Flamarang, Do(DamageExact(43)) },
{ ItemID.Flamelash, Do(DamageRatio(1.25f)) },
{ ItemID.Flamethrower, Do(DamageExact(24), ShootSpeedDelta(+3f)) },
{ ItemID.Flamethrower, Do(DamageExact(21), ShootSpeedDelta(+3f)) },
{ ItemID.FlowerofFire, Do(AutoReuse, ManaExact(7), UseRatio(0.88f), DamageRatio(0.65f)) }, // Uses ratios due to remix seed
{ ItemID.FlowerofFrost, Do(AutoReuse, ManaExact(7), UseExact(22), DamageExact(70), ShootSpeedExact(14)) },
{ ItemID.FlyingKnife, Do(DamageExact(53)) },
@@ -201,7 +201,7 @@ namespace CalamityMod.Items
{ ItemID.Sandgun, Do(PointBlank, DamageExact(22), UseExact(20)) },
{ ItemID.SapphireStaff, Do(DamageExact(25)) },
{ ItemID.SDMG, Do(PointBlank, DamageExact(80)) },
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageRatio(1.5f)) },
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageExact(74), ShootSpeedDelta(+4f)) },
{ ItemID.ShadowbeamStaff, Do(DamageExact(100)) },
{ ItemID.ShadowFlameBow, Do(PointBlank, DamageExact(55)) },
{ ItemID.ShadowFlameHexDoll, Do(DamageExact(40), ShootSpeedExact(30)) },
+2 -2
View File
@@ -15,8 +15,8 @@ namespace CalamityMod.Items.Materials
public override void SetDefaults()
{
Item.width = 16;
Item.height = 14;
Item.width = 20;
Item.height = 36;
Item.maxStack = 9999;
Item.value = Item.buyPrice(0, 2, 50, 0);
Item.rare = ItemRarityID.LightRed;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

After

Width:  |  Height:  |  Size: 622 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 384 B

After

Width:  |  Height:  |  Size: 279 B

@@ -10,8 +10,8 @@ namespace CalamityMod.Items.Placeables.Furniture
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 26;
Item.height = 22;
Item.width = 32;
Item.height = 26;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 388 B

After

Width:  |  Height:  |  Size: 354 B

@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
public override void SetDefaults()
{
Item.width = 26;
Item.height = 26;
Item.height = 28;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 588 B

After

Width:  |  Height:  |  Size: 329 B

@@ -9,8 +9,8 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 26;
Item.height = 26;
Item.width = 30;
Item.height = 28;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 519 B

After

Width:  |  Height:  |  Size: 317 B

@@ -10,8 +10,8 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 28;
Item.height = 20;
Item.width = 30;
Item.height = 26;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 368 B

@@ -13,8 +13,8 @@ namespace CalamityMod.Items.Placeables.FurnitureAbyss
public override void SetDefaults()
{
Item.width = 8;
Item.height = 10;
Item.width = 24;
Item.height = 14;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 B

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 391 B

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 526 B

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 488 B

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 388 B

After

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 B

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 B

After

Width:  |  Height:  |  Size: 274 B

@@ -9,8 +9,8 @@ namespace CalamityMod.Items.Placeables.FurnitureAshen
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 26;
Item.height = 26;
Item.width = 16;
Item.height = 20;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 B

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 B

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 293 B

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 B

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 595 B

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

After

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 562 B

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 336 B

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 B

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 483 B

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 405 B

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 B

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 716 B

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 644 B

After

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 427 B

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 617 B

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

After

Width:  |  Height:  |  Size: 239 B

+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Tools
Item.DamageType = DamageClass.Melee;
Item.width = 46;
Item.height = 46;
Item.height = 48;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
Item.rare = ItemRarityID.LightRed;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 884 B

+3 -3
View File
@@ -13,13 +13,13 @@ namespace CalamityMod.Items.Weapons.Magic
public new string LocalizationCategory => "Items.Weapons.Magic";
public override void SetDefaults()
{
Item.damage = 14;
Item.damage = 10;
Item.DamageType = DamageClass.Magic;
Item.mana = 20;
Item.width = 28;
Item.height = 32;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useTime = 35;
Item.useAnimation = 35;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3f;
+2 -2
View File
@@ -13,7 +13,8 @@ namespace CalamityMod.Items.Weapons.Melee
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.width = 62;
Item.width = 44;
Item.height = 70;
Item.damage = 38;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 30;
@@ -23,7 +24,6 @@ namespace CalamityMod.Items.Weapons.Melee
Item.knockBack = 5.25f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.height = 62;
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.shoot = ModContent.ProjectileType<GelWave>();
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

+8 -3
View File
@@ -3,6 +3,7 @@ using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -14,8 +15,12 @@ namespace CalamityMod.Items.Weapons.Melee
public new string LocalizationCategory => "Items.Weapons.Melee";
public int frameCounter = 0;
public int frame = 0;
public bool IDUnlocked(Player player) => DownedBossSystem.downedYharon || player.name == "Jetstream Sam" || player.name == "Samuel Rodrigues";
public bool IDUnlocked(Player player) => DownedBossSystem.downedDoG;
public static readonly SoundStyle OrganicHit = new("CalamityMod/Sounds/Item/MurasamaHitOrganic") { Volume = 0.6f };
public static readonly SoundStyle InorganicHit = new("CalamityMod/Sounds/Item/MurasamaHitInorganic") { Volume = 0.65f };
public static readonly SoundStyle Swing = new("CalamityMod/Sounds/Item/MurasamaSwing") { Volume = 0.3f };
public static readonly SoundStyle BigSwing = new("CalamityMod/Sounds/Item/MurasamaBigSwing") { Volume = 0.35f };
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 13));
@@ -26,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.height = 128;
Item.width = 56;
Item.damage = 3001;
Item.damage = 2222;
Item.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
Item.noMelee = true;
Item.noUseGraphic = true;
@@ -44,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Melee
}
// Terraria seems to really dislike high crit values in SetDefaults
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 30;
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 61;
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

+2 -2
View File
@@ -12,7 +12,8 @@ namespace CalamityMod.Items.Weapons.Melee
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.width = 60;
Item.width = 86;
Item.height = 64;
Item.damage = 232;
Item.noMelee = true;
Item.noUseGraphic = true;
@@ -23,7 +24,6 @@ namespace CalamityMod.Items.Weapons.Melee
Item.knockBack = 8.5f;
Item.UseSound = SoundID.Item1;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.height = 62;
Item.shoot = ModContent.ProjectileType<DivineHatchetBoomerang>();
Item.shootSpeed = 14f;
Item.value = CalamityGlobalItem.Rarity12BuyPrice;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

+2 -2
View File
@@ -19,8 +19,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.width = 40;
Item.height = 26;
Item.width = 36;
Item.height = 38;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.damage = 29;
Item.knockBack = 3.5f;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 713 B

After

Width:  |  Height:  |  Size: 958 B

+2 -2
View File
@@ -16,8 +16,8 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.damage = 33;
Item.DamageType = DamageClass.Ranged;
Item.width = 30;
Item.height = 50;
Item.width = 32;
Item.height = 96;
Item.useTime = 31;
Item.useAnimation = 31;
Item.useStyle = ItemUseStyleID.Shoot;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

+2 -2
View File
@@ -15,8 +15,8 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.damage = 23;
Item.DamageType = DamageClass.Ranged;
Item.width = 44;
Item.height = 30;
Item.width = 76;
Item.height = 28;
Item.useTime = 32;
Item.useAnimation = 32;
Item.useStyle = ItemUseStyleID.Shoot;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 829 B

After

Width:  |  Height:  |  Size: 1.3 KiB

+29 -19
View File
@@ -1,7 +1,8 @@
using Terraria.DataStructures;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Ranged;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -10,34 +11,43 @@ namespace CalamityMod.Items.Weapons.Ranged
public class MineralMortar : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetDefaults()
{
Item.damage = 30;
Item.damage = 85;
Item.DamageType = DamageClass.Ranged;
Item.width = 58;
Item.height = 26;
Item.useTime = 33;
Item.useAnimation = 33;
Item.useStyle = ItemUseStyleID.Shoot;
Item.shoot = ModContent.ProjectileType<MineralMortarHoldout>();
Item.useTime = Item.useAnimation = 60;
Item.shootSpeed = 25f;
Item.knockBack = 20f;
Item.width = 68;
Item.height = 32;
Item.noMelee = true;
Item.knockBack = 5f;
Item.noUseGraphic = true;
Item.channel = true;
Item.useAmmo = AmmoID.Rocket;
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
Item.rare = ItemRarityID.Pink;
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shootSpeed = 14f;
Item.shoot = ModContent.ProjectileType<OnyxSharkBomb>();
Item.useAmmo = AmmoID.Rocket;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = new SoundStyle("CalamityMod/Sounds/Item/DudFire") with { Volume = .4f, Pitch = -.9f, PitchVariance = 0.1f };
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-10, 0);
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] == 0;
// Spawning the holdout won't consume ammo.
public override bool CanConsumeAmmo(Item ammo, Player player) => player.ownedProjectileCounts[Item.shoot] != 0;
// Makes the rotation of the mouse around the player sync in multiplayer.
public override void HoldItem(Player player) => player.Calamity().mouseRotationListener = true;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType<OnyxSharkBomb>(), damage, knockback, player.whoAmI, 0f, 0f);
Projectile holdout = Projectile.NewProjectileDirect(source, player.Center, Vector2.Zero, ModContent.ProjectileType<MineralMortarHoldout>(), 0, 0f, player.whoAmI);
// We set the rotation to the direction to the mouse so the first frame doesn't appear bugged out.
holdout.rotation = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero).ToRotation();
return false;
}
+4 -4
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
CalamityGlobalItem modItem = Item.Calamity();
Item.damage = 2550;
Item.damage = 2850;
Item.DamageType = RogueDamageClass.Instance;
Item.width = 30;
@@ -41,11 +41,11 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<DynamicPursuerProjectile>();
Item.shootSpeed = 18f;
Item.shootSpeed = 17f;
modItem.UsesCharge = true;
modItem.MaxCharge = 300f; // Tesla Cannon = 250f
modItem.ChargePerUse = 0.5f; // Tesla Cannon = 0.9f
modItem.ChargePerUse = 0.4f; // Tesla Cannon = 0.9f
}
public static float StealthDmgMult = 0.3f; //So I can edit it directly via DragonLens instead of having to do math with CalTestHelpers
public override float StealthDamageMultiplier => StealthDmgMult;
@@ -56,7 +56,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public static float ReturnMaxSpeed = 24f;
public static float RicochetShootingCooldown = 1000f;
public static float RicochetVelocityCap = 28f;
public static float ElectricityDmgMult = 0.3f;
public static float ElectricityDmgMult = 0.4f;
public static float ElectricityCooldown = 500f;
public static float LaserDmgMult = 0.25f;
public static float LaserCooldown = 300f;
+7 -6
View File
@@ -11,27 +11,29 @@ namespace CalamityMod.Items.Weapons.Rogue
[LegacyName("AccretionDisk")]
public class ElementalDisk : RogueWeapon
{
public static int stealthTimeMult = 2;
public override void SetDefaults()
{
Item.width = 38;
Item.damage = 100;
Item.damage = 92;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useAnimation = 16;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 15;
Item.useTime = 16;
Item.knockBack = 9f;
Item.UseSound = SoundID.Item1;
Item.height = 38;
Item.value = CalamityGlobalItem.Rarity11BuyPrice;
Item.rare = ItemRarityID.Purple;
Item.shoot = ModContent.ProjectileType<ElementalDiskProj>();
Item.shootSpeed = 13f;
Item.shootSpeed = 15f;
Item.DamageType = RogueDamageClass.Instance;
}
public override float StealthVelocityMultiplier => 0.7f;
public override float StealthDamageMultiplier => 0.75f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
@@ -41,8 +43,7 @@ namespace CalamityMod.Items.Weapons.Rogue
if (proj.WithinBounds(Main.maxProjectiles))
{
Main.projectile[proj].Calamity().stealthStrike = true;
Main.projectile[proj].timeLeft *= 3;
Main.projectile[proj].localNPCHitCooldown *= 2;
Main.projectile[proj].timeLeft *= stealthTimeMult;
}
return false;
}
+2 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/FinalDawnSlash");
public override void SetDefaults()
{
Item.damage = 1500;
Item.damage = 2500;
Item.DamageType = RogueDamageClass.Instance;
Item.width = 78;
Item.height = 66;
@@ -34,6 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.noUseGraphic = true;
}
public override float StealthDamageMultiplier => 0.6f;
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] +
player.ownedProjectileCounts[ProjectileType<FinalDawnFireSlash>()] +
player.ownedProjectileCounts[ProjectileType<FinalDawnHorizontalSlash>()] +
Loaded 100 of 178 files, more files were not shown because too many files have changed in this diff. Show more