This commit is contained in:
doze-zoze committed 2026-02-21 22:03:25 -06:00
commit 54598455e9
5 files changed
+15 -6

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.SummonItems
{
public new string LocalizationCategory => "Items.SummonItems";
private const int SpoofBaitNumber = 4444;
public const int SpoofBaitNumber = 4444;
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
@@ -1664,6 +1664,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride
if (Time <= ChaseTime)
{
NPC.damage = NPC.defDamage;
float speedUp = MathHelper.Clamp((Time - 10) / 10f, 0f, 1f);
float slowDown = 1 - MathHelper.Clamp((Time - (ChaseTime - 15)) / 15f, 0f, 1f);
float angleChange = MathHelper.Lerp(MathHelper.Pi / 24f, 0f, MathHelper.Clamp(Time / (ChaseTime * 0.666f), 0f, 1f));
@@ -1676,6 +1677,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride
Vector2 direction = Target.velocity.SafeNormalize(Vector2.UnitX * Target.direction).RotatedBy(Main.rand.NextFloat(-MathHelper.Pi / 3f, MathHelper.Pi / 3f));
AttackPosition = Target.Center + (direction * DefaultTeleportDistance);
BoCAfterImages = [];
NPC.damage = 0;
NPC.netUpdate = true;
}
else
@@ -1687,6 +1689,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride
else
{
TeleportDuration = IdleTeleportDuration;
NPC.damage = 0;
Vector2 endPoint = AttackPosition;
@@ -1950,6 +1953,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride
if (endTime == 0)
SoundEngine.PlaySound(Roar, NPC.Center);
if (endTime >= DashPrepTime)
{
if (endTime < DashPrepTime + DashReelbackTime)
@@ -1985,6 +1989,8 @@ public class BrainOfCthulhuAI : VanillaAIOverride
private void SanguineScythes()
{
NPC.damage = 0;
#region Attack Ending
if (AttackCounter > SanguineTeleportCount)
{
@@ -2289,6 +2295,8 @@ public class BrainOfCthulhuAI : VanillaAIOverride
private void IllusionDash()
{
NPC.damage = 0;
#region Attack Start
if (Time < IllusionDashTeleportDuration)
{
@@ -587,7 +587,7 @@ public class CreeperAI : VanillaAIOverride
ConnectionOpacity = BringOpacityTo(ConnectionOpacity, 0f, 0.05f);
float slowDown = (1 - MathHelper.Clamp((bossCounter - OrbitDuration) / 30f, 0f, 1f));
AttackAngle += (BaseRotationSpeed * (MathHelper.Lerp(1f, 0.5f, CreeperAmountRatio) + (bocAI.OnSecondCreeperPhase ? 1f : 0.5f))) * slowDown * bocAI.AttackSign;
AttackAngle += (BaseRotationSpeed * (MathHelper.Lerp(1f, 0.5f, CreeperAmountRatio) + (bocAI.OnSecondCreeperPhase ? 0.75f : 0.5f))) * slowDown * bocAI.AttackSign;
Vector2 rotation = Vector2.UnitX.RotatedBy(CachedValue1 + AttackAngle) * dist;
if (bossCounter < OrbitSetupDuration)
+4 -3
View File
@@ -3333,7 +3333,7 @@ namespace CalamityMod.Projectiles
{
projectile.ai[0] = 1;
projectile.localAI[1] = NPCType<OldDuke>() * -1;
baitPower = 4444; // Manually set the power to the displayed value
baitPower = BloodwormItem.SpoofBaitNumber; // Manually set the power to the displayed value
ReelTheBobberChecks();
}
else if (baitPower > 75)
@@ -3622,9 +3622,10 @@ namespace CalamityMod.Projectiles
if (TimerToCatch <= 0)
{
projectile.FishingCheck();
if (projectile.ai[1] < 0 && !(projectile.lavaWet && !owner.accLavaFishing))
var fishingCond = Main.player[projectile.owner].GetFishingConditions();
bool canLavaFish = ItemID.Sets.CanFishInLava[fishingCond.PoleItemType] || ItemID.Sets.IsLavaBait[fishingCond.BaitItemType] || Main.player[projectile.owner].accLavaFishing;
if (projectile.ai[1] < 0 && !(projectile.lavaWet && !canLavaFish))
{
CaughtItemID = (int)projectile.localAI[1];
projectile.ai[1] = 0;
projectile.localAI[1] = 0;
+1 -1
View File
@@ -1391,7 +1391,7 @@ namespace CalamityMod.Systems
r = Recipe.Create(ItemID.Bacon);
r.AddIngredient<PiggyItem>();
r.AddTile(TileID.Hellforge);
r.AddTile(TileID.CookingPots);
r.Register();
r.DisableDecraft();
}