Minor cleanup

This commit is contained in:
fryzahh committed 2026-08-05 20:52:49 -04:00
1 parent d57fc7d223
commit 83801c32a2
2 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -485,7 +485,7 @@ namespace CalamityMod.Projectiles
EnhancedDarknessSystem.lights.Add(new() { center = projectile.Center, scale = 1 });
// 24DEC2025: Ozzatron: victide bobber culled with SSO
if (projectile.bobber /*&& projectile.type != ProjectileType<VictideBobber>()*/ && RunFishingMinigames(projectile) && !Main.LocalPlayer.dead)
if (projectile.bobber /*&& projectile.type != ProjectileType<VictideBobber>()*/ && RunFishingChanges(projectile) && !Main.LocalPlayer.dead)
return false;
//Reset the Homing Target immediately before AI can re-set it on applicable projectiles
@@ -2958,7 +2958,7 @@ namespace CalamityMod.Projectiles
/// <summary> <inheritdoc cref="PersistentFishingData"/> </summary>
public Vector2 PersistentFishingDataVector2 = Vector2.Zero;
public bool RunFishingMinigames(Projectile projectile)
public bool RunFishingChanges(Projectile projectile)
{
var owner = Main.player[projectile.owner];
var cplayer = owner.Calamity();
+3 -2
View File
@@ -38,9 +38,10 @@ namespace CalamityMod.Systems
if (CalamityNPCSets.ForciblyRegisterAsCritterInBestiary.Contains(pair.Value.type))
{
if (BestiaryDatabaseNPCsPopulator._currentDatabase._byNpcId.TryGetValue(pair.Value.netID, out BestiaryEntry enemyEntry) && enemyEntry.UIInfoProvider is not CritterUICollectionInfoProvider)
{
BestiaryDatabaseNPCsPopulator._currentDatabase.Entries.Remove(enemyEntry);
NPCLoader.SetBestiary(pair.Value, BestiaryDatabaseNPCsPopulator._currentDatabase, self.Register(BestiaryEntry.Critter(pair.Key)));
NPCLoader.SetBestiary(pair.Value, BestiaryDatabaseNPCsPopulator._currentDatabase, self.Register(BestiaryEntry.Critter(pair.Key)));
}
}
}
}