AOTC slight changes

This commit is contained in:
Doze-Zoze committed 2025-06-21 12:49:49 -05:00
1 parent 6d4eb61c2e
commit fa70d72365
4 files changed
+18 -5

No files matched your search

+2 -2
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
public static float MaxThrowReach = 760;
public static float SnapDamageMultiplier = 1.2f; //Extra damage from making the scissors snap
public static float MaxCharge = 15f; // Maximum charge value AKA how much charge you get from a parry
public static float MaxCharge = 16f; // Maximum charge value AKA how much charge you get from a parry
public static float chargeDamageMultiplier = 1.35f; //Extra damage from charge
public static float chainDamageMultiplier = 0.1f;
public static float SnapBoltsDamageMultiplier = 0.1f;
@@ -235,7 +235,7 @@ namespace CalamityMod.Items.Weapons.Melee
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
float barScale = 3f;
float barScale = 4f;
Vector2 barOrigin = barBG.Size() * 0.5f;
float yOffset = 50f;
Vector2 drawPos = position + Vector2.UnitY * scale * (frame.Height - yOffset);
@@ -77,14 +77,15 @@ ArkoftheCosmos: {
'''
<left> to perform a 5-swing combo that ends by throwing the blade
The thrown blade will follow your cursor
Releasing while the blade is out will cause an exploding snap
Releasing or pressing <right> while the blade is out will cause an exploding snap
Pressing <right> to cause the snap will empower your next swings if you have an avaliable parry
'''
ParryInfo:
'''
<right> to snip out the scissor blades in front of you
Hitting an enemy with it will parry them, granting you brief invulnerability
You can also parry projectiles to make them deal 160 less damage for a short period
Parrying will empower the next 15 swings of the sword
Parrying will empower the next 16 swings of the sword
'''
BlastInfo: Double <right> with charges available to cause a Big Rip in spacetime and consume all charges
}
@@ -41,6 +41,7 @@ namespace CalamityMod.Projectiles.Melee
Projectile.noEnchantmentVisuals = true;
Projectile.usesIDStaticNPCImmunity = true;
Projectile.idStaticNPCHitCooldown = 10;
Projectile.timeLeft = (int)MaxTime;
}
public override bool? CanDamage() => Timer <= ParryTime && AlreadyParried == 0f;
@@ -108,7 +109,7 @@ namespace CalamityMod.Projectiles.Melee
{
if (!initialized) //Initialization
{
Projectile.timeLeft = (int)MaxTime;
//Projectile.timeLeft = (int)MaxTime;
SoundEngine.PlaySound(SoundID.Item84 with { Volume = SoundID.Item84.Volume * 0.3f }, Projectile.Center);
// 14NOV2024: Ozzatron: clamped mouse position unnecessary, only used for direction
@@ -1,5 +1,6 @@
using System;
using System.IO;
using System.Linq;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Particles;
using CalamityMod.Sounds;
@@ -273,6 +274,16 @@ namespace CalamityMod.Projectiles.Melee
float extraRotations = (direction.ToRotation() + MathHelper.PiOver4 > Projectile.velocity.ToRotation()) ? -MathHelper.TwoPi : 0f;
Projectile.rotation = MathHelper.Lerp(Projectile.velocity.ToRotation(), direction.ToRotation() + extraRotations, orientateProperly);
Main.NewText(ThrowCompletion);
if (ChanceMissed == 0f && Owner.controlUseTile && ThrowCompletion > 0.99f)
{
ArkoftheCosmos sword = (Owner.HeldItem.ModItem as ArkoftheCosmos);
Projectile parrier = Main.projectile.FirstOrDefault(p => p.active && p.owner == Owner.whoAmI && p.type == ProjectileType<ArkoftheCosmosParryHoldout>(), null);
if (sword is not null && parrier is null)
{
int parryID = Projectile.NewProjectile(Owner.GetSource_ItemUse(sword.Item), Owner.Center, Owner.DirectionTo(Projectile.Center), ModContent.ProjectileType<ArkoftheCosmosParryHoldout>(), 0, 0, Owner.whoAmI);
}
}
}
//Sharticles