Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
a5bc70ef2b
8 files changed
+25
-27
No files matched your search
@@ -19,9 +19,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public new string LocalizationCategory => "Items.Weapons.Melee";
|
||||
public float Combo = 1f;
|
||||
public float Charge = 0f;
|
||||
public static float chargeDamageMultiplier = 1.45f; //Extra damage from charge
|
||||
public static float beamDamageMultiplier = 0.8f; //Damage multiplier for the charged shots (remember it applies ontop of the charge damage multiplied
|
||||
public static float glassStarDamageMultiplier = 0.4f; //Damage multiplier for the glass stars it shoots (Shoots 3x glass stars when not charged, shoots 2x glass stars + one beam when charged)
|
||||
public static float chargeDamageMultiplier = 1.25f; //Extra damage from charge
|
||||
public static float beamDamageMultiplier = 1f; //Damage multiplier for the charged shots (remember it applies ontop of the charge damage multiplied
|
||||
public static float glassStarDamageMultiplier = 0.6f; //Damage multiplier for the glass stars it shoots (Shoots 3x glass stars when not charged, shoots 2x glass stars + one beam when charged)
|
||||
|
||||
public static float blastDamageMultiplier = 0.5f; //Damage multiplier applied ontop of the charge damage multiplier mutliplied by the amount of charges consumed. So if you consume 5 charges, the blast will get multiplied by 5 times the damage multiplier
|
||||
public static float blastFalloffSpeed = 0.1f; //How much the blast damage falls off as you hit more and more targets
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = Item.height = 72;
|
||||
Item.damage = 188;
|
||||
Item.damage = 194;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.noUseGraphic = true;
|
||||
Item.noMelee = true;
|
||||
|
||||
@@ -60,8 +60,8 @@ AbyssalMirror: {
|
||||
Significantly reduces enemy aggression, even in the abyss
|
||||
Stealth generates 25% faster when standing still and 12% faster while moving
|
||||
Grants the ability to evade attacks, releasing a cloud of lumenyl fluid which damages and stuns nearby enemies
|
||||
Attacks that deal less than 5% of your max life in damage will not be evaded
|
||||
The evade has a cooldown that ranges between 15 and 90 seconds depending on the evaded attack's damage
|
||||
Attacks that deal less than 5% of your max life in damage will not be evaded
|
||||
The evade has a cooldown that ranges between 15 and 90 seconds depending on the evaded attack's damage
|
||||
Evading an attack grants a lot of stealth
|
||||
This cooldown is shared with all other dodges and reflects
|
||||
'Light does not reach the depths of the ocean'
|
||||
@@ -125,7 +125,7 @@ AmalgamatedBrain: {
|
||||
Shade rains down when you are hit
|
||||
Grants the ability to dodge attacks
|
||||
Attacks that deal less than 5% of your max life in damage will not be dodged
|
||||
The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage
|
||||
The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage
|
||||
This cooldown is shared with all other dodges and reflects
|
||||
Temporarily increases critical strike chance and summon damage after a dodge
|
||||
You will confuse nearby enemies when you are struck
|
||||
@@ -610,8 +610,8 @@ EclipseMirror: {
|
||||
Mobile stealth generation accelerates while not attacking
|
||||
Stealth strikes only expend 50% of your max stealth
|
||||
Grants the ability to evade attacks in a blast of darksun light, which inflicts extreme damage in a wide area
|
||||
Attacks that deal less than 5% of your max life in damage will not be evaded
|
||||
The evade has a cooldown that ranges between 15 and 90 seconds depending on the evaded attack's damage
|
||||
Attacks that deal less than 5% of your max life in damage will not be evaded
|
||||
The evade has a cooldown that ranges between 15 and 90 seconds depending on the evaded attack's damage
|
||||
Evading an attack grants full stealth
|
||||
This cooldown is shared with all other dodges and reflects
|
||||
'Its reflection shows naught but darkness'
|
||||
@@ -1641,7 +1641,7 @@ StatisNinjaBelt: {
|
||||
Increased fall damage resistance by 35 blocks
|
||||
Can climb walls, dash, and dodge attacks
|
||||
Attacks that deal less than 5% of your max life in damage will not be dodged
|
||||
The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage
|
||||
The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage
|
||||
This cooldown is shared with all other dodges and reflects
|
||||
'''
|
||||
}
|
||||
@@ -1654,7 +1654,7 @@ StatisVoidSash: {
|
||||
Grants immunity to fall damage
|
||||
Can climb walls, dash, and dodge attacks
|
||||
Attacks that deal less than 5% of your max life in damage will not be dodged
|
||||
The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage
|
||||
The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage
|
||||
This cooldown is shared with all other dodges and reflects
|
||||
Dashes leave homing scythes in your wake
|
||||
'''
|
||||
@@ -1779,8 +1779,8 @@ TheAmalgam: {
|
||||
15% increased damage
|
||||
Shade rains down when you are hit
|
||||
Grants the ability to dodge attacks
|
||||
Attacks that deal less than 5% of your max life in damage will not be dodged
|
||||
The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage
|
||||
Attacks that deal less than 5% of your max life in damage will not be dodged
|
||||
The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage
|
||||
This cooldown is shared with all other dodges and reflects
|
||||
Temporarily increases critical strike chance and summon damage after a dodge
|
||||
Nearby enemies receive a variety of sickness-related debuffs when you are hit
|
||||
@@ -1834,9 +1834,9 @@ TheEvolution: {
|
||||
Tooltip:
|
||||
'''
|
||||
You reflect projectiles when they hit you
|
||||
Reflected projectiles deal no damage to you
|
||||
Projectiles that deal less than 5% of your max life in damage will not be reflected
|
||||
The reflect has a cooldown that ranges between 15 and 90 seconds depending on the reflected projectile's damage
|
||||
Reflected projectiles deal no damage to you
|
||||
Projectiles that deal less than 5% of your max life in damage will not be reflected
|
||||
The reflect has a cooldown that ranges between 15 and 90 seconds depending on the reflected projectile's damage
|
||||
This cooldown is shared with all other dodges and reflects
|
||||
After reflecting something, grants +1 HP/s life regen and accelerated life regen for 5 seconds
|
||||
If the same enemy projectile type hits you again you will resist its damage by 15%
|
||||
|
||||
@@ -166,7 +166,6 @@ VanquisherArrow: {
|
||||
'''
|
||||
Powerful arrows forged with cosmic steel
|
||||
Pierces through tiles and homes in on enemies
|
||||
Creates a large explosion upon expiration
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -104,8 +104,8 @@ DaedalusHeadMelee: {
|
||||
Enemies are more likely to target you
|
||||
You reflect projectiles back at enemies
|
||||
Reflected projectiles deal 50% less damage to you
|
||||
Projectiles that deal less than 5% of your max life in damage will not be reflected
|
||||
The reflect has a cooldown that ranges between 15 and 90 seconds depending on the reflected projectile's damage
|
||||
Projectiles that deal less than 5% of your max life in damage will not be reflected
|
||||
The reflect has a cooldown that ranges between 15 and 90 seconds depending on the reflected projectile's damage
|
||||
This cooldown is shared with all other dodges and reflects
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -184,7 +184,6 @@ namespace CalamityMod.NPCs.CalClone
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType<CalamitasCloneBag>()));
|
||||
npcLoot.Add(ItemID.BrokenHeroSword);
|
||||
|
||||
// Normal drops: Everything that would otherwise be in the bag
|
||||
var normalOnly = npcLoot.DefineNormalOnlyDropSet();
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
Projectile.rotation += (Math.Abs(Projectile.velocity.X) + Math.Abs(Projectile.velocity.Y)) * 0.01f * (float)Projectile.direction;
|
||||
|
||||
CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 200f, 12f, 20f);
|
||||
CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 256f, 12f, 20f);
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
const float MaxTime = 40;
|
||||
const float MaxTime = 75;
|
||||
public float Timer => MaxTime - Projectile.timeLeft;
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
if (Projectile.timeLeft > 35)
|
||||
if (Projectile.timeLeft > 70)
|
||||
return false;
|
||||
|
||||
DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1);
|
||||
@@ -89,7 +89,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
Texture2D starTexture = Request<Texture2D>("CalamityMod/Particles/Sparkle").Value;
|
||||
Texture2D bloomTexture = Request<Texture2D>("CalamityMod/Particles/BloomCircle").Value;
|
||||
//Ajust the bloom's texture to be the same size as the star's
|
||||
//Adjust the bloom's texture to be the same size as the star's
|
||||
float properBloomSize = (float)starTexture.Height / (float)bloomTexture.Height;
|
||||
|
||||
Color color = Main.hslToRgb((Main.GlobalTimeWrappedHourly * 0.6f) % 1, 1, 0.85f);
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public ref float Charge => ref Projectile.ai[1];
|
||||
public ref float HasFired => ref Projectile.localAI[0];
|
||||
|
||||
const float MaxTime = 35;
|
||||
const float MaxTime = 40;
|
||||
private float SwingWidth = MathHelper.PiOver2 * 1.5f;
|
||||
public Vector2 DistanceFromPlayer => direction * 30;
|
||||
public float Timer => MaxTime - Projectile.timeLeft;
|
||||
@@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.Lerp(SwingWidth / 2 * SwingDirection, -SwingWidth / 2 * SwingDirection, SwingRatio());
|
||||
|
||||
Projectile.scale = 1.4f + ((float)Math.Sin(SwingRatio() * MathHelper.Pi) * 0.6f) + (Charge / 10f) * 0.6f;
|
||||
Projectile.scale = 1.6f + ((float)Math.Sin(SwingRatio() * MathHelper.Pi) * 0.65f) + (Charge > 0 ? 0.6f : 0f);
|
||||
|
||||
if (Owner.whoAmI == Main.myPlayer && SwingRatio() > 0.5f && HasFired == 0f && Charge > 0)
|
||||
{
|
||||
@@ -157,7 +157,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
float rotation = (-MathHelper.PiOver4 * 0.5f + MathHelper.PiOver4 * 0.5f * Timer / MaxTime) * SwingDirection;
|
||||
Color smearColor = Main.hslToRgb(((Timer - MaxTime * 0.5f) / (MaxTime * 0.5f)) * 0.7f, 1, 0.6f);
|
||||
|
||||
Main.EntitySpriteDraw(smear, Owner.Center - Main.screenPosition, null, smearColor * 0.5f * opacity, Projectile.velocity.ToRotation() + MathHelper.Pi + rotation, smear.Size() / 2f, Projectile.scale * 1.4f, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(smear, Owner.Center - Main.screenPosition, null, smearColor * 0.5f * opacity, Projectile.velocity.ToRotation() + MathHelper.Pi + rotation, smear.Size() / 2f, Projectile.scale * 1.5f, SpriteEffects.None, 0);
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix);
|
||||
|
||||
Reference in new issue
Block a user