Fixed shot count not registering when nerfed
This commit is contained in:
1 parent
9ecc9a3cf9
commit
aa1dcd4d36
1 file changed
+3
-3
@@ -289,8 +289,9 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
else
|
||||
{
|
||||
// Loads shots until maxed out
|
||||
if (ShotsLoaded < MaxLoadableShots && CurrentChargingFrames % FramesPerLoad == 0)
|
||||
ShotsLoaded++;
|
||||
ShotsLoaded = Utils.Remap(CurrentChargingFrames, 0, Charge1Frames, 1, MaxLoadableShots / 2);
|
||||
if (ChargeLV1)
|
||||
ShotsLoaded = MaxLoadableShots;
|
||||
|
||||
CurrentChargingFrames += ((ChargeLV1 && !Positive) ? 1.2f : 2) * (Owner.Calamity().despoilerNerf ? 0.4f : 1); // Charges slower if nerfed, charge LV2 for Negative is slower
|
||||
|
||||
@@ -344,7 +345,6 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
// Full charge dusts and sounds
|
||||
if (ChargeLV1 && !hasReachedLV1)
|
||||
{
|
||||
ShotsLoaded = MaxLoadableShots;
|
||||
SoundEngine.PlaySound(OntologicalDespoiler.ChargeLV1, Projectile.Center);
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user