complete money edit takedown

previous iteration was fabsolian still
This commit is contained in:
Altixal committed 2025-07-21 22:03:44 +07:00
1 parent ab791550e5
commit 35f9d4e602
18 files changed
+17 -78

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ namespace CalamityMod.NPCs.AquaticScourge
if (CalamityWorld.LegendaryMode)
NPC.lifeMax *= 2;
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 16, 0, 0);
NPC.value = Item.buyPrice(gold: 12);
NPC.behindTiles = true;
NPC.chaseable = false;
NPC.noGravity = true;
+1 -1
View File
@@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.AstrumAureus
NPC.aiStyle = -1;
AIType = -1;
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 25, 0, 0);
NPC.value = Item.buyPrice(gold: 15);
NPC.boss = true;
NPC.DeathSound = DeathSound;
NPC.Calamity().VulnerableToHeat = true;
+1 -1
View File
@@ -98,7 +98,7 @@ namespace CalamityMod.NPCs.AstrumDeus
NPC.boss = true;
NPC.BossBar = ModContent.GetInstance<AstrumDeusBossBar>();
NPC.value = Item.buyPrice(0, 50, 0, 0);
NPC.value = Item.buyPrice(gold: 50);
NPC.alpha = 255;
NPC.behindTiles = true;
NPC.noGravity = true;
@@ -72,7 +72,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
NPC.width = 100;
NPC.height = 150;
NPC.defense = 15;
NPC.value = Item.buyPrice(0, 16, 0, 0);
NPC.value = Item.buyPrice(gold: 12);
NPC.LifeMaxNERB(41000, 49200, 500000);
NPC.DR_NERD(0.2f);
NPC.knockBackResist = 0f;
+1 -1
View File
@@ -73,7 +73,7 @@ namespace CalamityMod.NPCs.CalClone
NPC.scale *= 0.8f;
NPC.defense = 25;
NPC.value = Item.buyPrice(0, 20, 0, 0);
NPC.value = Item.buyPrice(gold: 15);
NPC.LifeMaxNERB(39000, 46875, 520000);
NPC.aiStyle = -1;
AIType = -1;
-12
View File
@@ -1557,8 +1557,6 @@ namespace CalamityMod.NPCs
if (BossRushEvent.BossRushActive)
BossRushStatChanges(npc, Mod);
BossValueChanges(npc);
if (CalamityWorld.revenge)
RevDeathStatChanges(npc, Mod);
@@ -1695,16 +1693,6 @@ namespace CalamityMod.NPCs
}
#endregion
#region Boss Value Changes
private void BossValueChanges(NPC npc)
{
if (BossValueDict.TryGet(npc.type, out var value))
{
npc.value = value;
}
}
#endregion
#region Revengeance and Death Mode Stat Changes
private void RevDeathStatChanges(NPC npc, Mod mod)
{
+1 -1
View File
@@ -88,7 +88,7 @@ namespace CalamityMod.NPCs.Crabulon
NPC.noTileCollide = false;
NPC.boss = true;
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 5, 0, 0);
NPC.value = Item.buyPrice(gold: 5);
NPC.HitSound = HitSound;
NPC.DeathSound = DeathSound;
NPC.Calamity().VulnerableToHeat = true;
+1 -1
View File
@@ -102,7 +102,7 @@ namespace CalamityMod.NPCs.Cryogen
NPC.aiStyle = -1;
AIType = -1;
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 16, 0, 0);
NPC.value = Item.buyPrice(gold: 6);
NPC.boss = true;
NPC.BossBar = ModContent.GetInstance<CryogenBossBar>();
NPC.noGravity = true;
+1 -1
View File
@@ -100,7 +100,7 @@ namespace CalamityMod.NPCs.DesertScourge
AIType = -1;
NPC.knockBackResist = 0f;
NPC.boss = true;
NPC.value = Item.buyPrice(0, 2, 0, 0);
NPC.value = Item.buyPrice(gold: 1);
NPC.alpha = 255;
NPC.behindTiles = true;
NPC.noGravity = true;
+1 -1
View File
@@ -151,7 +151,7 @@ namespace CalamityMod.NPCs.HiveMind
NPC.aiStyle = -1;
AIType = -1;
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 8, 0, 0);
NPC.value = Item.buyPrice(gold: 5);
NPC.boss = true;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
+1 -1
View File
@@ -73,7 +73,7 @@ namespace CalamityMod.NPCs.Leviathan
AIType = -1;
NPC.boss = true;
NPC.BossBar = ModContent.GetInstance<LeviathanAnahitaBossBar>();
NPC.value = Item.buyPrice(0, 12, 50, 0);
NPC.value = Item.buyPrice(gold: 7, silver: 50);
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.HitSound = HitSound;
+1 -1
View File
@@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.Leviathan
NPC.aiStyle = -1;
AIType = -1;
NPC.Opacity = 0f;
NPC.value = Item.buyPrice(0, 12, 50, 0);
NPC.value = Item.buyPrice(gold: 7, silver: 50);
NPC.HitSound = SoundID.NPCHit56;
NPC.DeathSound = SoundID.NPCDeath60;
NPC.noTileCollide = true;
+1 -1
View File
@@ -75,7 +75,7 @@ namespace CalamityMod.NPCs.Perforator
NPC.aiStyle = -1;
AIType = -1;
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 8, 0, 0);
NPC.value = Item.buyPrice(gold: 5);
NPC.boss = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
@@ -98,7 +98,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
NPC.aiStyle = -1;
AIType = -1;
NPC.boss = true;
NPC.value = Item.buyPrice(0, 30, 0, 0);
NPC.value = Item.buyPrice(gold: 25);
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.HitSound = SoundID.NPCHit4;
+2 -2
View File
@@ -80,7 +80,7 @@ namespace CalamityMod.NPCs.Ravager
NPC.width = 332;
NPC.height = 214;
NPC.defense = 55;
NPC.value = Item.buyPrice(0, 30, 0, 0);
NPC.value = Item.buyPrice(gold: 25);
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(45000, 54000, 460000);
if (DownedBossSystem.downedProvidence && !BossRushEvent.BossRushActive)
@@ -88,7 +88,7 @@ namespace CalamityMod.NPCs.Ravager
NPC.damage = (int)(NPC.damage * 1.5);
NPC.defense *= 2;
NPC.lifeMax *= 4;
NPC.value *= 3f;
NPC.value *= 4f;
}
NPC.knockBackResist = 0f;
AIType = -1;
+1 -1
View File
@@ -47,7 +47,7 @@ namespace CalamityMod.NPCs.SlimeGod
NPC.height = Height;
NPC.defense = 10;
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 1, 0, 0);
NPC.value = Item.buyPrice(gold: 1);
NPC.Opacity = 1f;
NPC.lavaImmune = false;
NPC.noGravity = false;
+1 -1
View File
@@ -49,7 +49,7 @@ namespace CalamityMod.NPCs.SlimeGod
NPC.aiStyle = -1;
AIType = -1;
NPC.knockBackResist = 0f;
NPC.value = Item.buyPrice(0, 1, 0, 0);
NPC.value = Item.buyPrice(gold: 1);
NPC.Opacity = 1f;
NPC.lavaImmune = false;
NPC.noGravity = false;
-49
View File
@@ -1,49 +0,0 @@
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Systems.Collections
{
public sealed class BossValueDict : ModSystem
{
public static IDictionary<int, int> Dict { get; private set; }
public override void OnModLoad()
{
// NOTE: This does not account for Calamity's base value increases
Dict = new SortedDictionary<int, int>
{
{ NPCID.KingSlime, Item.buyPrice(0, 2) },
{ NPCID.EyeofCthulhu, Item.buyPrice(0, 2) },
// Evil bosses drop 5 gold in vanilla; unmodified
{ NPCID.QueenBee, Item.buyPrice(0, 8) },
{ NPCID.Deerclops, Item.buyPrice(0, 8) },
{ NPCID.SkeletronHead, Item.buyPrice(0, 12) },
{ NPCID.WallofFlesh, Item.buyPrice(0, 12) },
{ NPCID.QueenSlimeBoss, Item.buyPrice(0, 16) },
{ NPCID.Spazmatism, Item.buyPrice(0, 16) },
{ NPCID.Retinazer, Item.buyPrice(0, 16) },
{ NPCID.TheDestroyer, Item.buyPrice(0, 16) },
{ NPCID.SkeletronPrime, Item.buyPrice(0, 16) },
{ NPCID.Plantera, Item.buyPrice(0, 20) },
{ NPCID.Golem, Item.buyPrice(0, 25) },
{ NPCID.HallowBoss, Item.buyPrice(0, 30) },
{ NPCID.DukeFishron, Item.buyPrice(0, 30) },
{ NPCID.CultistBoss, Item.buyPrice(0, 50) }
// Moon Lord drops 1 plat in vanilla; unmodified
};
}
public override void Unload()
{
Dict?.Clear();
Dict = null;
}
public static bool TryGet(int npcType, out int value)
{
return Dict.TryGetValue(npcType, out value);
}
}
}