Fixes
This commit is contained in:
1 parent
e0683f8bdb
commit
44cc644da5
5 files changed
+15
-6
No files matched your search
@@ -1132,6 +1132,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool frozenCubeVisuals = false;
|
||||
public float frozenCubeDebuffBoost = 0;
|
||||
public float frozenCubeElumphantBoost = 0;
|
||||
public int frozenCubeUsedDefense = 0;
|
||||
public bool miniOldDuke = false;
|
||||
public bool miniOldDukeVanity = false;
|
||||
public bool starbusterCore = false;
|
||||
@@ -2513,7 +2514,7 @@ namespace CalamityMod.CalPlayer
|
||||
camper = false;
|
||||
corrosiveSpine = false;
|
||||
scionsCurio = false;
|
||||
frozenCube = false; frozenCubeDebuffBoost = 0; frozenCubeElumphantBoost = 0;
|
||||
frozenCube = false; frozenCubeDebuffBoost = 0; frozenCubeElumphantBoost = 0; frozenCubeUsedDefense = 0;
|
||||
rottenDogTooth = false;
|
||||
angelicAlliance = false;
|
||||
ChaosStone = false;
|
||||
@@ -5139,6 +5140,14 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
// Frozen Cube defense cut
|
||||
if (Player.Calamity().frozenCube)
|
||||
{
|
||||
int usedDefense = (Player.statDefense / FrozenCube.usedDefenseDivide);
|
||||
Player.Calamity().frozenCubeUsedDefense = usedDefense;
|
||||
Player.statDefense -= usedDefense;
|
||||
}
|
||||
|
||||
// Relic of Convergence defense cut
|
||||
if (Player.ownedProjectileCounts[ModContent.ProjectileType<RelicOfConvergenceCrystal>()] > 0 && Player.HeldItem.type == ModContent.ItemType<RelicOfConvergence>())
|
||||
Player.statDefense *= RelicOfConvergence.DefenseMultiplier;
|
||||
|
||||
@@ -17,6 +17,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public static int slamBaseDamage = 20;
|
||||
public static int baseAttackSpeed = 90;
|
||||
public static int baseAttackCooldown = 180;
|
||||
|
||||
public static int usedDefenseDivide = 3;
|
||||
public static int debuff = ModContent.BuffType<WindChilled>();
|
||||
|
||||
public static readonly SoundStyle noise = new("CalamityMod/Sounds/Item/ElumphantSound") { Volume = 0.6f };
|
||||
|
||||
@@ -2253,7 +2253,7 @@ FrozenCube: {
|
||||
Elumphant's headbutts only target enemies inflicted with [cbuff:CalamityMod/WindChilled]
|
||||
Reduces your defense by 33%, but uses that defense to boost the Elumphant's power and your cold debuff damage
|
||||
[DAMAGELINE]
|
||||
[c/7497ED:What I wanna know is, where's the mammoth?']
|
||||
[c/7497ED:'What I wanna know is, where's the mammoth?']
|
||||
'''
|
||||
EquippedDebuff: Current Cold Debuff boost: +{0}%
|
||||
EquippedElumphant: Current Elumphant Power: +{0}%
|
||||
|
||||
@@ -59,7 +59,6 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
public Vector2 lastHitNPCPos;
|
||||
public Vector2 lastProjPos;
|
||||
public bool spawnJumpDusts = true;
|
||||
public int usedDefenseDivide = 3;
|
||||
public float frozenCubePower = 0; // The base power boost gained from defense before scaling adjustments
|
||||
public bool vis => Owner.Calamity().frozenCubeVisuals;
|
||||
|
||||
@@ -131,10 +130,10 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
}
|
||||
public void SetElumphantPower()
|
||||
{
|
||||
int usedDefense = (Owner.statDefense / usedDefenseDivide);
|
||||
int usedDefense = Owner.Calamity().frozenCubeUsedDefense;
|
||||
if (time == 0) // Show the player how much defense is being used
|
||||
CombatText.NewText(Projectile.Hitbox, color2, -usedDefense,false, true);
|
||||
Owner.statDefense -= usedDefense;
|
||||
|
||||
frozenCubePower = usedDefense * 0.05f; // 1 point of defense = 5% effectiveness
|
||||
|
||||
float power = (float)(GetPower(0.0185f, 13f * (1 + frozenCubePower)) - 1);
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
Mods.CalamityMod.Projectiles.V8000SoulVisual.DisplayName: V8000 Soul Visual
|
||||
Reference in new issue
Block a user