Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
e89b0812f1
12 files changed
+27
-27
No files matched your search
@@ -22,9 +22,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.width = 62;
|
||||
Item.height = 22;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.damage = 26;
|
||||
Item.damage = 23;
|
||||
Item.knockBack = 0f;
|
||||
Item.useTime = Item.useAnimation = 20;
|
||||
Item.useTime = Item.useAnimation = 21;
|
||||
Item.autoReuse = true;
|
||||
Item.mana = 6;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 52;
|
||||
Item.height = 50;
|
||||
Item.damage = 31;
|
||||
Item.damage = 25;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 10;
|
||||
Item.useTime = 15;
|
||||
@@ -65,10 +65,6 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
bloodAmt++;
|
||||
}
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
bloodAmt++;
|
||||
}
|
||||
for (int i = 0; i < bloodAmt; i++)
|
||||
{
|
||||
realPlayerPos = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y - 600f);
|
||||
|
||||
@@ -14,14 +14,14 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
#region Other stats
|
||||
|
||||
// Stats for the shaderain.
|
||||
public const int RainAmount = 3;
|
||||
public const float LesserRainVELMultiplier = 0.75f; // The lowest speed modifier the rain can get.
|
||||
public const float HigherRainVELMultiplier = 1.25f; // The highest speed modifier the rain can get.
|
||||
public const int RainAmount = 2;
|
||||
public const float LesserRainVELMultiplier = 0.9f; // The lowest speed modifier the rain can get.
|
||||
public const float HigherRainVELMultiplier = 1.2f; // The highest speed modifier the rain can get.
|
||||
public const float GravityStrenght = 0.15f;
|
||||
|
||||
// Stats for the shade clouds.
|
||||
public const int FadeoutSpeed = 2;
|
||||
public const float CloudDMGMultiplier = 1.25f;
|
||||
public const float CloudDMGMultiplier = 1f; // Keeping this here in case it gets changed in the future
|
||||
public const float CloudVELMultiplier = 1.25f;
|
||||
public const float DeaccelerationStrenght = 0.95f; // A number lower than 1, non-including 1, changing it very slightly will have drastic results.
|
||||
|
||||
@@ -35,9 +35,9 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = Item.height = 42;
|
||||
Item.damage = 21;
|
||||
Item.shootSpeed = 10f;
|
||||
Item.useTime = Item.useAnimation = 25;
|
||||
Item.damage = 20;
|
||||
Item.shootSpeed = 11f;
|
||||
Item.useTime = Item.useAnimation = 30;
|
||||
Item.mana = 10;
|
||||
Item.knockBack = 0f;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 30;
|
||||
Item.damage = 25;
|
||||
Item.damage = 23;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 5;
|
||||
Item.useTime = 12;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 56;
|
||||
Item.height = 56;
|
||||
Item.damage = 26;
|
||||
Item.damage = 23;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = 21;
|
||||
Item.useTime = 21;
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 48;
|
||||
Item.height = 24;
|
||||
Item.damage = 37;
|
||||
Item.damage = 33;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = Item.useAnimation = AftershotCooldownFrames;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 76;
|
||||
Item.height = 30;
|
||||
Item.damage = 21;
|
||||
Item.damage = 23;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 10;
|
||||
Item.useAnimation = 30;
|
||||
|
||||
@@ -17,9 +17,9 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.noMelee = true;
|
||||
Item.useTurn = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useAnimation = 18;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 15;
|
||||
Item.useTime = 18;
|
||||
Item.knockBack = 5.75f;
|
||||
Item.UseSound = SoundID.Item20;
|
||||
Item.autoReuse = true;
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 3.6f;
|
||||
public override float StealthDamageMultiplier => 3.15f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
Projectile.width = 12;
|
||||
Projectile.height = 12;
|
||||
Projectile.friendly = true;
|
||||
Projectile.tileCollide = true;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.DamageType = DamageClass.Magic;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.extraUpdates = 3;
|
||||
@@ -24,6 +24,10 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void AI()
|
||||
{
|
||||
Lighting.AddLight(Projectile.Center, 0.35f, 0f, 0f);
|
||||
if (Projectile.position.Y > Main.player[Projectile.owner].position.Y - 160f)
|
||||
{
|
||||
Projectile.tileCollide = true;
|
||||
}
|
||||
if (Projectile.ai[0] > 7f)
|
||||
{
|
||||
float scalar = 1f;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetItemName<OpalStriker>();
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Ranged/OpalStriker";
|
||||
|
||||
public static float ChargedDamageMult = 4.3f;
|
||||
public static float ChargedDamageMult = 5f;
|
||||
public static float ChargedKBMult = 3f;
|
||||
public static float BulletSpeed = 12f;
|
||||
|
||||
|
||||
@@ -22,11 +22,11 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
Projectile.friendly = true;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.DamageType = DamageClass.Ranged;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.penetrate = 3;
|
||||
Projectile.MaxUpdates = 3;
|
||||
Projectile.timeLeft = Lifetime; // 20 effectively
|
||||
Projectile.usesIDStaticNPCImmunity = true;
|
||||
Projectile.idStaticNPCHitCooldown = 10;
|
||||
Projectile.idStaticNPCHitCooldown = 15;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -57,6 +57,6 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
// Circular hitbox adjusted for the size of the smoke particles (which is 52 here)
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, 52 * Projectile.scale * 0.5f, targetHitbox);
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<BrainRot>(), 300);
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<BrainRot>(), 240);
|
||||
}
|
||||
}
|
||||
@@ -151,7 +151,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
target.AddBuff(BuffID.OnFire, 120);
|
||||
int boom = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<FuckYou>(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
Projectile.damage /= 2;
|
||||
Projectile.damage = (int)(Projectile.damage * 0.6666);
|
||||
float minDist = 999f;
|
||||
int index = 0;
|
||||
// Get the closest enemy to the fist
|
||||
|
||||
Reference in new issue
Block a user