Merge branch '1.4.4' into vampiric_talisman_rework

This commit is contained in:
shade-storm committed 2025-03-20 16:03:34 -06:00
commit 9afdc48e02
270 files changed
+4658 -1887

No files matched your search

+3 -3
View File
@@ -259,15 +259,15 @@ namespace CalamityMod.Balancing
// 70% resist to Stardust Dragon Staff.
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.3f, ProjectileID.StardustDragon1, ProjectileID.StardustDragon2, ProjectileID.StardustDragon3, ProjectileID.StardustDragon4))));
// 65% resist to Atlantis (Atlantis gaming!).
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<AtlantisSpear>()))));
// 55% resist to Flak Kraken.
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.45f, ProjectileType<FlakKrakenProjectile>()))));
// 50% resist to true melee.
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(ResistTrueMelee(0.5f))));
// 50% resist to Atlantis (Atlantis gaming!).
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AtlantisSpear>()))));
// 50% resist to Aurora Blazer.
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AuroraFire>()))));
+90 -4
View File
@@ -61,9 +61,11 @@ using CalamityMod.Systems;
using CalamityMod.Systems.Collections;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.GameInput;
using Terraria.Graphics.Shaders;
using Terraria.ID;
@@ -143,6 +145,7 @@ namespace CalamityMod.CalPlayer
public bool disableHiveCystSpawns = false;
public bool disableNaturalScourgeSpawns = false;
public bool disableAnahitaSpawns = false;
public int whitewaterHeal = 0;
/// <summary> Used for toggling Calamity's blazing cursor effect. </summary>
public bool blazingCursorDamage = false;
/// <summary>
@@ -710,9 +713,11 @@ namespace CalamityMod.CalPlayer
public bool shieldOfTheHighRulerDashVelocityBoosted = false;
public bool luxorsGift = false;
public bool luxorHit = false;
public bool luxorsGiftVanity = false;
public bool fungalSymbiote = false;
public bool trinketOfChi = false;
public bool gladiatorSword = false;
public int gladiatorTimer = 0;
public bool unstableGraniteCore = false;
public bool regenator = false;
public float regenatorDamage = 0;
@@ -731,6 +736,10 @@ namespace CalamityMod.CalPlayer
/// <summary> Used to prevent dodges from triggering The Bee's full health damage reduction cooldown. </summary>
public bool shouldTriggerBeeCooldown = false;
public int theBeeCooldown = 0;
public bool aFossil = false;
public bool aPowder = false;
public bool fallingBlockProtection = false;
public bool trapProtection = false;
public bool alluringBait = false;
public bool enchantedPearl = false;
public bool fishingStation = false;
@@ -872,8 +881,6 @@ namespace CalamityMod.CalPlayer
public int PurityHealSlowdownFrames = 0;
public bool harpyRing = false;
public bool angelTreads = false;
/// <summary> Synergy effect while wearing Harpy Wings with Harpy Ring or Angel Treads, allowing attacks to be accompanied by feathers. </summary>
public bool harpyWingBoost = false;
/// <summary> Counter variable used for automatically re-engaging Vortex armor's stealth with Vortex Booster. </summary>
public int vortexBoosterStealthDelay = 0;
/// <summary> Makes Flesh Knuckles and its upgrades increase the player's max health by 45. </summary>
@@ -2128,6 +2135,7 @@ namespace CalamityMod.CalPlayer
blazingCursorVisuals = false;
luxorsGift = false;
luxorsGiftVanity = false;
fungalSymbiote = false;
trinketOfChi = false;
gladiatorSword = false;
@@ -2139,6 +2147,10 @@ namespace CalamityMod.CalPlayer
arcFlashRingVisual = false;
bGlassBand = false;
bGlassBandVisual = false;
aFossil = false;
aPowder = false;
fallingBlockProtection = false;
trapProtection = false;
alluringBait = false;
enchantedPearl = false;
fishingStation = false;
@@ -2213,7 +2225,6 @@ namespace CalamityMod.CalPlayer
purity = false;
harpyRing = false;
angelTreads = false;
harpyWingBoost = false; //harpy wings + harpy ring
fleshKnuckles = false;
darkSunRing = false;
crawCarapace = false;
@@ -2789,6 +2800,7 @@ namespace CalamityMod.CalPlayer
#region Buffs, Debuffs, Counters, and Nonsense
heldGaelsLastFrame = false;
gaelSwipes = 0;
whitewaterHeal = 0;
luxorHit = false;
arsenalCooldown = 0;
andromedaState = AndromedaPlayerState.Inactive;
@@ -3404,6 +3416,80 @@ namespace CalamityMod.CalPlayer
SoundEngine.PlaySound(SoundID.Item34, Player.Center);
}
if (CalamityKeybinds.AmmoCycleHotkey.JustPressed && deadshotBrooch)
{
SoundEngine.PlaySound(SoundID.Item149, Player.Center);
// I could've made this so simple on myself, but no, I felt the need to make things convenient for the users...
// First we need to determine the bounds for what we're swapping.
int ammoType = Player.HeldItem.useAmmo;
int lastSlot, firstSlot;
for (lastSlot = 57; lastSlot >= 54; lastSlot--)
{
if (!Player.inventory[lastSlot].IsAir && Player.inventory[lastSlot].ammo == ammoType)
break;
}
for (firstSlot = 54; firstSlot <= 57; firstSlot++)
{
if (!Player.inventory[firstSlot].IsAir && Player.inventory[firstSlot].ammo == ammoType)
break;
}
// If firstSlot = lastSlot, then there is only one ammo in ammo slots, so don't do anything.
if (firstSlot != lastSlot)
{
int tempType = Player.inventory[lastSlot].type;
int tempStack = Player.inventory[lastSlot].stack;
// This list tracks the favorited status of the ammo slots. Since swapping the slots around fucks with the favorite status it must be manually set.
List<bool> favorited = [];
for (int z = 54; z <= 57; z++)
favorited.Add(!Player.inventory[z].IsAir && Player.inventory[z].favorited);
// It is impossible for lastSlot to equal 54 and firstSlot to not equal 54.
for (int i = lastSlot; i >= 55; i--)
{
if (Player.inventory[i].IsAir || Player.inventory[i].ammo != ammoType)
continue;
// If the slot we're interested in is the lower bound of our ammos, set it to the temp values and don't run anything else.
if (i == firstSlot)
{
Player.inventory[i].SetDefaults(tempType);
Player.inventory[i].stack = tempStack;
Player.inventory[i].favorited = favorited[lastSlot - 54];
continue;
}
// Find the next slot that has ammo in it.
int nextSlot;
for (nextSlot = i - 1; nextSlot >= 54; nextSlot--)
{
if (!Player.inventory[nextSlot].IsAir && Player.inventory[nextSlot].ammo == ammoType)
break;
}
// Set this slot to what is in that slot.
Player.inventory[i].SetDefaults(Player.inventory[nextSlot].type);
Player.inventory[i].stack = Player.inventory[nextSlot].stack;
Player.inventory[i].favorited = favorited[nextSlot - 54];
}
// Handles swapping the ammo that is in the first slot.
if (firstSlot == 54)
{
Player.inventory[54].SetDefaults(tempType);
Player.inventory[54].stack = tempStack;
Player.inventory[54].favorited = favorited[lastSlot - 54];
}
// Produce a visual effect showing the top ammo that you swapped to.
int visualType = Player.inventory[firstSlot].type;
Texture2D ammoTex = TextureAssets.Item[visualType].Value;
int frameAmt = Main.itemAnimations[visualType] == null ? 1 : ammoTex.Height / Main.itemAnimations[visualType].GetFrame(ammoTex).Height;
CustomSprite ammoVisual = new(Player.Center - Vector2.UnitY * 20f, -Vector2.UnitY * 7f, 30, ammoTex, 1f, Color.White, 0f, false, false, frameAmt);
GeneralParticleHandler.SpawnParticle(ammoVisual);
}
}
if (CalamityKeybinds.ArmorSetBonusHotKey.JustPressed)
{
PlayerLoader.ArmorSetBonusActivated(Player);
@@ -4006,7 +4092,7 @@ namespace CalamityMod.CalPlayer
}
// Cancel fall and don't give 'on ground' effects if on rope, on mount, grappled, or tongued
// Also cancel fall if the player has upwards Y velocity (Goodbye Inner Tube cheese)
if (Player.velocity.Y < 0f || Player.pulley || Player.mount.Active || Player.grappling[0] != -1 || Player.tongued)
if ((Player.gravDir == 1 && Player.velocity.Y < 0f) || (Player.gravDir == -1 && Player.velocity.Y > 1f) || Player.pulley || Player.mount.Active || Player.grappling[0] != -1 || Player.tongued)
{
gSabatonFall = 0;
gSabatonFalling = false;
+19 -1
View File
@@ -995,7 +995,7 @@ namespace CalamityMod.CalPlayer
modifiers.SourceDamage *= 0.65f;
// 80 in normal, 100 in expert, 150 in master
else if (proj.type == ProjectileID.SpikyBallTrap || proj.type == ProjectileID.FlamethrowerTrap || proj.type == ProjectileID.PoisonDartTrap)
else if (proj.type == ProjectileID.SpikyBallTrap || proj.type == ProjectileID.FlamethrowerTrap || proj.type == ProjectileID.FlamesTrap || proj.type == ProjectileID.PoisonDartTrap)
modifiers.SourceDamage *= 0.625f;
// 120 in normal, 144 in expert, 216 in master
@@ -1003,6 +1003,24 @@ namespace CalamityMod.CalPlayer
modifiers.SourceDamage *= 0.6f;
}
bool isFallingBlock = (proj.type == ProjectileID.SandBallFalling) || (proj.type == ProjectileID.SiltBall) || (proj.type == ProjectileID.AshBallFalling) ||
(proj.type == ProjectileID.CrimsandBallFalling) || (proj.type == ProjectileID.EbonsandBallFalling) || (proj.type == ProjectileID.PearlSandBallFalling) ||
(proj.type == ProjectileID.ShellPileFalling) || (proj.type == ProjectileID.SlushBall) || (proj.type == ModContent.ProjectileType<AstralSandBallFalling>());
if (Player.Calamity().fallingBlockProtection && isFallingBlock)
modifiers.Cancel();
bool isIgnoredTrap = (proj.type == ProjectileID.PoisonDartTrap) || (proj.type == ProjectileID.VenomDartTrap) || (proj.type == ProjectileID.PoisonDart);
if (Player.Calamity().trapProtection && isIgnoredTrap)
modifiers.Cancel();
bool isReducedTrap = (proj.type == ProjectileID.Boulder) || (proj.type == ProjectileID.BouncyBoulder) || (proj.type == ProjectileID.LifeCrystalBoulder) ||
(proj.type == ProjectileID.MiniBoulder) || (proj.type == ProjectileID.MoonBoulder) || (proj.type == ProjectileID.SpearTrap) ||
(proj.type == ProjectileID.SpikyBallTrap) || (proj.type == ProjectileID.GeyserTrap) || (proj.type == ProjectileID.FlamethrowerTrap) ||
(proj.type == ProjectileID.RollingCactus) || (proj.type == ProjectileID.RollingCactusSpike) || (proj.type == ProjectileID.Explosives) ||
(proj.type == ProjectileID.TNTBarrel) || (proj.type == ProjectileID.Landmine) || (proj.type == ModContent.ProjectileType<AuricLandMineExplosion>()) || (proj.type == ProjectileID.FlamesTrap); // Fun fact: flamethrower traps fire proj 188, NOT ProjectileID.FlamethrowerTrap :)
if (Player.Calamity().trapProtection && isReducedTrap)
modifiers.SourceDamage *= 0.35f;
// Reduce damage dealt by rainbow trails depending on how faded they are.
if (proj.type == ProjectileID.HallowBossLastingRainbow)
{
+5 -4
View File
@@ -409,10 +409,10 @@ namespace CalamityMod.CalPlayer
int healFrameCadence = 12;
// Healing slows down after 5 seconds (300 frames) debuffed. For every 15 frames thereafter the cadence slows
// There is no upper limit to how slow it can get and it can take a very long time to reset to normal
// The upper limit to how slow it can get is after 15 seconds (900 frames)
int punishmentFrames = PurityHealSlowdownFrames - 300;
//lowest punishment is three full seconds between the one health heal
if (healFrameCadence < 180)
//lowest punishment is a little under a second between the one health heal
if (healFrameCadence < 52)
healFrameCadence += (punishmentFrames < 0) ? 0 : punishmentFrames / 15;
if (Player.miscCounter % healFrameCadence == healFrameCadence - 1)
@@ -426,7 +426,8 @@ namespace CalamityMod.CalPlayer
jewelBonusDefense = intendedPurityDefense;
// Count up total frames spent healing for slowdown.
++PurityHealSlowdownFrames;
if (PurityHealSlowdownFrames < 900)
++PurityHealSlowdownFrames;
}
// If the defense should be ticking down to some lower value, do that.
+28 -2
View File
@@ -1788,6 +1788,25 @@ namespace CalamityMod.CalPlayer
}
}
if (whitewaterHeal > 0)
{
if (whitewaterHeal % 15 == 0)
Player.HealPlayer(1);
whitewaterHeal--;
Vector2 vel = (MathHelper.TwoPi * whitewaterHeal * Player.direction / 25).ToRotationVector2() * 3f;
for (int i = -1; i <= 1; i += 2)
{
Dust c = Dust.NewDustPerfect(Player.Center + vel * 4 * i, ModContent.DustType<LightDust>());
c.velocity = vel * i;
c.scale = Main.rand.NextFloat(0.9f, 1f);
c.noGravity = true;
c.alpha = 150;
c.color = Color.SkyBlue;
c.noLightEmittence = true;
}
}
// Tick all cooldowns.
// Depending on the code for each individual cooldown, this isn't guaranteed to do anything.
// It may not tick down the timer or not do anything at all.
@@ -1870,6 +1889,8 @@ namespace CalamityMod.CalPlayer
KameiBladeUseDelay--;
if (galileoCooldown > 0)
galileoCooldown--;
if (gladiatorTimer > 0)
gladiatorTimer--;
if (dragonRageCooldown > 0)
dragonRageCooldown--;
if (soundCooldown > 0)
@@ -2016,9 +2037,14 @@ namespace CalamityMod.CalPlayer
else if (blazingCoreParry > 0)
BlazingCore.HandleParryCountdown(Player);
}
else if (flameLickedShell && flameLickedShellParry > 0)
else if (blazingCoreParry > 0)
blazingCoreParry--;
else if (flameLickedShellParry > 0)
{
FlameLickedShell.HandleParryCountdown(Player);
if (flameLickedShell)
FlameLickedShell.HandleParryCountdown(Player);
else
flameLickedShellParry--;
}
if (shieldOfTheOceanParry > 0)
{
+12 -2
View File
@@ -1282,8 +1282,13 @@ namespace CalamityMod.CalPlayer
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
{
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
target.Calamity().gladiatorOnKill = false;
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center.X, target.Center.Y, target.velocity.X / 2, target.velocity.Y / 2, ProjectileType<GladiatorHealOrb>(), 0, 0f);
if (healPower >= 1)
{
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
gladiatorTimer = 300;
}
}
if (Main.LocalPlayer.lifeSteal > 0f && !Player.moonLeech && target.lifeMax > 5)
@@ -1450,8 +1455,13 @@ namespace CalamityMod.CalPlayer
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
{
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
target.Calamity().gladiatorOnKill = false;
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0f);
if (healPower >= 1)
{
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
gladiatorTimer = 300;
}
}
if (reaverDefense)
@@ -84,6 +84,8 @@ namespace CalamityMod.CalPlayer.DrawLayers
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/PrismaticBreakerGlow").Value;
else if (itemType == ModContent.ItemType<PulseRifle>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/PulseRifleGlow").Value;
else if (itemType == ModContent.ItemType<GaussRifle>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/GaussRifleGlow").Value;
else if (itemType == ModContent.ItemType<SoulPiercer>())
glowMask = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/SoulPiercerGlow").Value;
else if (itemType == ModContent.ItemType<StarburstShiv>())
+3
View File
@@ -6,6 +6,7 @@ namespace CalamityMod
{
public static ModKeybind AccessoryParryHotKey { get; private set; }
public static ModKeybind AdrenalineHotKey { get; private set; }
public static ModKeybind AmmoCycleHotkey { get; private set; }
public static ModKeybind AngelicAllianceHotKey { get; private set; }
public static ModKeybind ArmorSetBonusHotKey { get; private set; }
public static ModKeybind AscendantInsigniaHotKey { get; private set; }
@@ -24,6 +25,7 @@ namespace CalamityMod
// Register keybinds
AccessoryParryHotKey = KeybindLoader.RegisterKeybind(Mod, "ActivateAccessoryParry", "N");
AdrenalineHotKey = KeybindLoader.RegisterKeybind(Mod, "AdrenalineMode", "B");
AmmoCycleHotkey = KeybindLoader.RegisterKeybind(Mod, "AmmoCycle", "Mouse3");
AngelicAllianceHotKey = KeybindLoader.RegisterKeybind(Mod, "AngelicAllianceBlessing", "G");
ArmorSetBonusHotKey = KeybindLoader.RegisterKeybind(Mod, "ArmorSetBonus", "Y");
AscendantInsigniaHotKey = KeybindLoader.RegisterKeybind(Mod, "AscendantInsigniaHotKey", "K");
@@ -42,6 +44,7 @@ namespace CalamityMod
{
AccessoryParryHotKey = null;
AdrenalineHotKey = null;
AmmoCycleHotkey = null;
AngelicAllianceHotKey = null;
ArmorSetBonusHotKey = null;
AscendantInsigniaHotKey = null;
+3 -3
View File
@@ -707,13 +707,13 @@ namespace CalamityMod
{ new Tuple<int, int>(ModContent.NPCType<AstrumAureus>(), ModContent.ProjectileType<AstralFlame>()), new int[] { 100, 172, 208, 244, 366 } },
{ new Tuple<int, int>(ModContent.NPCType<AureusSpawn>(), ModContent.ProjectileType<AstralLaser>()), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.Fireball), new int[] { 72, 132, 160, 188, 282 } },
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.Fireball), new int[] { 60, 120, 140, 180, 270 } },
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 306 } },
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.Fireball), new int[] { 60, 120, 160, 200, 300 } },
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.Fireball), new int[] { 60, 120, 140, 180, 270 } },
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 306 } },
{ new Tuple<int, int>(NPCID.GolemFistLeft, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(NPCID.GolemFistRight, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.Fireball), new int[] { 60, 120, 160, 200, 300 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.Fireball), new int[] { 60, 120, 140, 180, 270 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 306 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 212, 318 } },
+1 -1
View File
@@ -13,7 +13,7 @@ using Terraria.ModLoader;
namespace CalamityMod.ExtraTextures
{
[Autoload(Side = ModSide.Client)]
internal sealed class ExtraTextureRefs : ModSystem
public class ExtraTextureRefs : ModSystem
{
// Destroyer glowmasks
public static Asset<Texture2D> DestroyerHeadGlowmask;
+1
View File
@@ -206,6 +206,7 @@ namespace CalamityMod.ILEditing
On_Player.ItemCheck_CheckCanUse += RemoveUseLocks;
On_Player.ItemCheck_UseEventItems += ApplyCelestialSigilChanges;
IL_Main.DrawInfoAccs += RemoveDamageConditionFromRadar;
On_ShopHelper.ApplyNpcRelationshipEffect += AllowMultipleLikedNPCs;
// Fix vanilla bugs exposed by Calamity mechanics
IL_NPC.NPCLoot += FixSplittingWormBannerDrops;
+3 -3
View File
@@ -1868,7 +1868,7 @@ namespace CalamityMod.ILEditing
#region Revengeance Master Mode Twins Shenanigans
public static void TripletsSpawnTextOverride(Terraria.On_NPC.orig_SpawnBoss orig, int x, int y, int type, int targetPlayerIndex)
{
if (Main.masterMode && CalamityWorld.revenge && type == NPCID.Retinazer)
if (CalamityWorld.death && type == NPCID.Retinazer)
{
int retinazerIndex = NPC.NewNPC(NPC.GetBossSpawnSource(targetPlayerIndex), x, y, type, 1);
if (retinazerIndex == 200)
@@ -1896,7 +1896,7 @@ namespace CalamityMod.ILEditing
public static void PreventFoveanatorDefeatMessageIfNotKilledLast(On_NPC.orig_DoDeathEvents_BeforeLoot orig, NPC self, Player closestPlayer)
{
if (Main.masterMode && CalamityWorld.revenge && self.type == ModContent.NPCType<Foveanator>() && (NPC.AnyNPCs(NPCID.Spazmatism) || NPC.AnyNPCs(NPCID.Retinazer)))
if (CalamityWorld.death && self.type == ModContent.NPCType<Foveanator>() && (NPC.AnyNPCs(NPCID.Spazmatism) || NPC.AnyNPCs(NPCID.Retinazer)))
{
self.value = 0f;
self.boss = false;
@@ -1911,7 +1911,7 @@ namespace CalamityMod.ILEditing
public static void TripletsDefeatTextOverride(On_NPC.orig_DoDeathEvents_CelebrateBossDeath orig, NPC self, string typeName)
{
bool correctNPCType = self.type == NPCID.Retinazer || self.type == NPCID.Spazmatism || self.type == ModContent.NPCType<Foveanator>();
if (Main.masterMode && CalamityWorld.revenge && correctNPCType)
if (CalamityWorld.death && correctNPCType)
{
if (Main.netMode == NetmodeID.SinglePlayer)
Main.NewText(Language.GetTextValue("Announcement.HasBeenDefeated_Plural", CalamityUtils.GetTextValue("Status.Boss.TripletsDefeatName")), 175, 75, 255);
@@ -7,6 +7,7 @@ using CalamityMod.Items.Materials;
using CalamityMod.Items.TreasureBags.MiscGrabBags;
using CalamityMod.NPCs.AcidRain;
using CalamityMod.NPCs.NormalNPCs;
using CalamityMod.NPCs.TownNPCs;
using CalamityMod.Walls;
using Microsoft.Xna.Framework;
using Mono.Cecil.Cil;
@@ -14,7 +15,9 @@ using MonoMod.Cil;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.GameContent.Drawing;
using Terraria.GameContent.Personalities;
using Terraria.ID;
using Terraria.ModLoader;
@@ -1121,6 +1124,38 @@ namespace CalamityMod.ILEditing
}
#endregion
#region Multiple NPC Happiness support for Cirrus
private static void AllowMultipleLikedNPCs(On_ShopHelper.orig_ApplyNpcRelationshipEffect orig, ShopHelper self, int npcType, AffectionLevel affectionLevel)
{
FieldInfo npcTalkField = typeof(ShopHelper).GetField("_currentNPCBeingTalkedTo", BindingFlags.Instance | BindingFlags.NonPublic);
NPC talkedNPC = (NPC)npcTalkField.GetValue(self);
// Allow Cirrus to have things to say about multiple NPCs with the same happiness level
if (talkedNPC.type == ModContent.NPCType<Cirrus>())
{
MethodInfo addReportField = typeof(ShopHelper).GetMethod("AddHappinessReportText", BindingFlags.Instance | BindingFlags.NonPublic);
FieldInfo happinessField = typeof(ShopHelper).GetField("_currentPriceAdjustment", BindingFlags.Instance | BindingFlags.NonPublic);
float currentPriceAdjustment = (float)happinessField.GetValue(self);
if (affectionLevel != 0 && Enum.IsDefined(affectionLevel))
{
// Add a suffix to the localization key which specifies the NPC's name
addReportField.Invoke(self, [ $"{affectionLevel}NPC_" + NPCID.Search.GetName(npcType), new
{
NPCName = NPC.GetFullnameByID(npcType)
}, 0]);
currentPriceAdjustment *= NPCHappiness.AffectionLevelToPriceMultiplier[affectionLevel];
happinessField.SetValue(self, currentPriceAdjustment);
}
}
else
{
orig(self, npcType, affectionLevel);
}
}
#endregion
// 02JUN2024: Ozzatron: The below code is being kept in its initial state for historic value.
#region Store The Stupid Fucking Private Wind Map In Public Property
[/*TotallyNot*/Obsolete("This function serves no purpose and is included in the Calamity source code for historic value.", error: true)]
+2
View File
@@ -19,6 +19,8 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.pickSpeed -= 0.1f;
player.Calamity().aFossil = true;
player.Calamity().fallingBlockProtection = true;
}
public override void AddRecipes()
+12 -7
View File
@@ -20,20 +20,25 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.pickSpeed -= 0.15f;
if (player.ZoneDirtLayerHeight || player.ZoneRockLayerHeight || player.ZoneUnderworldHeight)
{
player.statDefense += 10;
player.endurance += 0.05f;
}
player.pickSpeed -= 0.3f;
player.Calamity().aPowder = true;
player.Calamity().fallingBlockProtection = true;
player.Calamity().trapProtection = true;
// Doesn't stack with downgrades
if (player.chiselSpeed)
player.pickSpeed += 0.15f;
if (player.Calamity().aFossil)
player.pickSpeed += 0.1f;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AncientFossil>().
AddIngredient(ItemID.AncientChisel).
AddIngredient<AncientBoneDust>(3).
AddIngredient<ScorchedBone>(15).
AddIngredient<ScorchedBone>(10).
AddIngredient(ItemID.Bone, 15).
AddTile(TileID.Anvils).
Register();
+2
View File
@@ -30,6 +30,8 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.ascendantInsignia = true;
player.empressBrooch = true;
player.moveSpeed += 0.05f;
player.jumpSpeedBoost += 0.25f;
}
public override void AddRecipes()
+6 -3
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Materials;
using System.Collections.Generic;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -22,10 +23,12 @@ namespace CalamityMod.Items.Accessories
{
player.Calamity().deadshotBrooch = true;
player.Calamity().rangedAmmoCost *= 0.8f;
player.GetDamage<RangedDamageClass>() += 0.1f;
player.GetCritChance<RangedDamageClass>() += 5;
player.GetDamage<RangedDamageClass>() += 0.12f;
player.GetCritChance<RangedDamageClass>() += 7;
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => tooltips.IntegrateHotkey(CalamityKeybinds.AmmoCycleHotkey);
public override void AddRecipes()
{
CreateRecipe().
+5 -6
View File
@@ -1,4 +1,5 @@
using CalamityMod.Buffs.Summon;
using System;
using CalamityMod.Buffs.Summon;
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
@@ -17,17 +18,15 @@ namespace CalamityMod.Items.Accessories
Item.height = 36;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.defense = 5;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
float damageIncrease = 0.2f;
float moveSpeedIncrease = 0.2f;
float statPower = (float)Math.Round(0.2f * Utils.GetLerpValue(1, 0.5f, ((float)player.statLife / (float)player.statLifeMax2), true), 2);
player.Calamity().gladiatorSword = true;
player.GetDamage<GenericDamageClass>() += damageIncrease - (damageIncrease * player.statLife / player.statLifeMax2);
player.moveSpeed += moveSpeedIncrease - (moveSpeedIncrease * player.statLife / player.statLifeMax2);
player.GetDamage<GenericDamageClass>() += statPower;
player.moveSpeed += statPower;
}
}
}
+12 -1
View File
@@ -50,7 +50,18 @@ namespace CalamityMod.Items.Accessories
if (player.ownedProjectileCounts[ProjectileType<Luxor>()] < 1 && !player.dead)
{
Projectile lux = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.Center, Vector2.Zero, ProjectileType<Luxor>(), 0, 0f, player.whoAmI);
Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.Center, Vector2.Zero, ProjectileType<Luxor>(), 0, 0f, player.whoAmI);
}
}
public override void UpdateVanity(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.luxorsGiftVanity = true;
if (player.ownedProjectileCounts[ProjectileType<Luxor>()] < 1 && !player.dead)
{
Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.Center, Vector2.Zero, ProjectileType<Luxor>(), 0, 0f, player.whoAmI);
}
}
}
@@ -92,6 +92,8 @@ namespace CalamityMod.Items.Accessories
Projectile.tileCollide = false;
Projectile.ArmorPenetration = 20;
Projectile.netImportant = true;
Projectile.usesIDStaticNPCImmunity = true;
Projectile.idStaticNPCHitCooldown = 10;
}
public override void AI()
+4 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.CalPlayer;
using System.Collections.Generic;
using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
@@ -31,6 +32,8 @@ namespace CalamityMod.Items.Accessories
modPlayer.rangedAmmoCost *= 0.8f;
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => tooltips.IntegrateHotkey(CalamityKeybinds.AmmoCycleHotkey);
public override void AddRecipes()
{
CreateRecipe().
+10 -24
View File
@@ -10,6 +10,7 @@ using CalamityMod.Items.Accessories;
using CalamityMod.Items.Potions;
using CalamityMod.Items.Potions.Alcohol;
using CalamityMod.Items.VanillaArmorChanges;
using CalamityMod.Items.Weapons.Magic;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Summon;
using CalamityMod.NPCs.Other;
@@ -478,25 +479,6 @@ namespace CalamityMod.Items
}
}
}
if (modPlayer.harpyWingBoost && (modPlayer.harpyRing || modPlayer.angelTreads))
{
if (Main.rand.NextBool(5) && modPlayer.wingProjectileCooldown == 0 && !item.channel)
{
modPlayer.wingProjectileCooldown = 20;
if (player.whoAmI == Main.myPlayer)
{
float spreadX = velocity.X + Main.rand.NextFloat(-0.75f, 0.75f);
float spreadY = velocity.Y + Main.rand.NextFloat(-0.75f, 0.75f);
int feather = Projectile.NewProjectile(playerSource, position, new Vector2(spreadX, spreadY) * 1.25f, ModContent.ProjectileType<TradewindsProjectile>(), (int)(damage * 0.3), 2f, player.whoAmI);
if (feather.WithinBounds(Main.maxProjectiles))
{
Main.projectile[feather].usesLocalNPCImmunity = true;
Main.projectile[feather].localNPCHitCooldown = 10;
Main.projectile[feather].DamageType = DamageClass.Generic;
}
}
}
}
return true;
}
#endregion
@@ -564,7 +546,7 @@ namespace CalamityMod.Items
#region Pickup Item Changes
public override bool OnPickup(Item item, Player player)
{
if (item.type == ItemID.Heart || item.type == ItemID.CandyApple || item.type == ItemID.CandyCane)
if (item.type == ItemID.Heart || item.type == ItemID.CandyApple || item.type == ItemID.CandyCane) // On heart pickup
{
bool boostedHeart = player.Calamity().photosynthesis;
if (boostedHeart)
@@ -572,6 +554,11 @@ namespace CalamityMod.Items
player.HealPlayer(PhotosynthesisPotion.IncreasedHeartHeal);
}
}
if (item.type == ItemID.Star || item.type == ItemID.SoulCake || item.type == ItemID.SugarPlum) // On star pickup
{
if (player.ActiveItem().type == ModContent.ItemType<IonBlaster>() || player.ActiveItem().type == ModContent.ItemType<ApoctosisArray>())
return false;
}
return true;
}
#endregion
@@ -1290,7 +1277,7 @@ namespace CalamityMod.Items
if (item.type == ItemID.MoonStone)
{
if (!Main.dayTime)
if (!Main.dayTime || Main.eclipse)
player.GetAttackSpeed<MeleeDamageClass>() -= 0.1f;
}
@@ -1331,7 +1318,6 @@ namespace CalamityMod.Items
}
else if (item.type == ItemID.HarpyWings)
{
modPlayer.harpyWingBoost = true;
player.moveSpeed += 0.1f;
player.noFallDmg = true;
}
@@ -1573,7 +1559,7 @@ namespace CalamityMod.Items
// Draw all particles.
float currentPower = 0f;
int calamitasNPCIndex = NPC.FindFirstNPC(ModContent.NPCType<WITCH>());
int calamitasNPCIndex = NPC.FindFirstNPC(ModContent.NPCType<BrimstoneWitch>());
if (calamitasNPCIndex != -1)
currentPower = Utils.GetLerpValue(11750f, 1000f, Main.LocalPlayer.Distance(Main.npc[calamitasNPCIndex].Center), true);
@@ -1637,7 +1623,7 @@ namespace CalamityMod.Items
{
storedPrefix = -1;
// Bandit steals 20% of the total price of the reforge if she's around.
if (NPC.AnyNPCs(ModContent.NPCType<THIEF>()))
if (NPC.AnyNPCs(ModContent.NPCType<Bandit>()))
{
// Calculate the item's reforge cost.
int value = item.value;
+1 -1
View File
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.DraedonMisc
meleeDisplay.OverrideColor = new Color(201, 41, 255);
list.Insert(insertIndex + 1, meleeDisplay);
int rangedItem = ModContent.ItemType<HeavyLaserRifle>();
int rangedItem = ModContent.ItemType<ScattershotSkewer>();
TooltipLine rangedDisplay = new TooltipLine(this.Mod, "CalamityMod:RangedDisplay", $"[i:{rangedItem}] {CalamityUtils.GetItemName(rangedItem)}");
rangedDisplay.OverrideColor = new Color(255, 64, 31);
list.Insert(insertIndex + 2, rangedDisplay);
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.DraedonMisc
meleeDisplay.OverrideColor = new Color(31, 242, 245);
list.Insert(insertIndex + 1, meleeDisplay);
int rangedItem = ModContent.ItemType<MatterModulator>();
int rangedItem = ModContent.ItemType<HolofiberImmolator>();
TooltipLine rangedDisplay = new TooltipLine(this.Mod, "CalamityMod:RangedDisplay", $"[i:{rangedItem}] {CalamityUtils.GetItemName(rangedItem)}");
rangedDisplay.OverrideColor = new Color(149, 243, 43);
list.Insert(insertIndex + 2, rangedDisplay);
@@ -58,8 +58,8 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
ModContent.ItemType<RustyMedallion>()
));
// Pre-HM Abyss Weapons
itemLoot.Add(new OneFromOptionsDropRule(10, 1,
// Ancient Treasure Chest Loot @ 100%; Individually 10%
itemLoot.Add(new OneFromOptionsNotScaledWithLuckDropRule(1, 1,
ModContent.ItemType<BallOFugu>(),
ModContent.ItemType<Archerfish>(),
ModContent.ItemType<BlackAnurian>(),
+3 -3
View File
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.Mounts
{
foreach (NPC npc in Main.ActiveNPCs)
{
if (npc.type == ModContent.NPCType<FAP>())
if (npc.type == ModContent.NPCType<Cirrus>())
{
npc.active = false;
npc.netUpdate = true;
@@ -100,10 +100,10 @@ namespace CalamityMod.Items.Mounts
// Spawn Cirrus if no other players are on the Alicorn mount.
if (!anyPlayerOnFabMount)
{
if (!NPC.AnyNPCs(ModContent.NPCType<FAP>()))
if (!NPC.AnyNPCs(ModContent.NPCType<Cirrus>()))
{
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.NewNPC(NPC.GetSource_TownSpawn(), (int)player.Center.X, (int)player.Center.Y, ModContent.NPCType<FAP>());
NPC.NewNPC(NPC.GetSource_TownSpawn(), (int)player.Center.X, (int)player.Center.Y, ModContent.NPCType<Cirrus>());
}
}
}
+38 -9
View File
@@ -5,6 +5,7 @@ using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.DraedonsArsenal;
using CalamityMod.Sounds;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
@@ -22,34 +23,62 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
CalamityGlobalItem modItem = Item.Calamity();
Item.width = 112;
Item.height = 36;
Item.width = 70;
Item.height = 30;
Item.DamageType = DamageClass.Ranged;
Item.damage = 150;
Item.knockBack = 30f;
Item.useAnimation = Item.useTime = 32;
Item.damage = 100;
Item.knockBack = 0.2f;
Item.useTime = Item.useAnimation = 10;
Item.autoReuse = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = CommonCalamitySounds.GaussWeaponFire;
Item.UseSound = new SoundStyle("CalamityMod/Sounds/Item/GaussFire") with { Volume = 0.7f, Pitch = Main.rand.NextFloat(0.5f, 0.65f) };
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.rare = ItemRarityID.Yellow;
Item.shoot = ModContent.ProjectileType<GaussRifleBlast>();
Item.shootSpeed = 27f;
Item.shootSpeed = 7f;
modItem.UsesCharge = true;
modItem.MaxCharge = 135f;
modItem.ChargePerUse = 0.1125f;
modItem.ChargePerUse = 0.0225f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<GaussRifleBlast>(), damage, knockback, player.whoAmI);
Projectile.NewProjectile(source, position + velocity * 6, velocity.RotatedByRandom(0.03f), ModContent.ProjectileType<GaussRifleBlast>(), damage, knockback, player.whoAmI);
return false;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/GaussRifleGlow").Value);
}
public override void UseStyle(Player player, Rectangle heldItemFrame)
{
player.ChangeDir(Math.Sign((player.Calamity().mouseWorld - player.Center).X));
float itemRotation = player.compositeFrontArm.rotation + MathHelper.PiOver2 * player.gravDir;
Vector2 itemPosition = player.MountedCenter + itemRotation.ToRotationVector2() * 7f;
Vector2 itemSize = new Vector2(70, 30);
Vector2 itemOrigin = new Vector2(-18, 6);
CalamityUtils.CleanHoldStyle(player, itemRotation, itemPosition, itemSize, itemOrigin);
base.UseStyle(player, heldItemFrame);
}
public override void UseItemFrame(Player player)
{
player.ChangeDir(Math.Sign((player.Calamity().mouseWorld - player.Center).X));
float animProgress = 0.5f - player.itemTime / (float)player.itemTimeMax;
float rotation = (player.Center - player.Calamity().mouseWorld).ToRotation() * player.gravDir + MathHelper.PiOver2;
if (animProgress < 0.4f)
rotation += -0.025f * (float)Math.Pow((0.6f - animProgress) / 0.6f, 2) * player.direction;
player.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, rotation);
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 3);
Binary file not shown.

Before

Width:  |  Height:  |  Size: 946 B

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1016 B

@@ -3,51 +3,62 @@ using System.Collections.Generic;
using CalamityMod.CustomRecipes;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.DraedonsArsenal;
using CalamityMod.Sounds;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
public class MatterModulator : ModItem, ILocalizedModType
[LegacyName("MatterModulator")]
public class HolofiberImmolator : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
public static readonly SoundStyle PlasmaSound = new("CalamityMod/Sounds/Item/PlasmaSmall");
public override void SetDefaults()
{
CalamityGlobalItem modItem = Item.Calamity();
Item.width = 40;
Item.height = 22;
Item.width = 30;
Item.height = 62;
Item.DamageType = DamageClass.Ranged;
Item.damage = 100;
Item.knockBack = 11f;
Item.useAnimation = Item.useTime = 33;
Item.damage = 57;
Item.knockBack = 0.8f;
Item.useTime = Item.useAnimation = 14;
Item.autoReuse = true;
Item.noUseGraphic = true;
Item.channel = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = CommonCalamitySounds.PlasmaBoltSound;
Item.UseSound = null;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
Item.rare = ItemRarityID.Pink;
Item.shoot = ModContent.ProjectileType<UnstableMatter>();
Item.shoot = ModContent.ProjectileType<HolofiberImmolatorHoldout>();
Item.shootSpeed = 12f;
//Item.useAmmo = AmmoID.Arrow;
modItem.UsesCharge = true;
modItem.MaxCharge = 85f;
modItem.ChargePerUse = 0.075f;
modItem.ChargePerUse = 0.001f; // Charge depletion is done in the holdout, but it needs a small fee to prevent usage at 0%
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override bool CanConsumeAmmo(Item ammo, Player player) => false;
public override void HoldItem(Player player) => player.Calamity().mouseWorldListener = true;
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/HolofiberImmolatorGlow").Value);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
for (int i = 0; i < Main.rand.Next(3, 5 + 1); i++)
{
Projectile.NewProjectile(source, position, velocity.RotatedByRandom(0.4f) * Main.rand.NextFloat(0.8f, 1.3f), type, damage, knockback, player.whoAmI);
}
Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<HolofiberImmolatorHoldout>(), damage, knockback, player.whoAmI, 0, 1);
holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero);
return false;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 677 B

+48 -13
View File
@@ -6,6 +6,7 @@ using CalamityMod.Items.Placeables.SunkenSea;
using CalamityMod.Projectiles.DraedonsArsenal;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -18,31 +19,65 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
CalamityGlobalItem modItem = Item.Calamity();
Item.width = 62;
Item.height = 22;
Item.damage = 22;
Item.width = 54;
Item.height = 38;
Item.DamageType = DamageClass.Magic;
Item.mana = 6;
Item.useAnimation = Item.useTime = 23;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<PulsePistolShot>();
Item.shootSpeed = 5.2f; // This may seem low but the shot has 10 extra updates.
Item.UseSound = PulseRifle.FireSound;
Item.useStyle = ItemUseStyleID.Shoot;
Item.damage = 70;
Item.knockBack = 3f;
Item.useTime = Item.useAnimation = 44;
Item.autoReuse = true;
Item.mana = 3;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = PulseRifle.FireSound with { Pitch = 0.3f, Volume = 0.7f };
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.shoot = ModContent.ProjectileType<PulsePistolShot>();
Item.shootSpeed = 8.2f;
modItem.UsesCharge = true;
modItem.MaxCharge = 50f;
modItem.ChargePerUse = 0.05f;
modItem.ChargePerUse = 0.01f;
}
public override Vector2? HoldoutOffset() => new Vector2(10f, 0f);
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Projectile.NewProjectile(source, position + velocity * 4, velocity, ModContent.ProjectileType<PulsePistolShot>(), damage, knockback, player.whoAmI, 0f, 3f);
return false;
}
public override void UseStyle(Player player, Rectangle heldItemFrame)
{
player.ChangeDir(Math.Sign((player.Calamity().mouseWorld - player.Center).X));
float itemRotation = player.compositeFrontArm.rotation + MathHelper.PiOver2 * player.gravDir;
float pullback = 7f;
float animProgress = 0.5f - player.itemTime / (float)player.itemTimeMax;
float rotation = (player.Center - player.Calamity().mouseWorld).ToRotation() * player.gravDir + MathHelper.PiOver2;
if (animProgress < 0.4f)
pullback -= (2.75f) * (float)Math.Pow((0.6f - animProgress) / 0.6f, 2);
Vector2 itemPosition = player.MountedCenter + itemRotation.ToRotationVector2() * pullback;
Vector2 itemSize = new Vector2(54, 38);
Vector2 itemOrigin = new Vector2(-24, 4);
CalamityUtils.CleanHoldStyle(player, itemRotation, itemPosition, itemSize, itemOrigin);
base.UseStyle(player, heldItemFrame);
}
public override void UseItemFrame(Player player)
{
player.ChangeDir(Math.Sign((player.Calamity().mouseWorld - player.Center).X));
float animProgress = 0.5f - player.itemTime / (float)player.itemTimeMax;
float rotation = (player.Center - player.Calamity().mouseWorld).ToRotation() * player.gravDir + MathHelper.PiOver2;
player.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, rotation);
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 1);
public override void AddRecipes()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -5,6 +5,7 @@ using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.DraedonsArsenal;
using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
@@ -13,63 +14,54 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
[LegacyName("LaserRifle")]
public class HeavyLaserRifle : ModItem, ILocalizedModType
[LegacyName("HeavyLaserRifle")]
public class ScattershotSkewer : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/LaserRifleFire");
public override void SetDefaults()
{
CalamityGlobalItem modItem = Item.Calamity();
Item.width = 84;
Item.height = 28;
Item.width = 64;
Item.height = 36;
Item.DamageType = DamageClass.Ranged;
Item.damage = 210;
Item.damage = 196;
Item.knockBack = 4f;
Item.useTime = 25;
Item.useAnimation = 25;
Item.useTime = 45;
Item.useAnimation = 35;
Item.autoReuse = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = FireSound;
Item.noMelee = true;
Item.channel = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
Item.rare = ModContent.RarityType<Turquoise>();
Item.shoot = ModContent.ProjectileType<LaserRifleShot>();
Item.shoot = ModContent.ProjectileType<ScattershotSkewerHoldout>();
Item.shootSpeed = 5f;
modItem.UsesCharge = true;
modItem.MaxCharge = 190f;
modItem.ChargePerUse = 0.125f;
modItem.ChargePerUse = 0.001f; // Charge depletion is done in the holdout, but it needs a small fee to prevent usage at 0%
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override void HoldItem(Player player) => player.Calamity().mouseWorldListener = true;
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/ScattershotSkewerGlow").Value);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (velocity.Length() > 5f)
{
velocity.Normalize();
velocity *= 5f;
}
for (int i = 0; i < 2; i++)
{
float SpeedX = velocity.X + Main.rand.Next(-1, 2) * 0.05f;
float SpeedY = velocity.Y + Main.rand.Next(-1, 2) * 0.05f;
Projectile.NewProjectile(source, position, new Vector2(SpeedX, SpeedY), ModContent.ProjectileType<LaserRifleShot>(), damage, knockback, player.whoAmI, i, 0f);
}
Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<ScattershotSkewerHoldout>(), damage, knockback, player.whoAmI, 0, 1);
holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero);
return false;
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 4);
public override Vector2? HoldoutOffset()
{
return new Vector2(-20, 0);
}
public override void AddRecipes()
{
CreateRecipe().
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

+16 -11
View File
@@ -5,7 +5,9 @@ using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.SunkenSea;
using CalamityMod.Projectiles.DraedonsArsenal;
using CalamityMod.Sounds;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
@@ -14,27 +16,30 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
public class Taser : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
public static readonly SoundStyle Fire = new("CalamityMod/Sounds/Item/TaserLaunch") { Volume = 0.6f };
public override void SetDefaults()
{
CalamityGlobalItem modItem = Item.Calamity();
Item.width = 50;
Item.height = 26;
Item.damage = 16;
Item.width = 42;
Item.height = 24;
Item.DamageType = DamageClass.Ranged;
Item.useAnimation = Item.useTime = 28;
Item.knockBack = 0.25f;
Item.shoot = ModContent.ProjectileType<TaserHook>();
Item.shootSpeed = 25f;
Item.UseSound = CommonCalamitySounds.PlasmaBoltSound;
Item.useStyle = ItemUseStyleID.Shoot;
Item.damage = 20;
Item.knockBack = 0f;
Item.useTime = Item.useAnimation = 28;
Item.autoReuse = true;
Item.reuseDelay = 15;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = Fire;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.shoot = ModContent.ProjectileType<TaserHook>();
Item.shootSpeed = 6f;
modItem.UsesCharge = true;
modItem.MaxCharge = 50f;
modItem.ChargePerUse = 0.05f;
@@ -42,8 +47,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override Vector2? HoldoutOffset() => new Vector2(5f, 0f);
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 1);
public override void AddRecipes()
{
CreateRecipe().
Binary file not shown.

Before

Width:  |  Height:  |  Size: 711 B

After

Width:  |  Height:  |  Size: 685 B

@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
CalamityGlobalItem modItem = Item.Calamity();
Item.width = 30;
Item.height = 34;
Item.width = 58;
Item.height = 48;
Item.damage = 16;
Item.DamageType = RogueDamageClass.Instance;
Item.useTime = 40;
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
modItem.UsesCharge = true;
modItem.MaxCharge = 50f;
modItem.ChargePerUse = 0.07f;
modItem.ChargePerUse = 0.05f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 737 B

After

Width:  |  Height:  |  Size: 1.5 KiB

-1
View File
@@ -39,7 +39,6 @@ namespace CalamityMod.Items.Weapons.Magic
{
CreateRecipe().
AddIngredient<PlasmaRod>().
AddIngredient<Lazhar>().
AddIngredient<TwistingNether>(3).
AddTile(TileID.LunarCraftingStation).
Register();
+28 -31
View File
@@ -1,5 +1,6 @@
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -14,53 +15,49 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 130;
Item.height = 58;
Item.damage = 99;
Item.damage = 69;
Item.DamageType = DamageClass.Magic;
Item.mana = 12;
Item.useAnimation = 7;
Item.useTime = 7;
Item.mana = 7;
Item.useAnimation = 5;
Item.useTime = 5;
Item.useStyle = ItemUseStyleID.Shoot;
Item.knockBack = 6.75f;
Item.UseSound = SoundID.Item91;
Item.knockBack = 6f;
Item.autoReuse = true;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityPurpleBuyPrice;
Item.rare = ItemRarityID.Purple;
Item.shoot = ModContent.ProjectileType<IonBlast>();
Item.shootSpeed = 8f;
Item.channel = true;
Item.noUseGraphic = true;
Item.shoot = ModContent.ProjectileType<ApoctosisArrayHoldout>();
Item.shootSpeed = 3f;
Item.value = CalamityGlobalItem.RarityRedBuyPrice;
Item.rare = ItemRarityID.Red;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] == 0;
public override Vector2? HoldoutOffset() => new Vector2(-25, 0);
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
// Makes the rotation of the mouse around the player sync in multiplayer.
public override void HoldItem(Player player) => player.Calamity().mouseRotationListener = true;
public override bool AltFunctionUse(Player player) => true;
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
float manaRatio = (float)player.statMana / player.statManaMax2;
bool injectionNerf = player.Calamity().astralInjection;
if (injectionNerf)
manaRatio = MathHelper.Min(manaRatio, 0.65f);
// 20% to 160% damage. Astral Injection caps it at 111% damage.
float damageRatio = 0.2f + 1.4f * manaRatio;
damage = (int)(damage * damageRatio);
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/ApoctosisArrayGlow").Value);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float manaRatio = (float)player.statMana / player.statManaMax2;
bool injectionNerf = player.Calamity().astralInjection;
if (injectionNerf)
manaRatio = MathHelper.Min(manaRatio, 0.65f);
Projectile proj = Projectile.NewProjectileDirect(source, position, velocity, type, damage, knockback, player.whoAmI);
proj.scale = 0.75f + 0.75f * manaRatio;
Projectile holdout;
if (player.Calamity().mouseRight && player.whoAmI == Main.myPlayer && !Main.mapFullscreen && !Main.blockMouse)
{
holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, type, damage, knockback, player.whoAmI, 0, 0, 5);
}
else
holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, type, damage, knockback, player.whoAmI, 0, 0, 0);
holdout.velocity = player.Calamity().mouseWorld - player.RotatedRelativePoint(player.MountedCenter);
return false;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<IonBlaster>().
AddIngredient(ItemID.LunarBar, 5).
AddIngredient(ItemID.FragmentSolar, 6).
AddTile(TileID.LunarCraftingStation).
Register();
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+27 -26
View File
@@ -1,5 +1,6 @@
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -10,50 +11,50 @@ namespace CalamityMod.Items.Weapons.Magic
public class IonBlaster : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Magic";
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
}
public override void SetDefaults()
{
Item.width = 68;
Item.height = 38;
Item.damage = 29;
Item.damage = 42;
Item.DamageType = DamageClass.Magic;
Item.mana = 10;
Item.useAnimation = 10;
Item.useTime = 10;
Item.mana = 8;
Item.useAnimation = 7;
Item.useTime = 7;
Item.useStyle = ItemUseStyleID.Shoot;
Item.knockBack = 5.5f;
Item.UseSound = SoundID.Item91;
Item.knockBack = 6f;
Item.autoReuse = true;
Item.noMelee = true;
Item.shoot = ModContent.ProjectileType<IonBlast>();
Item.channel = true;
Item.noUseGraphic = true;
Item.shoot = ModContent.ProjectileType<IonBlasterHoldout>();
Item.shootSpeed = 3f;
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
Item.rare = ItemRarityID.Pink;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] == 0;
public override Vector2? HoldoutOffset() => new Vector2(-5, 0);
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
// Makes the rotation of the mouse around the player sync in multiplayer.
public override void HoldItem(Player player) => player.Calamity().mouseRotationListener = true;
public override bool AltFunctionUse(Player player) => true;
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
float manaRatio = (float)player.statMana / player.statManaMax2;
bool injectionNerf = player.Calamity().astralInjection;
if (injectionNerf)
manaRatio = MathHelper.Min(manaRatio, 0.65f);
// 20% to 160% damage. Astral Injection caps it at 111% damage.
float damageRatio = 0.2f + 1.4f * manaRatio;
damage = (int)(damage * damageRatio);
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Magic/IonBlasterGlow").Value);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float manaRatio = (float)player.statMana / player.statManaMax2;
bool injectionNerf = player.Calamity().astralInjection;
if (injectionNerf)
manaRatio = MathHelper.Min(manaRatio, 0.65f);
Projectile proj = Projectile.NewProjectileDirect(source, position, velocity, type, damage, knockback, player.whoAmI);
proj.scale = 0.75f + 0.75f * manaRatio;
Projectile holdout;
if (player.Calamity().mouseRight && player.whoAmI == Main.myPlayer && !Main.mapFullscreen && !Main.blockMouse)
{
holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, type, damage, knockback, player.whoAmI, 0, 0, 5);
}
else
holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, type, damage, knockback, player.whoAmI, 0, 0, 0);
holdout.velocity = player.Calamity().mouseWorld - player.RotatedRelativePoint(player.MountedCenter);
return false;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

-50
View File
@@ -1,50 +0,0 @@
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class Lazhar : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Magic";
public override void SetDefaults()
{
Item.width = 42;
Item.height = 20;
Item.damage = 76;
Item.DamageType = DamageClass.Magic;
Item.mana = 4;
Item.useTime = 7;
Item.useAnimation = 7;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 5f;
Item.value = CalamityGlobalItem.RarityRedBuyPrice;
Item.rare = ItemRarityID.Red;
Item.UseSound = SoundID.Item12;
Item.autoReuse = true;
Item.shootSpeed = 15f;
Item.shoot = ModContent.ProjectileType<LazharSolarBeam>();
}
public override Vector2? HoldoutOffset() => new Vector2(-5, 0);
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
{
velocity.X += (float)Main.rand.Next(-15, 16) * 0.05f;
velocity.Y += (float)Main.rand.Next(-15, 16) * 0.05f;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.SpaceGun).
AddIngredient(ItemID.HeatRay).
AddIngredient(ItemID.FragmentSolar, 6).
AddTile(TileID.LunarCraftingStation).
Register();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 711 B

+3 -3
View File
@@ -26,10 +26,10 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 52;
Item.height = 28;
Item.damage = 180;
Item.damage = 190;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useTime = 18;
Item.useAnimation = 18;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0.1f;
+2
View File
@@ -39,7 +39,9 @@ namespace CalamityMod.Items.Weapons.Rogue
Main.projectile[stealth].Calamity().stealthStrike = true;
Main.projectile[stealth].aiStyle = -1;
Main.projectile[stealth].tileCollide = false;
Main.projectile[stealth].usesIDStaticNPCImmunity = false;
Main.projectile[stealth].usesLocalNPCImmunity = true;
Main.projectile[stealth].localNPCHitCooldown = 10;
}
return false;
}
-1
View File
@@ -41,7 +41,6 @@ namespace CalamityMod.Items.Weapons.Rogue
if (stealth.WithinBounds(Main.maxProjectiles))
{
Main.projectile[stealth].Calamity().stealthStrike = true;
Main.projectile[stealth].usesLocalNPCImmunity = true;
}
return false;
}
-1
View File
@@ -41,7 +41,6 @@ namespace CalamityMod.Items.Weapons.Rogue
if (stealth.WithinBounds(Main.maxProjectiles))
{
Main.projectile[stealth].Calamity().stealthStrike = true;
Main.projectile[stealth].usesLocalNPCImmunity = true;
}
return false;
}
@@ -71,6 +71,7 @@ AuroraSpirit: Thought to be no more than an old wives' tale, sightings of aurora
BloomSlime: Imbued with profaned energy, this slime wishes to see the world reduced to ashes to ensure the suffering it brings is no more. However, the simplicity of their form makes it difficult for the slain goddess to fully impose her will onto them.
Bohldohr: Bohldohrs were made to serve the lihzahrds, being crafted from ancient stone and brought to life with magical power in the twilight of the great Lihzahrd Dynasty. But the sun sets on every civilization, and once their deity abandoned them, they were left to fend for themselves.
CladCrab: Strong enough to carry an entire mound, these land crustaceans were hard pressed for survival during the Crusade. With no other option, they added rock and stone to their list of protections, allowing them to continue thriving.
CloudElemental: Part of a solitary elemental that rarely appears aside from when her domain is at its strongest. Many attempts were made by what remained of Yharim's forces to hunt down the elementals after Azafure fell. Only now that the war has passed do the weaker elementals dare return.
GemCrawler: Relatives to the Ilmeran Sea's prismbacks. The aquatic lizards ended up in the wild after being taken in as pets, though without the proper nutrients to grow prisms on their back, many grew the next best thing– precious gems.
BlightSlime: Slimes that have absorbed some of the blighted godly essence. Riddled with impurity, they are now more putrid flesh than gelatin and, having taken in such an amount that they seem ready to burst. Yet unlike most slimes which have relatively basic minds, these seem to be collecting mass with a purpose.
Cryon: Archmage Permafrost went through great pains to not take part in combat himself, instead molding cryons to act as his personal guardians. Noticing the spread of godly essence just as many other creatures have, they have come out of stasis to combat any signs of it so that they may defend their master.
@@ -93,7 +94,6 @@ ScornEater: For one to be weak of will does not inherently mean they are weak of
ShockstormShuttle: Mining devices and scouts for a civilization from a long lost world. They now seek whatever resources are left on other nearby planets, and perhaps even this world as a potential replacement for their ruined home.
Shroomble: Mushrooms offer surprisingly effective regenerative agents to human bodies. This is commonly attributed to their abundance of Life, and visibly, "abundance" is often an understatement.
Sunskater: To the civilization that lived far above clouds, sunskaters were seen as a good omen. These creatures inspired hope in those who saw them, that their society might live on for as long as the sun's light bathes the world.
ThiccWaifu: Part of a solitary elemental that rarely appears aside from when her domain is at its strongest. Many attempts were made by what remained of Yharim's forces to hunt down the elementals after Azafure fell. Only now that the war has passed do the weaker elementals dare return.
WildBumblefuck: Though but an adolescent dragonfolly, it poses a great threat to all around it regardless of its age. Their species survived the draconic purges by reproducing rapidly and becoming highly reclusive, alongside developing a hyper-aggressive nature.
WulfrumAmplifier: These amplifiers empower fellow wulfrum machines through a surprisingly advanced tesla field. While the field is harmless to any organic beings that pass through it, wulfrum machines are designed to receive energy from it which allows them to run at peak efficiency.
WulfrumDrone: The purpose the wulfrum machines once fulfilled can most clearly be seen through the drones: to harass the basic troopers of Yharim's forces. They were not threatening enough to be a priority target, though their laser attacks could be quite deadly if allowed to fully power up.
@@ -137,11 +137,11 @@ Sharkoon: The bulbous Sharkoon wanders the reefs on the outskirts of the Sunken
Stormlion: Some Ilmerian survivors claim that enough magical lightning surged through the sea during its final days that there existed not a single drop of water without levin coursing through it. Even now, electricity remains buried in the sands, with several antlion species having learned to channel the former kingdom's power.
//Town NPCs
AndroombaFriendly: Reverse-engineered Androombas that have been retrofitted to spread the Steampunker's solutions rather than clean dust and debris off of floors. They can be used to purify the world– or ruin it further, if one so desires.
DILF: One of the world's foremost experts on magical theory, he is renowned for his skill with the arcane arts. In his days when he traveled with Yharim's entourage, he acted as the Godseeker's advisor, due to both his status and his distaste for actively participating in battle.
FAP: A princess from an unknown land. She drinks constantly in a vain attempt to escape the memories of her past, but is practically immune to alcohol. She makes a business of selling her mixtures, alcoholic and alchemic alike.
SEAHOE: The seventeenth ruler of the constitutional monarchy of Ilmeris since the tribes of the Ilmeran Sea unified, under the Electric Goddess, Otonilou, and the elusive God of the Seas. Alas, one cannot be a ruler without subjects, and while he remains respected by those who opposed Godseeker Yharim, his kingdom is no more.
THIEF: The bandit may have a bad habit of looting battlefields and taking what isn't theirs, but their actions are mostly motivated by their hatred of the obscenely rich who haven't truly earned the wealth they possess. Their methods are somewhat shady, but can always be relied upon to get a job done.
WITCH: Recruited to Yharim's forces late into the war, her magic overflows with such power that she is largely incapable of casting normal spells. Yet despite her great power, Calamitas prefers not to use it, as it takes a heavy toll on her psyche.
Archmage: One of the world's foremost experts on magical theory, he is renowned for his skill with the arcane arts. In his days when he traveled with Yharim's entourage, he acted as the Godseeker's advisor, due to both his status and his distaste for actively participating in battle.
Bandit: The bandit may have a bad habit of looting battlefields and taking what isn't theirs, but their actions are mostly motivated by their hatred of the obscenely rich who haven't truly earned the wealth they possess. Their methods are somewhat shady, but can always be relied upon to get a job done.
BrimstoneWitch: Recruited to Yharim's forces late into the war, her magic overflows with such power that she is largely incapable of casting normal spells. Yet despite her great power, Calamitas prefers not to use it, as it takes a heavy toll on her psyche.
Cirrus: A princess from an unknown land. She drinks constantly in a vain attempt to escape the memories of her past, but is practically immune to alcohol. She makes a business of selling her mixtures, alcoholic and alchemic alike.
SeaKing: The seventeenth ruler of the constitutional monarchy of Ilmeris since the tribes of the Ilmeran Sea unified, under the Electric Goddess, Otonilou, and the elusive God of the Seas. Alas, one cannot be a ruler without subjects, and while he remains respected by those who opposed Godseeker Yharim, his kingdom is no more.
//Boss Minions
Brimling: Extensions of the Brimstone Elemental herself, and part of her very being. Both she and her Brimlings are of a single mind, so she naturally cares for them just as she cares for herself. When heavily wounded, they withdraw into a cocoon to protect themselves from further harm.
SoulSeeker: The Clone's attempt at wielding the souls of the damned as weapons, these retain slightly more autonomy than their Azafurian brethren. And yet given the striking resemblance the bear to the Clone's shell, it's arguable that they might be further from Calamitas' current soul seekers than those found in Azafure's ruins.
@@ -116,7 +116,11 @@ AmbrosialAmpoule: {
AncientFossil: {
DisplayName: Ancient Fossil
Tooltip: Increases mining speed by 10%
Tooltip:
'''
Increases mining speed by 10%
Provides immunity to damage from falling blocks
'''
}
AnechoicPlating: {
@@ -202,8 +206,10 @@ ArchaicPowder: {
DisplayName: Archaic Powder
Tooltip:
'''
Increases mining speed by 15%
5% increased damage reduction and +10 defense while underground or in the underworld
Increases mining speed by 30%
Provides immunity to damage from falling blocks and dart traps
65% resistance to all damage from traps
Does not stack with downgrades
'''
}
@@ -211,7 +217,7 @@ AscendantInsignia: {
DisplayName: Ascendant Insignia
Tooltip:
'''
Increases wing flight time by 50%, movement and jump speed by 10%, and acceleration by 1.5x
Increases wing flight time by 50%, movement and jump speed by 15%, and acceleration by 1.5x
Pressing [KEY] grants you the power of ascension, providing infinite flight time for 4 seconds
Ascension has a 40 second cooldown
'''
@@ -542,7 +548,12 @@ DarkSunRing: {
DeadshotBrooch: {
DisplayName: Deadshot Brooch
Tooltip: 10% increased ranged damage, 5% increased ranged critical strike chance and 20% reduced ammo usage
Tooltip:
'''
12% increased ranged damage, 7% increased ranged critical strike chance and 20% reduced ammo usage
Pressing [KEY] will automatically swap the order of ammos in your ammo slots
The ammo type swapped depends on the ammo of the weapon you are holding
'''
}
DeepDiver: {
@@ -850,7 +861,7 @@ GladiatorsLocket: {
Tooltip:
'''
Enemies drop a healing orb on kill
Gain an increase to your damage and movement speed the lower your health is, up to 20%
Gain an increase to your damage and movement speed the lower your health is, up to 20% at 50% life or below
'''
}
@@ -1287,7 +1298,8 @@ PlanebreakersPouch: {
'''
15% increased ranged damage, 5% increased ranged critical strike chance and 20% reduced ammo usage
Grants a 20% chance to not consume arrows
Greatly increases all ranged projectile velocity
Pressing [KEY] will automatically swap the ammos in your ammo slots
The ammo type swapped depends on the ammo of the weapon you are holding
'''
}
@@ -50,16 +50,25 @@ GaussPistol: {
GaussRifle: {
DisplayName: Gauss Rifle
Tooltip: Fires a devastating powerful high-velocity blast with absurd knockback
}
HeavyLaserRifle: {
DisplayName: Heavy Laser Rifle
Tooltip:
'''
Fires an incredibly accurate pair of destructive laser beams
[c/1FFBFF:'Though Godseeker Knights are often brutish, not all prefer close quarters melee combat.]
[c/1FFBFF:As such, Yharim personally requested that I create heavy weaponry for them despite being few in number.']
A magnet powered energy rifle that fires piercing shots, creating magnetic implosions that pull in weak enemies on hit
Implosions only spawn on the first enemy hit by the beam
[c/1FFBFF:'Many soldiers underestimate the destructive capabilities of magnetism.]
[c/1FFBFF:This rifle has reliably pulled in skeptics of its crushing efficiency.']
'''
}
HolofiberImmolator: {
DisplayName: Holofiber Immolator
Tooltip:
'''
Fires three gravity-affected plasma drops which dissolve through foes
Holding <left> quickly charges the bow, firing a homing plasma arrow
Plasma arrows will detonate after impact, creating stronger explosions if stuck into tiles
Holding <right> will repeatedly fire uncharged shots
[c/1FFBFF:'The elegance of holofibre is unmatched.]
[c/1FFBFF:However, mechanical tension may have produced more consistent results.']
'''
}
@@ -74,15 +83,6 @@ HydraulicVoltCrasher: {
'''
}
MatterModulator: {
DisplayName: Matter Modulator
Tooltip:
'''
Fires a burst of unstable matter that pierces infinitely but deals little damage
After striking a tile, the matter will gain enhanced damage and no longer pierce
'''
}
MountedScanner: {
DisplayName: Mounted Scanner
Tooltip: Summons a powerful scanner module above your head that fires lasers at nearby enemies
@@ -139,7 +139,12 @@ PulseDragon: {
PulsePistol: {
DisplayName: Pulse Pistol
Tooltip: Fires a pulse that arcs to a new target on enemy hits
Tooltip:
'''
Fires a pulse orb that tracks nearby targets
After hitting an enemy, the pulse orb will split in two
Pulse orb pierce will not decrease when killing enemies
'''
}
PulseRifle: {
@@ -164,6 +169,19 @@ PulseTurretRemote: {
'''
}
ScattershotSkewer: {
DisplayName: Scattershot Skewer
Tooltip:
'''
Fires a spread of lasers
Holding <left> charges the weapon, allowing it to thrust forward and impale enemies with an energy spear
Using the charged attack has a short cooldown
Holding <right> will repeatedly fire uncharged shots
[c/1FFBFF:'There was much call from Yharim's forces for close range armaments.]
[c/1FFBFF:A laser lance with which to gore their foes was met with thunderous applause.']
'''
}
SnakeEyes: {
DisplayName: Snake Eyes
Tooltip:
@@ -199,8 +217,8 @@ Taser: {
DisplayName: Taser
Tooltip:
'''
Shoots a hook that attaches to enemies and electrocutes them before returning
A slow, simple electric weapon, meant only for low ranking guards
Shoots a hook that attaches to enemies and rapidly electrocutes them before returning
After electrocuting an enemy enough, the hook will create a large electric burst on it
'''
}
@@ -228,8 +246,10 @@ TrackingDisk: {
Tooltip:
'''
Releases a flying disk that fires lasers at nearby enemies
This disk gains acceleration as it returns to the player
Stealth strikes fire lasers at a faster rate and distance, and can fire at multiple different targets
Lasers do not directly damage enemies, but instead apply a stacking laser burn effect
Once hit by enough lasers or sufficient time has passed, laser burn will deal direct damage
The disk gains acceleration as it returns to the player
Stealth strikes fire lasers at a faster rate and distance, can fire at multiple different targets, and lasers deal small amounts of damage
'''
}
@@ -60,9 +60,11 @@ ApoctosisArray: {
DisplayName: Apoctosis Array
Tooltip:
'''
Fires ion blasts that speed up and then explode
Damage scales with how full your mana is
Using Astral Injection reduces the effectiveness of the mana boost
Rapidly fires an array of ion blasts with heavy armor penetration that accelerate and explode
Press <right> to charge the blaster, restoring your mana until it reaches max
The more mana you restore, the stronger the arrow is when you release it
Charging for 90% of your max mana or more will reach max power
Holding this weapon disables the pickup of stars
'''
}
@@ -495,9 +497,11 @@ IonBlaster: {
DisplayName: Ion Blaster
Tooltip:
'''
Fires ion blasts that speed up and then explode
Damage scales with how full your mana is
Using Astral Injection reduces the effectiveness of the mana boost
Rapidly fires ion blasts with heavy armor penetration that accelerate and explode
Press <right> to charge the blaster, restoring your mana until it reaches max
The more mana you restore, the stronger the burst is when you release it
Charging for 90% of your max mana or more will reach max power
Holding this weapon disables the pickup of stars
'''
}
@@ -519,11 +523,6 @@ LashesofChaos: {
'''
}
Lazhar: {
DisplayName: Lazhar
Tooltip: Fires a highly volatile concentrated solar beam
}
LightGodsBrilliance: {
DisplayName: Light God's Brilliance
Tooltip: Casts small, homing light beads along with explosive light balls
@@ -749,7 +749,7 @@ Hellkite: {
An ancient blade created during the Draconic Era by Azafure's finest forgemaster
Swings a slow and heavy blade with powerful knockback
Holding <right> will begin charging a strengthened swing
Releasing <right> while fully charged will unleash a devastating slash
Releasing <right> while fully charged will unleash a devastating slash that always critically strikes
[c/E1B65F:'Feel the strength of a blade forged through passion']
'''
TooltipGFB:
@@ -757,7 +757,7 @@ Hellkite: {
An ancient blade created during the Draconic Era by Azafure's finest forgemaster
Swings a slow and heavy blade with powerful knockback
Holding <right> will begin charging a strengthened swing
Releasing <right> while fully charged will unleash a devastating slash
Releasing <right> while fully charged will unleash a devastating slash that always critically strikes
[c/0C507F:'My beloved <3' -Xyk]
'''
}
@@ -467,9 +467,8 @@ FetidEmesis: {
'''
Fires an accelerating stream of bullets until the barrel overheats
When the barrel overheats, a spread of fetid chunks is vomited out
Holding <right> while firing will hold in the chunks
If held in for long enough, more chunks will be fired
After firing, the gun must cool back down before it can be used again
After firing, the gun must cool back down before it can be used again
Pressing <right> while firing will instantly launch the chunks
75% chance to save ammo
'''
}
@@ -1392,6 +1392,7 @@ Whitewater: {
Flasks that hit enemies while glowing release four water spears that converge back on the flask's position
If the flask hits an enemy or gets too far, it will return to the owner
Stealth strikes create eight water spears and summon a swirling whitewater vortex that heals players and knocks back enemies
Allies that enter the vortex will heal for twice as long
'''
}
@@ -1,5 +1,6 @@
ActivateAccessoryParry.DisplayName: Activate Accessory Parry
AdrenalineMode.DisplayName: Adrenaline Mode
AmmoCycle.DisplayName: Ammo Cycle Hotkey
AngelicAllianceBlessing.DisplayName: Angelic Alliance Blessing
ArmorSetBonus.DisplayName: Armor Set Bonus
AscendantInsigniaHotKey.DisplayName: Ascendant Insignia Flight
@@ -7,9 +8,8 @@ BoosterDash.DisplayName: Booster Dash
DashDoubleTapOverride.DisplayName: Dash Double Tap Override
ExoChairSlowDown.DisplayName: Exo Chair Slow Down
GodSlayerDash.DisplayName: God Slayer Dash
GravistarSabatonHotkey.DisplayName: Gravistar Sabaton Slam
GravistarSabatonHotkey.DisplayName: Interstellar Stompers Slam
NormalityRelocator.DisplayName: Normality Relocator
RageMode.DisplayName: Rage Mode
SandCloakEffect.DisplayName: Sand Cloak Effect
SpectralVeilTeleport.DisplayName: Spectral Veil Teleport
TransformerHotKey.DisplayName: Transformer Hot Key
+155 -151
View File
@@ -152,6 +152,7 @@ BloomSlime.DisplayName: Bloom Slime
Bohldohr.DisplayName: Bohldohr
BucketZombie.DisplayName: "{$NPCName.Zombie}"
CladCrab.DisplayName: Clad Crab
CloudElemental.DisplayName: Cloud Elemental
Cnidrion.DisplayName: Cnidrion
CrawlerAmber.DisplayName: Amber Crawler
CrawlerAmethyst.DisplayName: Amethyst Crawler
@@ -192,7 +193,6 @@ SkeletronPrime2.DisplayName: Skeletron Prime
Stormlion.DisplayName: Stormlion
Sunskater.DisplayName: Sunskater
SuperDummyNPC.DisplayName: Super Dummy
ThiccWaifu.DisplayName: Cloud Elemental
WildBumblefuck.DisplayName: Draconic Swarmer
WulfrumAmplifier.DisplayName: Wulfrum Amplifier
WulfrumDrone.DisplayName: Wulfrum Drone
@@ -302,7 +302,7 @@ YharonPhase2: Yharon, Resplendent Phoenix
// Town NPCs, Pets, etc
AndroombaFriendly.DisplayName: Androomba Pal
DILF: {
Archmage: {
DisplayName: Archmage
Census.SpawnCondition: Defeat Cryogen
Name.Permafrost: Permafrost
@@ -341,13 +341,137 @@ DILF: {
}
}
FAP: {
Bandit: {
DisplayName: Bandit
Census.SpawnCondition: Have a {$ItemName.PlatinumCoin} [i:PlatinumCoin] in your inventory after defeating Skeletron
Name: {
Laura: Laura
Mie: Mie
Bonnie: Bonnie
Sarah: Sarah
Diane: Diane
Kate: Kate
Penelope: Penelope
Marisa: Marisa
Maribel: Maribel
Valerie: Valerie
Jessica: Jessica
Rowan: Rowan
Jessie: Jessie
Jade: Jade
Hearn: Hearn
Amber: Amber
Anne: Anne
Indiana: Indiana
}
Chat: {
BloodMoon1: Oy, watch where you're going or I might just use you for dart practice.
BloodMoon2: Bet you'd look good as a pincushion, amiright?
BloodMoon3: Zombies don't dodge very well. Maybe you'll do a bit better.
BloodMoon4: Hey, careful over there. I've rigged the place. One wrong step and you're going to get a knife in your forehead.
Normal1: Anything is a weapon if you throw it hard enough.
Normal2: That's your chucking arm? You need to work out more.
Normal3: Listen here. It's all in the wrist, the wrist! Oh, forget it.
Normal4: Eh you know how it goes; steal from the rich, give to the poor, but I do take a cut of the profit.
Normal5: Snakes! Why does it always have to be snakes!
Normal6: It's super nice you know, to just have everything you want. Some people never got that luxury.
Normal7: It's not stealing! I'm just borrowing it until I die!
Night1: Hm, the stars are too bright tonight. Makes sneaking around a little more difficult.
Night2: You think those stars that fall occasionally would make good throwing weapons?
BrimstoneWitch: Hey, hey, has {0} seriously moved in here with us? Why???
DrunkPrincess: I learned never to steal {0}'s drinks. She doesn't appreciate me right now, so I'll go back to hiding.
Merchant: Don't tell {0}, but I took some of his stuff and replaced it with Angel Statues.
NurseArmsDealer: Don't tell {0} that I was responsible for {1}'s injuries.
NamedLaura: The nice thing about maps is I can track anything that has fallen.
NamedPenelope: Imagine how fast you could throw if you just had more hands.
NamedValerie: I also take food for currency.
NamedRowan: Usually I only think of animals as food or target practice, but dragons are an exception.
Jungle: I'd rather not be here. This place has bad vibes, y'know? It brings back some unpleasant memories.
Party: Where is my party hat? Well, I stole it of course.
Hardmode1: All sorts of new weapons to be found and looted. Get to that, and I'll share some of my collection too!
Hardmode2: There's so much scrap around this land with valuable parts to them. Makes you wonder who could afford to leave em all around.
Hardmode3: Crypts, tombs, dungeons, those're all just treasure troves to me. The dead are dead, they've got nothing to do with it.
MoonLordDefeated1: If you find anything cool, make sure to drop by and show it to me, I promise I'll keep my hands off it.
MoonLordDefeated2: So many new things to steal, I can't think of where to start!
MoonLordDefeated3: If I end up angering some deities or whatever, would you mind taking the blame for me?
HasBoneGlove: Wouldn't be the first time I used remains as weapons.
HasValediction: Oh man, did you rip that off a shark!? Now that's a weapon!
}
RefundButton: Refund
Refund1: Want in on a little secret? Since {0} always gets so much cash from you, I've been stealing some of it as we go. I need you to keep quiet about it, so here.
Refund2: Hey, if government officials can get tax, why can't I? The heck do you mean that these two things are nothing alike?
NoRefund: Sorry, I got nothing. Perhaps you could reforge something and come back later...
TownNPCMood: {
Content: It's been going well!
NoHome: You have a place to bunk? Sleeping on the ground makes me stiff and sore.
LoveSpace: Less people makes getting away with certain things easier.
FarFromHome: I need to get back to my secret cache! What if someone got their hands on it while I was away!?
DislikeCrowded: I don't like this, too many possible eyewitnesses.
HateCrowded: Being around this many people makes me think I'M going to be robbed.
LikeBiome: I know that a lot of wealthy traders come through the desert at times. Makes it a great spot to nick their goods.
DislikeBiome: Too stifling, too humid. I get sluggish in these conditions, no good.
HateBiome: No one lives here, and why would they?! This place is a dump!
LikeNPC: "{NPCName} doesn't only keep spiky balls in his pockets, he keeps a ton of cash! He's too absentminded to notice I'm stealing from him too! I like that a lot!"
DislikeNPC: What a goody two shoes, {NPCName} is! I dislike her out of principle! …And because she has almost no material goods.
LikeNPC_Princess: I couldn't bear to steal anything from {NPCName}, she's so cute!
Princess_LovesNPC: "{NPCName} gifts me with nice exact replicas of other's things, I wonder how they do it!"
}
}
BrimstoneWitch: {
DisplayName: Brimstone Witch
Census.SpawnCondition: Defeat Supreme Witch, Calamitas
Name.Calamitas: Calamitas
Chat: {
EasterEgg: Mrrp is cringe.
Homeless1: I'm considering moving back to that old cave of mine.
Homeless2: I certainly can't return to Yharim's old dwellings now, have you got any places to stay?
Normal1: I can't pay rent, but if you've got any dead relative you want me to try and... what? You don't?
Normal2: One of these days, I was thinking of starting a garden with the flowers from the old capitol of hell. I love the smell of brimstone in the morning.
Normal3: I think I've settled comfortably, thank you very much.
Normal4: Many seasons have gone by since I first met with the Tyrant, and only now did I break free. I wish I'd been stronger...
Normal5: If you've got any curses you want dispelled... well I'm not your person.
BloodMoon1: Such an unnatural shade of red. Nothing like my brimstone flames.
BloodMoon2: I can't work with nights like these. The stars seem to have shrunk away in fear.
Night1: These undead are horrific, I can't stand to look at them. How could anyone be satisfied with such amateur work?
Night2: I don't think it's a stretch to say that astrology is utter nonsense... but it was a hobby of mine once.
DrunkPrincess: I wonder if {0} ever feels cold given how revealing her dress is. Perhaps she should cover up a bit more.
SeaKing: I cannot understand the Sea King. He does not seem to want me dead. That amount of compassion I just can't understand.
Party: If another person asks me if I can dance or not, I will light their hat on fire.
}
EnchantButton: Enchant
TownNPCMood: {
Content: I can't complain, really.
NoHome: Anywhere would be better than a cave with no bed or lighting.
LoveSpace: The quieter, the better. This is good.
FarFromHome: After being used to having people around for a bit, I miss it again.
DislikeCrowded: I really don't like how familiar some of these people are getting with me.
HateCrowded: I'm getting a headache from the pressure of having so many people around.
LikeBiome: I've never had the chance to live somewhere like this before. The trees and the songbirds… I quite like it.
DislikeBiome: Is this a sick joke? I can't bear to be here any longer, I've already tried to atone for my sins.
HateBiome: The spirits are unrestful here. It's really not a good feeling.
LikeNPC: "{NPCName} is someone who's had a terrible experience being cursed. He's put up with it quite well all that time, it's quite impressive honestly."
DislikeNPC: Such a racket! All {NPCName} does is make noise, day in and day out! I can't stand her!
LikeNPC_Princess: What a strangely pleasant kid {NPCName} is to be around.
Princess_LovesNPC: "{NPCName} is always lonely, it's why I want to hang out with her, no one should be left alone like that!"
}
}
Cirrus: {
DisplayName: Drunk Princess
Census.SpawnCondition: Have {$Items.Potions.CirrusVodka.DisplayName} [i:CalamityMod/CirrusVodka] in your inventory in Hardmode or defeat Calamitas Clone/Plantera
Name.Cirrus: Cirrus
Chat: {
BossAlive: Why are you talking to me right now? Shouldn't you be bumbling around and dying for my amusement?
BossAlive: Why are you talking to me right now? Shouldn't you be bumbling about and dying for my amusement?
BossAliveAlt: You must be joking! Get back out there and FINISH THE FIGHT!
Homeless1: I could smell my vodka from MILES away!
Homeless2: Have any spare rooms available? Preferably candle-lit with a hefty supply of booze?
BloodMoon1: I'm gonna make some Bloody Marys to relax, celery included. Want one?
@@ -358,13 +482,13 @@ FAP: {
Normal1: What do you want this time? I have an appointment to get my nails done in 5 minutes, make it quick.
Normal1Alt: Whaddya need? I have candles and alcohols galore!
Normal2: Maybe you should drink something that turns you into a magical flying unicorn, so you can be just like me.
Normal2Alt: Sometimes I think about returning to nature for a while to escape from all of this chaos.
Normal2Alt: Sometimes, I think about returning to nature for a while, to escape from all of this chaos.
Normal3: Deals so good I'll [$$!$] myself! ...Sorry, I may have just had a minor stroke!
Normal3Alt: I've been thinking more about the future lately. I can't say I'm not worried, but I'll be trying my best to make it better.
Normal4: Did anyone ever tell you that large assets cause back pain? Well, they were right.
Normal4Alt: Do you have any idea how much extra money I make so {0} can afford her super fancy hair products? The back pain is worth it.
Normal4Alt: Do you have any idea how much extra money I make so {0} can afford her super-fancy hair products? Heh, the back pain is worth it.
Archmage: "{0} can share a drink with me any time! ...Or maybe not, I'm not sure his old heart could take it."
BrimstoneWitch: The abuse {0} went through is something I can hardly comprehend. I'd offer her a drink, but I don't think she'd enjoy it.
BrimstoneWitch: The abuse {0} endured is something I can scarcely comprehend. I'd offer her a drink, but I don't think she'd enjoy it.
Tavernkeep1: My booze will always be better than {0}'s, and nobody can convince me otherwise.
Tavernkeep2: Tell {0} to stop calling me. He's not wanted.
Tavernkeep3: I've had to tell baldie where my eyes are so many times that I've lost count.
@@ -392,21 +516,24 @@ FAP: {
Night3: You lost or something? I don't mind company, but I'd rather be left alone at night.
Night3Alt: I do love gazing at the stars. You could join me, if you like.
Night4: Are you sure you're 21? ...Alright, fine, but don't tell anyone I sold you these.
NightStylist: I should watch some movies with {0} tonight. You could come too, but only if you bring snacks for us.
NightStylist: I should watch some movies with {0} tonight. You could come too, but only if you bring snacks.
Party: You'll always find me at parties where booze is involved... well, you'll always find BOOZE where I'M involved!
AcidRain: I'm melting! Put a stop to this inclement weather this instant before it ruins my hair!
Martians: You should probably deal with those ayy lmaos before anything else, but whatever.
CryogenDefeated: God I can't wait to smash some ice again! ...For drinks, of course.
PartyAlt: Y'know... this is fun and all, but I can't wait for the festivities to be over.
AcidRain: I'm melting! Put a stop to this inclement weather before it ruins my hair!
Martians: You should probably deal with those 'ayy lmaos' before doing anything else, but whatever.
CryogenDefeated: God, I can't wait to smash some ice again! ...For drinks, of course.
LeviathanDefeated: How could you murder such a beautiful creature!? ...The blue one, not the obese cucumber.
MoonLordDefeated: Ever wondered why the Moon Lord needed so many tentacles? Uh... on second thought, I won't answer that.
MoonLordDefeated: Ever wondered why the Moon Lord needed so many tentacles? Uhm... on second thought, I won't answer that.
PolterghastDefeated: I saw a ghost down by the old train tracks back at my homeland once, flailing wildly at the lily pads... frightening times those were.
DoGDefeated: I hear it's amazing when the famous Devourer of Gods out in flap-jaw space, with the tuning fork, does a raw blink on Hara-kiri rock. I need scissors! 61!
HasChibii: The hell is that? Looks like something I'd carry around if I was 5 years old.
HasAnahitaTrans: Nice scales... is it hot in here or is it just me?
HasVodka: Do you like my vodka? I created it by mixing fairy dust, crystallized cave sweat and other magical crap.
HasChibiiAlt: I won't judge you for having that creature in tow... but keep it the hell away from me.
HasAnahitaTrans: Nice scales... Is it hot in here, or is it just me?
HasVodka: Do you like my vodka? I created it by mixing fairy dust, crystallized cave sweat, and other magical crap.
HasAlicorn1: So... you found my special bottle. Hope you enjoy it, I know I will.
HasAlicorn2: Be sure to dismount me once in a while, I get tired. And besides, I can't rip you off-I mean offer you excellent deals you won't find anywhere else if you're riding me 24/7.
HasAlicorn2: Be sure to dismount me once in a while, I get tired. And besides, I can't rip you off-I mean, offer you excellent deals you won't find anywhere else, if you're riding me 24/7.
HasAlicorn3: Before you ask, no, I do NOT have a heart on my butt while in human form. Don't question my transformation preferences!
NewOutfit: It's so refreshing to finally wear something else. I still love my dress, of course, but it's not exactly ideal for exercising.
}
// Death Count stuffs
@@ -423,25 +550,25 @@ FAP: {
TownNPCMood: {
Content: It's 5 o'clock somewhere.
NoHome: I need a place to crash! My drinks need to be properly cooled before they can be served!
NoHome: I need a place to crash! My drinks MUST be properly cooled before they can be served!
LoveSpace: Finally, some peace and quiet. Large quantities of people tend to piss me off.
FarFromHome: I'm used to running away from home, but this is a little ridiculous.
DislikeCrowded: If one more person tells me 'it's happy hour somewhere' to try and get a discount, I'm going to snap!
FarFromHome: Don't get me wrong, I'm used to running away from home, but this is a little ridiculous.
DislikeCrowded: If one more person tells me 'it's happy hour somewhere', I'm going to snap!
HateCrowded: No amount of alcohol can drown out the noise these people make!
LoveBiome: Other unicorns? Never thought I'd see the day! This place is incredible!
LikeBiome: A good breeze to cool some heads, that's the way to deal with customers who've had a few too many drinks!
LoveBiome: Other unicorns? I never thought I'd see the day... this place is incredible!
LikeBiome: Ah, a soothing breeze and a gorgeous view; a great way to calm some of my more 'unpleasant' patrons.
DislikeBiome: This dry air and heat isn't good for my hair, or my drinks.
HateBiome: You think I can fix this mess with a magical friendship rainbow? That's not how it works, dumbass! Get me out of here already!
HateBiome: You think I can fix this place with a magical friendship rainbow? That's not how it works, so get me out of here already!
LoveNPC_Stylist: "{NPCName} works wonders for my hair... among other things, hehe."
LoveNPC_BestiaryGirl: "{NPCName} is so fluffy and squishy! She also says my alicorn form is 'mega rad'."
LikeNPC_Truffle: "{NPCName} makes me so hungry... I wonder how great of a trip he'd give..."
LikeNPC_DyeTrader: I tried inviting {NPCName} over for drinks a while back, but he didn't seem interested... oh well, his loss.
LikeNPC_PartyGirl: "{NPCName} would make for a great bartender some day. She really knows how to liven the mood!"
DislikeNPC_DD2Bartender: "{NPCName} is so bald."
DislikeNPC_DD2Bartender: "{NPCName} is so bald. The sheen reflecting off his dome could legit blind someone, like, oh my god."
DislikeNPC_TaxCollector: "{NPCName} had best keep his distance... he wouldn't want to wake up one morning with a pipe bomb in his mailbox."
HateNPC_GoblinTinkerer: "{NPCName} was so terrible that I had to FORCE him to have a better reforge system. Why would you house me next to him? Do you enjoy watching me relive the stress he gave me!?"
HateNPC_Angler: "{NPCName} never stops blabbering about his inane fishing quests. Get me away from him before I stomp him into the ground!"
LikeNPC_Princess: You think I'd dislike {NPCName} because we're too different? Quite the contrary, there's a lot we like to talk about, over non-alcoholic drinks of course.
Princess_LovesNPC: "{NPCName} has really interesting stories to tell, I've learned a lot from her already!"
HateNPC_GoblinTinkerer: "{NPCName} was so terrible that I had to FORCE him to stop ripping off his customers... why would you house me next to him!?"
HateNPC_Angler: "{NPCName} never stops blabbering about his inane fishing quests. Get me away from him before I punt him into the sulphurous sea!"
LikeNPC_Princess: You think I'd dislike {NPCName} because we're too different? Quite the contrary, there's a lot we like to talk about, over non-alcoholic drinks, of course.
Princess_LovesNPC: "{NPCName} has some fascinating stories to tell, I've learned quite a lot from her already."
HateNPC: I hate {NPCName}.
DislikeNPC: I dislike {NPCName}.
LikeNPC: I like {NPCName}.
@@ -449,7 +576,7 @@ FAP: {
}
}
SEAHOE: {
SeaKing: {
DisplayName: Sea King
Census.SpawnCondition: Defeat a Giant Clam after defeating the Desert Scourge
Name.Amidias: Amidias
@@ -533,126 +660,3 @@ SEAHOE: {
Princess_LovesNPC: "{NPCName} always smiles when I'm nearby, I like being around him just for that!"
}
}
THIEF: {
DisplayName: Bandit
Census.SpawnCondition: Have a {$ItemName.PlatinumCoin} [i:PlatinumCoin] in your inventory after defeating Skeletron
Name: {
Laura: Laura
Mie: Mie
Bonnie: Bonnie
Sarah: Sarah
Diane: Diane
Kate: Kate
Penelope: Penelope
Marisa: Marisa
Maribel: Maribel
Valerie: Valerie
Jessica: Jessica
Rowan: Rowan
Jessie: Jessie
Jade: Jade
Hearn: Hearn
Amber: Amber
Anne: Anne
Indiana: Indiana
}
Chat: {
BloodMoon1: Oy, watch where you're going or I might just use you for dart practice.
BloodMoon2: Bet you'd look good as a pincushion, amiright?
BloodMoon3: Zombies don't dodge very well. Maybe you'll do a bit better.
BloodMoon4: Hey, careful over there. I've rigged the place. One wrong step and you're going to get a knife in your forehead.
Normal1: Anything is a weapon if you throw it hard enough.
Normal2: That's your chucking arm? You need to work out more.
Normal3: Listen here. It's all in the wrist, the wrist! Oh, forget it.
Normal4: Eh you know how it goes; steal from the rich, give to the poor, but I do take a cut of the profit.
Normal5: Snakes! Why does it always have to be snakes!
Normal6: It's super nice you know, to just have everything you want. Some people never got that luxury.
Normal7: It's not stealing! I'm just borrowing it until I die!
Night1: Hm, the stars are too bright tonight. Makes sneaking around a little more difficult.
Night2: You think those stars that fall occasionally would make good throwing weapons?
BrimstoneWitch: Hey, hey, has {0} seriously moved in here with us? Why???
DrunkPrincess: I learned never to steal {0}'s drinks. She doesn't appreciate me right now, so I'll go back to hiding.
Merchant: Don't tell {0}, but I took some of his stuff and replaced it with Angel Statues.
NurseArmsDealer: Don't tell {0} that I was responsible for {1}'s injuries.
NamedLaura: The nice thing about maps is I can track anything that has fallen.
NamedPenelope: Imagine how fast you could throw if you just had more hands.
NamedValerie: I also take food for currency.
NamedRowan: Usually I only think of animals as food or target practice, but dragons are an exception.
Jungle: I'd rather not be here. This place has bad vibes, y'know? It brings back some unpleasant memories.
Party: Where is my party hat? Well, I stole it of course.
Hardmode1: All sorts of new weapons to be found and looted. Get to that, and I'll share some of my collection too!
Hardmode2: There's so much scrap around this land with valuable parts to them. Makes you wonder who could afford to leave em all around.
Hardmode3: Crypts, tombs, dungeons, those're all just treasure troves to me. The dead are dead, they've got nothing to do with it.
MoonLordDefeated1: If you find anything cool, make sure to drop by and show it to me, I promise I'll keep my hands off it.
MoonLordDefeated2: So many new things to steal, I can't think of where to start!
MoonLordDefeated3: If I end up angering some deities or whatever, would you mind taking the blame for me?
HasBoneGlove: Wouldn't be the first time I used remains as weapons.
HasValediction: Oh man, did you rip that off a shark!? Now that's a weapon!
}
RefundButton: Refund
Refund1: Want in on a little secret? Since {0} always gets so much cash from you, I've been stealing some of it as we go. I need you to keep quiet about it, so here.
Refund2: Hey, if government officials can get tax, why can't I? The heck do you mean that these two things are nothing alike?
NoRefund: Sorry, I got nothing. Perhaps you could reforge something and come back later...
TownNPCMood: {
Content: It's been going well!
NoHome: You have a place to bunk? Sleeping on the ground makes me stiff and sore.
LoveSpace: Less people makes getting away with certain things easier.
FarFromHome: I need to get back to my secret cache! What if someone got their hands on it while I was away!?
DislikeCrowded: I don't like this, too many possible eyewitnesses.
HateCrowded: Being around this many people makes me think I'M going to be robbed.
LikeBiome: I know that a lot of wealthy traders come through the desert at times. Makes it a great spot to nick their goods.
DislikeBiome: Too stifling, too humid. I get sluggish in these conditions, no good.
HateBiome: No one lives here, and why would they?! This place is a dump!
LikeNPC: "{NPCName} doesn't only keep spiky balls in his pockets, he keeps a ton of cash! He's too absentminded to notice I'm stealing from him too! I like that a lot!"
DislikeNPC: What a goody two shoes, {NPCName} is! I dislike her out of principle! …And because she has almost no material goods.
LikeNPC_Princess: I couldn't bear to steal anything from {NPCName}, she's so cute!
Princess_LovesNPC: "{NPCName} gifts me with nice exact replicas of other's things, I wonder how they do it!"
}
}
WITCH: {
DisplayName: Brimstone Witch
Census.SpawnCondition: Defeat Supreme Witch, Calamitas
Name.Calamitas: Calamitas
Chat: {
EasterEgg: Mrrp is cringe.
Homeless1: I'm considering moving back to that old cave of mine.
Homeless2: I certainly can't return to Yharim's old dwellings now, have you got any places to stay?
Normal1: I can't pay rent, but if you've got any dead relative you want me to try and... what? You don't?
Normal2: One of these days, I was thinking of starting a garden with the flowers from the old capitol of hell. I love the smell of brimstone in the morning.
Normal3: I think I've settled comfortably, thank you very much.
Normal4: Many seasons have gone by since I first met with the Tyrant, and only now did I break free. I wish I'd been stronger...
Normal5: If you've got any curses you want dispelled... well I'm not your person.
BloodMoon1: Such an unnatural shade of red. Nothing like my brimstone flames.
BloodMoon2: I can't work with nights like these. The stars seem to have shrunk away in fear.
Night1: These undead are horrific, I can't stand to look at them. How could anyone be satisfied with such amateur work?
Night2: I don't think it's a stretch to say that astrology is utter nonsense... but it was a hobby of mine once.
DrunkPrincess: I wonder if {0} ever feels cold given how revealing her dress is. Perhaps she should cover up a bit more.
SeaKing: I cannot understand the Sea King. He does not seem to want me dead. That amount of compassion I just can't understand.
Party: If another person asks me if I can dance or not, I will light their hat on fire.
}
EnchantButton: Enchant
TownNPCMood: {
Content: I can't complain, really.
NoHome: Anywhere would be better than a cave with no bed or lighting.
LoveSpace: The quieter, the better. This is good.
FarFromHome: After being used to having people around for a bit, I miss it again.
DislikeCrowded: I really don't like how familiar some of these people are getting with me.
HateCrowded: I'm getting a headache from the pressure of having so many people around.
LikeBiome: I've never had the chance to live somewhere like this before. The trees and the songbirds… I quite like it.
DislikeBiome: Is this a sick joke? I can't bear to be here any longer, I've already tried to atone for my sins.
HateBiome: The spirits are unrestful here. It's really not a good feeling.
LikeNPC: "{NPCName} is someone who's had a terrible experience being cursed. He's put up with it quite well all that time, it's quite impressive honestly."
DislikeNPC: Such a racket! All {NPCName} does is make noise, day in and day out! I can't stand her!
LikeNPC_Princess: What a strangely pleasant kid {NPCName} is to be around.
Princess_LovesNPC: "{NPCName} is always lonely, it's why I want to hang out with her, no one should be left alone like that!"
}
}
@@ -6,6 +6,7 @@ AcidicSaxMist.DisplayName: Acid Mist
AetherBeam.DisplayName: Aether Beam
AnahitasArpeggioNote.DisplayName: Anahita's Song
Ancient2.DisplayName: Ancient Dust
ApoctosisBlast.DisplayName: Apoctosis Blast
ApotheosisEnergy.DisplayName: Apotheosis Energy
ApotheosisWorm.DisplayName: The Devourer of Gods
AquamarineBolt.DisplayName: Aqua Bolt
@@ -110,7 +111,6 @@ IonBlast.DisplayName: Ion Blast
KeelhaulBubble.DisplayName: Keelhaul Bubble
KeelhaulGeyserBottom.DisplayName: Keelhaul Geyser
KeelhaulGeyserTop.DisplayName: Keelhaul Geyser
LazharSolarBeam.DisplayName: Concentrated Solar Beam
LightBall.DisplayName: Light Ball
LightBallExplosion.DisplayName: Light Explosion
LightBead.DisplayName: Light Bead
@@ -14,6 +14,9 @@ GaussFlux.DisplayName: Gauss Flux
GaussPistolShot.DisplayName: Gauss Shot
GaussRifleBlast.DisplayName: Gauss Blast
GaussRifleExplosion.DisplayName: Gauss Explosion
ImmolationArrow.DisplayName: Immolation Arrow
ImmolationBurst.DisplayName: Immolation Burst
ImmolationSpray.DisplayName: Immolation Spray
LaserRifleShot.DisplayName: Laser Rifle
MassivePlasmaExplosion.DisplayName: Plasma Explosion
MountedScannerLaser.DisplayName: Deathray
@@ -28,6 +31,8 @@ PulsePistolShot.DisplayName: Pulse Bolt
PulseRifleShot.DisplayName: Pulse Bolt
PulseTurret.DisplayName: Pulse Turret
PulseTurretShot.DisplayName: Pulse Bolt
ScattershotLance.DisplayName: Laser Lance
ScattershotLaser.DisplayName: Scattershot Laser
SnakeEyesSummon.DisplayName: Snake Eyes
SnakeEyesProjectile.DisplayName: Inescapable Bolt
StarSwallowerAcid.DisplayName: Acid
@@ -224,6 +224,7 @@ SuperradiantSawLingering.DisplayName: Ultraradiant Saw
TauCannonBeam.DisplayName: Tau Cannon Beam
TauCannonBolt.DisplayName: Tau Cannon Bolt
TauCannonPortal.DisplayName: Tau Cannon Portal
TaserExplosion.DisplayName: Taser Explosion
TelluricGlareArrow.DisplayName: Radiant Arrow
TheMaelstromExplosion.DisplayName: Reaper Explosion
TheMaelstromShark.DisplayName: Reaper Shark
+2 -2
View File
@@ -36,7 +36,7 @@ Revengeance: Revengeance
RevMaster: Rev+Master
RevLegend: Rev+Legend
RevengeanceEnabled: Revengeance Mode is enabled
RevengeanceShortInfo: "[c/F54254:The intended Calamity experience!]"
RevengeanceShortInfo: "[c/F54254:The intended Calamity experience! Can only be enabled in Expert Mode!]"
RevengeanceExpandedInfo:
'''
[c/B55362:Enables the] [c/85FFE9:Adrenaline] [c/B55362:mechanic. You gain Adrenaline while fighting bosses. Getting hit drops Adrenaline back to 0]
@@ -53,7 +53,7 @@ Death: Death
DeathMaster: Death+Master
DeathLegend: Death+Legend
DeathEnabled: Death Mode is enabled
DeathShortInfo: "[c/C82DF7:A tougher challenge for the more experienced, or for those that want a step up from Revengeance Mode]"
DeathShortInfo: "[c/C82DF7:A far more difficult challenge than Revengeance Mode! Can only be enabled in Master Mode!]"
DeathExpandedInfo:
'''
[c/B834E0:All foes will pose a much larger threat with highly aggressive AIs and increased damage]
@@ -10,11 +10,7 @@ FinWings:
'''
FlameWings: Multiplies all heat debuff damage by 1.25x
FrozenWings: Multiplies all cold debuff damage by 1.25x
HarpyWings:
'''
10% increased movement speed
With Harpy Ring or Angel Treads equipped, most attacks sometimes launch feathers
'''
HarpyWings: 10% increased movement speed
LeafWings: +10 defense and permanent Dryad's Blessing
TatteredFairyWings: You leave a trail of fairy dust as you fly
WingsNebula: Increases the pickup range of Nebula armor's nebula boosters
@@ -429,8 +429,9 @@ SteampunkerChat: {
StylistChat: {
Hardmode: Please don't catch space lice. Or {0} lice. Or just lice in general.
DrunkPrincess1: "{0} is always trying to brighten my mood... even if, deep down, I know she's sad..."
DrunkPrincess1: "{0} is always trying to brighten my mood... even though, deep down, I know she's sad..."
DrunkPrincess2: Sometimes I catch {0} sneaking up from behind me.
DrunkPrincess3: "{0} has been smiling more often lately, even without alcohol. I think I can thank you for that, at least somewhat."
ProfanedSoulCrystal1: They look so cute and yet, I can feel their immense power just by being near them. What are you?
ProfanedSoulCrystal2: I hate to break it to you, but you don't have hair to cut or style, hun.
ProfanedDonuts: Aww, they're so cute, do they have names?
+1 -1
View File
@@ -1143,7 +1143,7 @@ namespace CalamityMod
Mod dialogueMod = ExternalMods.dialogueTweak;
if (dialogueMod != null)
{
dialogueMod.Call("ReplaceShopButtonIcon", NPCType<WITCH>(), "Head");
dialogueMod.Call("ReplaceShopButtonIcon", NPCType<BrimstoneWitch>(), "Head");
}
}
#endregion
+1 -1
View File
@@ -431,7 +431,7 @@ namespace CalamityMod.NPCs.AstrumAureus
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<FAP>() }, DownedBossSystem.downedAstrumAureus);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<Cirrus>() }, DownedBossSystem.downedAstrumAureus);
// If Astrum Aureus has not yet been killed, notify players of new Astral enemy drops
if (!DownedBossSystem.downedAstrumAureus)
+1 -1
View File
@@ -249,7 +249,7 @@ namespace CalamityMod.NPCs.CalClone
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<THIEF>() }, DownedBossSystem.downedCalamitasClone);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<Bandit>() }, DownedBossSystem.downedCalamitasClone);
// Mark the Calamitas Clone as dead
DownedBossSystem.downedCalamitasClone = true;
+107 -7
View File
@@ -338,6 +338,15 @@ namespace CalamityMod.NPCs
public int veriumDoomTimer = 0;
public int veriumDoomStacks = 0;
public bool veriumDoomMarked = false;
// Laser Burn Type (1 = applied damage added and dealt in a single hit, 2 = flat damage + extra flat damage from stacks, 0 = innactive)
public int laserBurnType = 0;
public int laserBurnDamage = 0; // Only used if laser burn type is 1
public const int laserBurnTime = 300;
public int laserBurnTimer = 0;
public int laserBurnStacks = 0;
public bool laserBurnMarked = false;
/// <summary>
/// Tracks the strength of Calamity's cursor effect; increments by 2 on every frame.<br/>
/// If this value reaches <see cref="cursorFocusMax"/>, the enemy is afflicted with True Vulnerability Hex.
@@ -2872,9 +2881,9 @@ namespace CalamityMod.NPCs
npc.dontTakeDamage = true;
break;
// Make Fishron and Anahita Bubbles immune to damage in Rev+ Master Mode
// Make Fishron and Anahita Bubbles immune to damage in Death Mode
case NPCID.DetonatingBubble:
npc.dontTakeDamage = Main.masterMode && CalamityWorld.revenge;
npc.dontTakeDamage = CalamityWorld.death;
break;
default:
@@ -3845,6 +3854,11 @@ namespace CalamityMod.NPCs
return calcDR;
}
public bool IsArmored()
{
return unbreakableDR && DR > 0.9f;
}
#endregion
#region Boss Head Slot
@@ -3900,6 +3914,9 @@ namespace CalamityMod.NPCs
{
if (!Main.LocalPlayer.dead && Main.LocalPlayer.active && Vector2.Distance(Main.LocalPlayer.Center, npc.Center) < BossZenDistance)
Main.LocalPlayer.AddBuff(BuffType<BossEffects>(), 2);
if (!Main.LocalPlayer.dead && Main.LocalPlayer.active && npc.type == NPCType<RavagerBody>() && Vector2.Distance(Main.LocalPlayer.Center, npc.Center) < BossZenDistance)
Main.LocalPlayer.AddBuff(BuffType<WeakPetrification>(), 2);
}
if (npc.type != NPCType<Draedon>())
@@ -4040,7 +4057,7 @@ namespace CalamityMod.NPCs
return QueenBeeAI.BuffedQueenBeeAI(npc, Mod);
}
if (Main.masterMode && CalamityWorld.revenge)
if (CalamityWorld.death)
{
if (npc.type == NPCID.DetonatingBubble)
return DukeFishronAI.BuffedDetonatingBubbleAI(npc, Mod);
@@ -5776,6 +5793,9 @@ namespace CalamityMod.NPCs
if (veriumDoomTimer > 0)
veriumDoomTimer--;
if (laserBurnTimer > 0)
laserBurnTimer--;
if (veriumDoomTimer == 0 && veriumDoomMarked)
{
for (int d = 0; d < 14 + veriumDoomStacks; d++)
@@ -5809,6 +5829,41 @@ namespace CalamityMod.NPCs
}
}
if (laserBurnTimer <= 0 && laserBurnMarked && laserBurnType > 0)
{
if (laserBurnType == 1) // Applied damage
Projectile.NewProjectile(npc.GetSource_FromThis(), npc.Center, Vector2.Zero, ProjectileType<DirectStrike>(), laserBurnDamage, 0, Main.myPlayer, npc.whoAmI);
if (laserBurnType == 2) // Flat damage + stacks
Projectile.NewProjectile(npc.GetSource_FromThis(), npc.Center, Vector2.Zero, ProjectileType<DirectStrike>(), 70 + (20 * laserBurnStacks), 0, Main.myPlayer, npc.whoAmI);
for (int d = 0; d < (int)(6 + laserBurnStacks * 0.35f); d++)
{
float partScale = Main.rand.NextFloat(0.7f, 1f);
Vector2 partVel = (new Vector2(15, 15) * (laserBurnStacks * 0.025f)).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f);
for (int i = 0; i < 2; i++)
{
Particle sparks = new SparkParticle(npc.Center, partVel, false, 30, i == 0 ? partScale : partScale * 0.4f, i == 0 ? Color.Red : Color.White);
GeneralParticleHandler.SpawnParticle(sparks);
}
Dust dust = Dust.NewDustPerfect(npc.Center, 278);
dust.velocity = (new Vector2(10, 10) * (laserBurnStacks * 0.05f)).RotatedByRandom(100) * Main.rand.NextFloat(0.2f, 1f) + new Vector2(0, -1);
dust.scale = Main.rand.NextFloat(0.8f, 1.1f);
dust.noGravity = false;
dust.color = Color.Red;
}
SoundEngine.PlaySound(new("CalamityMod/Sounds/Item/LaserBurn") { Volume = 0.6f, PitchVariance = 0.15f }, npc.Center);
laserBurnMarked = false;
laserBurnStacks = 0;
laserBurnTimer = 0;
laserBurnDamage = 0;
}
// Queen Bee is completely immune to having her movement impaired if not in a high difficulty mode.
if (npc.type == NPCID.QueenBee && !CalamityWorld.revenge && !BossRushEvent.BossRushActive)
return;
// Pearl Aura shard spawning
// Slowing is handled in the general slowing code below
if (pearlAura > 0)
@@ -6261,6 +6316,11 @@ namespace CalamityMod.NPCs
if (modPlayer.camper && !player.StandingStill())
modifiers.SourceDamage *= 0.1f;
if (IsArmored()) //Hide combat text so we can draw our own for armored NPCs
{
modifiers.HideCombatText();
}
// True melee resists
if (DesertScourgeIDList.Includes(npc.type) || EaterOfWorldsIDList.Includes(npc.type) || npc.type == NPCID.Creeper ||
PerforatorWormIDList.Includes(npc.type) || AquaticScourgeIDList.Includes(npc.type) || DestroyerIDList.Includes(npc.type) ||
@@ -6286,6 +6346,11 @@ namespace CalamityMod.NPCs
MakeTownNPCsTakeMoreDamage(npc, projectile, Mod, ref modifiers);
if (IsArmored()) //Hide combat text so we can draw our own for armored NPCs
{
modifiers.HideCombatText();
}
// Block natural falling stars from killing boss spawners randomly
if ((projectile.type == ProjectileID.FallingStar && projectile.damage >= 1000) && (npc.type == NPCType<PerforatorCyst>() || npc.type == NPCType<HiveTumor>() || npc.type == NPCType<LeviathanStart>()))
modifiers.SourceDamage *= 0f;
@@ -6479,7 +6544,25 @@ namespace CalamityMod.NPCs
if ((projectile.penetrate > 1 || projectile.penetrate == -1) && !PierceResistExceptionList.Includes(projectile.type) && !projectile.CountsAsClass<SummonDamageClass>() && projectile.aiStyle != ProjAIStyleID.Flail && projectile.aiStyle != ProjAIStyleID.MechanicalPiranha && projectile.aiStyle != ProjAIStyleID.Yoyo)
projectile.Calamity().timesPierced++;
}
#endregion
#region OnHitBy overrides
public override void OnHitByProjectile(NPC npc, Projectile projectile, NPC.HitInfo hit, int damagedone)
{
if (IsArmored())
{
CombatText.NewText(npc.Hitbox, Color.Gray, damagedone, hit.Crit);
}
}
public override void OnHitByItem(NPC npc, Player player, Item item, NPC.HitInfo hit, int damagedone)
{
if (IsArmored())
{
CombatText.NewText(npc.Hitbox, Color.Gray, damagedone, hit.Crit);
}
}
#endregion
#region Whip Tag
// Make whip tags multiplicative, by effectively reversing the process done to it
private void EditWhipTagDamage(Projectile proj, NPC npc, ref NPC.HitModifiers modifiers)
{
@@ -7301,6 +7384,23 @@ namespace CalamityMod.NPCs
}
}
if (laserBurnTimer > 0)
{
int particleChance = Math.Max(3, 10 - (laserBurnStacks / 3));
if (laserBurnTimer % particleChance == 0)
{
Vector2 randPosition = new Vector2(npc.position.X + Main.rand.Next(0, npc.width), npc.position.Y + Main.rand.Next(0, npc.height));
Particle markedParticle = new GlowOrbParticle(randPosition, Vector2.Zero, false, Main.rand.Next(7, 9 + 1), Main.rand.NextFloat(0.3f, 0.45f) + (laserBurnStacks * 0.045f), Color.Red);
GeneralParticleHandler.SpawnParticle(markedParticle);
}
if (laserBurnType == 0)
{
Main.NewText("No Burn Type Set", Color.OrangeRed);
laserBurnMarked = false;
laserBurnTimer = 0;
}
}
if (voidfrost > 0)
Voidfrost.DrawEffects(npc, ref drawColor);
@@ -7402,7 +7502,7 @@ namespace CalamityMod.NPCs
if (Main.LocalPlayer.Calamity().trippy || (npc.type == NPCID.KingSlime && CalamityWorld.LegendaryMode && CalamityWorld.revenge))
return new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, Main.DiscoR);
if (npc.type == NPCID.KingSlime && Main.masterMode && CalamityWorld.revenge)
if (npc.type == NPCID.KingSlime && CalamityWorld.death)
return NPC.AnyNPCs(NPCType<KingSlimeJewelSapphire>()) ? Color.Lerp(new Color(0, 0, 150, npc.alpha), new Color(125, 125, 255, npc.alpha), (float)Math.Sin(Main.GlobalTimeWrappedHourly) / 2f + 0.5f) : null;
if (npc.type == NPCID.QueenBee && Main.zenithWorld)
@@ -8384,7 +8484,7 @@ namespace CalamityMod.NPCs
// His afterimages I can't get to work, so fuck it
else if (npc.type == NPCID.SkeletronPrime || npc.type == NPCType<SkeletronPrime2>())
{
Texture2D npcTexture = (masterMode && revenge && npc.type == NPCID.SkeletronPrime) ? ExtraTextureRefs.ChadPrime.Value : TextureAssets.Npc[npc.type].Value;
Texture2D npcTexture = (death && npc.type == NPCID.SkeletronPrime) ? ExtraTextureRefs.ChadPrime.Value : TextureAssets.Npc[npc.type].Value;
int frameHeight = npcTexture.Height / Main.npcFrameCount[npc.type];
npc.frame.Y = (int)newAI[3];
@@ -8447,7 +8547,7 @@ namespace CalamityMod.NPCs
spriteBatch.Draw(npcTexture, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, npc.GetAlpha(drawColor), npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0f);
Color eyesColor = new Color(200, 200, 200, 0);
if (masterMode && revenge)
if (death)
{
int alpha = 192;
eyesColor = npc.type == NPCType<SkeletronPrime2>() ? new Color(150, 100, 255, alpha) : new Color(255, 255, 0, alpha);
@@ -8540,7 +8640,7 @@ namespace CalamityMod.NPCs
public override bool? DrawHealthBar(NPC npc, byte hbPosition, ref float scale, ref Vector2 position)
{
if ((CalamityWorld.revenge && Main.masterMode) || BossRushEvent.BossRushActive)
if (CalamityWorld.death || BossRushEvent.BossRushActive)
{
if (npc.type == NPCID.Creeper)
{
+12 -11
View File
@@ -505,9 +505,10 @@ namespace CalamityMod.NPCs
break;
// Fire Imp
// Ashen Stalactite @ 10% Normal, 16.67% Expert+
// Ashen Stalactite @ 4%, 14.28% after defeating EoW/BoC
case NPCID.FireImp:
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<AshenStalactite>(), 10, 6));
npcLoot.AddIf((info) => !NPC.downedBoss2, ModContent.ItemType<AshenStalactite>(), 25);
npcLoot.AddIf((info) => NPC.downedBoss2, ModContent.ItemType<AshenStalactite>(), 7);
break;
// Demon, Voodoo Demon
@@ -1929,7 +1930,7 @@ DukeEditFailed:
case NPCID.TheDestroyer:
SetNewShopVariable(new int[] { NPCID.Demolitionist, NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<Archmage>(), ModContent.NPCType<Cirrus>(), ModContent.NPCType<Bandit>() }, NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
if (!NPC.downedMechBoss1 && CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
@@ -1941,7 +1942,7 @@ DukeEditFailed:
if (lastTwinStanding)
{
SetNewShopVariable(new int[] { NPCID.Demolitionist, NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, !NPC.downedMechBoss1 || NPC.downedMechBoss2 || !NPC.downedMechBoss3);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<Archmage>(), ModContent.NPCType<Cirrus>(), ModContent.NPCType<Bandit>() }, !NPC.downedMechBoss1 || NPC.downedMechBoss2 || !NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
if (!NPC.downedMechBoss2 && CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
@@ -1951,7 +1952,7 @@ DukeEditFailed:
case NPCID.SkeletronPrime:
SetNewShopVariable(new int[] { NPCID.Demolitionist, NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, !NPC.downedMechBoss1 || !NPC.downedMechBoss2 || NPC.downedMechBoss3);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<Archmage>(), ModContent.NPCType<Cirrus>(), ModContent.NPCType<Bandit>() }, !NPC.downedMechBoss1 || !NPC.downedMechBoss2 || NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
if (!NPC.downedMechBoss3 && CalamityServerConfig.Instance.EarlyHardmodeProgressionRework && !BossRushEvent.BossRushActive)
@@ -1959,7 +1960,7 @@ DukeEditFailed:
break;
case NPCID.Plantera:
SetNewShopVariable(new int[] { NPCID.WitchDoctor, NPCID.Truffle, NPCID.BestiaryGirl, ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, NPC.downedPlantBoss);
SetNewShopVariable(new int[] { NPCID.WitchDoctor, NPCID.Truffle, NPCID.BestiaryGirl, ModContent.NPCType<Cirrus>(), ModContent.NPCType<Bandit>() }, NPC.downedPlantBoss);
SetNewBossJustDowned(npc);
// Spawn Perennial Ore if Plantera has never been killed
@@ -1983,19 +1984,19 @@ DukeEditFailed:
break;
case NPCID.Everscream:
SetNewShopVariable(new int[] { ModContent.NPCType<DILF>() }, NPC.downedChristmasTree || !NPC.downedChristmasSantank || !NPC.downedChristmasIceQueen);
SetNewShopVariable(new int[] { ModContent.NPCType<Archmage>() }, NPC.downedChristmasTree || !NPC.downedChristmasSantank || !NPC.downedChristmasIceQueen);
break;
case NPCID.SantaNK1:
SetNewShopVariable(new int[] { ModContent.NPCType<DILF>() }, !NPC.downedChristmasTree || NPC.downedChristmasSantank || !NPC.downedChristmasIceQueen);
SetNewShopVariable(new int[] { ModContent.NPCType<Archmage>() }, !NPC.downedChristmasTree || NPC.downedChristmasSantank || !NPC.downedChristmasIceQueen);
break;
case NPCID.IceQueen:
SetNewShopVariable(new int[] { ModContent.NPCType<DILF>() }, !NPC.downedChristmasTree || !NPC.downedChristmasSantank || NPC.downedChristmasIceQueen);
SetNewShopVariable(new int[] { ModContent.NPCType<Archmage>() }, !NPC.downedChristmasTree || !NPC.downedChristmasSantank || NPC.downedChristmasIceQueen);
break;
case NPCID.Golem:
SetNewShopVariable(new int[] { NPCID.ArmsDealer, NPCID.Cyborg, NPCID.Steampunker, NPCID.Wizard, NPCID.WitchDoctor, NPCID.DD2Bartender, ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, NPC.downedGolemBoss);
SetNewShopVariable(new int[] { NPCID.ArmsDealer, NPCID.Cyborg, NPCID.Steampunker, NPCID.Wizard, NPCID.WitchDoctor, NPCID.DD2Bartender, ModContent.NPCType<Cirrus>(), ModContent.NPCType<Bandit>() }, NPC.downedGolemBoss);
SetNewBossJustDowned(npc);
// If Golem has never been killed, send a message about the Plague.
@@ -2030,7 +2031,7 @@ DukeEditFailed:
break;
case NPCID.MoonLordCore:
SetNewShopVariable(new int[] { NPCID.Princess, ModContent.NPCType<THIEF>() }, NPC.downedMoonlord);
SetNewShopVariable(new int[] { NPCID.Princess, ModContent.NPCType<Bandit>() }, NPC.downedMoonlord);
SetNewBossJustDowned(npc);
string key5 = "Mods.CalamityMod.Status.Progression.MoonBossText";
+37 -33
View File
@@ -682,11 +682,11 @@ namespace CalamityMod.NPCs
(NPCID.Cyborg,(Player player) => player.Calamity().newCyborgInventory, (Player player, bool enabled) =>{ player.Calamity().newCyborgInventory = enabled; }),
(NPCID.Princess, (Player player) => player.Calamity().newPrincessInventory,(Player player, bool enabled) =>{ player.Calamity().newPrincessInventory = enabled; }),
(NPCID.SkeletonMerchant, (Player player) => player.Calamity().newSkeletonMerchantInventory, (Player player, bool enabled) =>{ player.Calamity().newSkeletonMerchantInventory = enabled; }),
(NPCType<SEAHOE>(), (Player player) => player.Calamity().newAmidiasInventory,(Player player, bool enabled) =>{ player.Calamity().newAmidiasInventory = enabled; }),
(NPCType<THIEF>(), (Player player) => player.Calamity().newBanditInventory,(Player player, bool enabled) =>{ player.Calamity().newBanditInventory = enabled; }),
(NPCType<FAP>(), (Player player) => player.Calamity().newCirrusInventory,(Player player, bool enabled) =>{ player.Calamity().newCirrusInventory = enabled; }),
(NPCType<DILF>(), (Player player) => player.Calamity().newPermafrostInventory,(Player player, bool enabled) =>{ player.Calamity().newPermafrostInventory = enabled; }),
(NPCType<WITCH>(), (Player player) => player.Calamity().newCalamitasInventory,(Player player, bool enabled) =>{ player.Calamity().newCalamitasInventory = enabled; }) // lol
(NPCType<SeaKing>(), (Player player) => player.Calamity().newAmidiasInventory,(Player player, bool enabled) =>{ player.Calamity().newAmidiasInventory = enabled; }),
(NPCType<Bandit>(), (Player player) => player.Calamity().newBanditInventory,(Player player, bool enabled) =>{ player.Calamity().newBanditInventory = enabled; }),
(NPCType<Cirrus>(), (Player player) => player.Calamity().newCirrusInventory,(Player player, bool enabled) =>{ player.Calamity().newCirrusInventory = enabled; }),
(NPCType<Archmage>(), (Player player) => player.Calamity().newPermafrostInventory,(Player player, bool enabled) =>{ player.Calamity().newPermafrostInventory = enabled; }),
(NPCType<BrimstoneWitch>(), (Player player) => player.Calamity().newCalamitasInventory,(Player player, bool enabled) =>{ player.Calamity().newCalamitasInventory = enabled; }) // lol
};
public void TownNPCAlertSystem(NPC npc, Mod mod, SpriteBatch spriteBatch)
@@ -764,10 +764,10 @@ namespace CalamityMod.NPCs
#region NPC Chat
public override void GetChat(NPC npc, ref string chat)
{
int fapsol = NPC.FindFirstNPC(NPCType<FAP>());
int permadong = NPC.FindFirstNPC(NPCType<DILF>());
int seahorse = NPC.FindFirstNPC(NPCType<SEAHOE>());
int thief = NPC.FindFirstNPC(NPCType<THIEF>());
int cirrus = NPC.FindFirstNPC(NPCType<Cirrus>());
int permadong = NPC.FindFirstNPC(NPCType<Archmage>());
int seahorse = NPC.FindFirstNPC(NPCType<SeaKing>());
int thief = NPC.FindFirstNPC(NPCType<Bandit>());
int angelstatue = NPC.FindFirstNPC(NPCID.Merchant);
switch (npc.type)
@@ -820,8 +820,8 @@ namespace CalamityMod.NPCs
chat = CalamityUtils.GetTextValue("Vanilla.DryadChat.DarksunEclipse");
else if (Main.rand.NextBool(5) && Main.LocalPlayer.ZoneGlowshroom)
{
if (Main.rand.NextBool() && fapsol != -1)
chat = CalamityUtils.GetText("Vanilla.DryadChat.DrunkPrincessShroom").Format(Main.npc[fapsol].GivenName);
if (Main.rand.NextBool() && cirrus != -1)
chat = CalamityUtils.GetText("Vanilla.DryadChat.DrunkPrincessShroom").Format(Main.npc[cirrus].GivenName);
else
chat = CalamityUtils.GetTextValue("Vanilla.DryadChat.Mushroom");
}
@@ -863,8 +863,8 @@ namespace CalamityMod.NPCs
chat = CalamityUtils.GetTextValue("Vanilla.MechanicChat.Eclipse");
else if (Main.rand.NextBool(5) && AcidRainEvent.AcidRainEventIsOngoing)
chat = CalamityUtils.GetTextValue("Vanilla.MechanicChat.AcidRain");
else if (Main.rand.NextBool(5) && fapsol != -1)
chat = CalamityUtils.GetText("Vanilla.MechanicChat.DrunkPrincess").Format(Main.npc[fapsol].GivenName);
else if (Main.rand.NextBool(5) && cirrus != -1)
chat = CalamityUtils.GetText("Vanilla.MechanicChat.DrunkPrincess").Format(Main.npc[cirrus].GivenName);
break;
case NPCID.Merchant:
@@ -913,8 +913,8 @@ namespace CalamityMod.NPCs
case NPCID.PartyGirl:
if (Main.rand.NextBool(4) && Main.eclipse)
chat = CalamityUtils.GetTextValue("Vanilla.PartyGirlChat.Eclipse" + Main.rand.Next(1, 2 + 1));
else if (Main.rand.NextBool(10) && fapsol != -1)
chat = CalamityUtils.GetText("Vanilla.PartyGirlChat.DrunkPrincess").Format(Main.npc[fapsol].GivenName);
else if (Main.rand.NextBool(10) && cirrus != -1)
chat = CalamityUtils.GetText("Vanilla.PartyGirlChat.DrunkPrincess").Format(Main.npc[cirrus].GivenName);
break;
case NPCID.Pirate:
@@ -922,7 +922,7 @@ namespace CalamityMod.NPCs
chat = CalamityUtils.GetTextValue("Vanilla.PirateChat.PreLeviathan");
else if (Main.rand.NextBool(5) && DownedBossSystem.downedAquaticScourge)
chat = CalamityUtils.GetTextValue("Vanilla.PirateChat.WetScourgeDefeated");
else if (Main.rand.NextBool(5) && fapsol != -1)
else if (Main.rand.NextBool(5) && cirrus != -1)
chat = CalamityUtils.GetTextValue("Vanilla.PirateChat.DrunkPrincess");
else if (Main.rand.NextBool(5) && seahorse != -1)
chat = CalamityUtils.GetText("Vanilla.PirateChat.SeaKing").Format(Main.npc[seahorse].GivenName);
@@ -950,8 +950,12 @@ namespace CalamityMod.NPCs
string worldEvil = Language.GetTextValue("LegacyMisc." + (WorldGen.crimson ? 102 : 101));
if (Main.rand.NextBool(15) && Main.hardMode)
chat = CalamityUtils.GetText("Vanilla.StylistChat.Hardmode").Format(worldEvil);
if (Main.rand.NextBool(15) && fapsol != -1)
chat = CalamityUtils.GetText("Vanilla.StylistChat.DrunkPrincess" + (ChildSafety.Disabled ? Main.rand.Next(1, 2 + 1) : 1)).Format(Main.npc[fapsol].GivenName);
if (Main.rand.NextBool(15) && cirrus != -1)
{
int noChildSafetyCirrusLines = NPC.downedMoonlord ? Main.rand.Next(2, 3 + 1) : Main.rand.Next(1, 2 + 1);
int childSafetyCirrusLines = NPC.downedMoonlord ? 3 : 1;
chat = CalamityUtils.GetText("Vanilla.StylistChat.DrunkPrincess" + (ChildSafety.Disabled ? noChildSafetyCirrusLines : childSafetyCirrusLines)).Format(Main.npc[cirrus].GivenName);
}
if ((Main.rand.NextBool(npc.GivenName == "Amber" ? 10 : 15)) && Main.LocalPlayer.Calamity().pSoulArtifact)
{
if (Main.LocalPlayer.Calamity().profanedCrystalBuffs)
@@ -964,8 +968,8 @@ namespace CalamityMod.NPCs
case NPCID.DD2Bartender:
if (Main.rand.NextBool(5) && !Main.dayTime && Main.moonPhase == 0)
chat = CalamityUtils.GetTextValue("Vanilla.TavernkeepChat.FullMoon");
else if (Main.rand.NextBool(10) && fapsol != -1)
chat = CalamityUtils.GetText("Vanilla.TavernkeepChat.DrunkPrincess").Format(Main.npc[fapsol].GivenName);
else if (Main.rand.NextBool(10) && cirrus != -1)
chat = CalamityUtils.GetText("Vanilla.TavernkeepChat.DrunkPrincess").Format(Main.npc[cirrus].GivenName);
break;
case NPCID.TaxCollector:
@@ -995,13 +999,13 @@ namespace CalamityMod.NPCs
break;
case NPCID.TravellingMerchant:
if (Main.rand.NextBool(5) && fapsol != -1 && angelstatue != -1)
chat = CalamityUtils.GetText("Vanilla.TravellingMerchantChat.DrunkPrincessMerchant").Format(Main.npc[fapsol].GivenName, Main.npc[angelstatue].GivenName);
if (Main.rand.NextBool(5) && cirrus != -1 && angelstatue != -1)
chat = CalamityUtils.GetText("Vanilla.TravellingMerchantChat.DrunkPrincessMerchant").Format(Main.npc[cirrus].GivenName, Main.npc[angelstatue].GivenName);
break;
case NPCID.Truffle:
if (Main.rand.NextBool(4) && fapsol != -1)
chat = CalamityUtils.GetText("Vanilla.TruffleChat.DrunkPrincess").Format(Main.npc[fapsol].GivenName);
if (Main.rand.NextBool(4) && cirrus != -1)
chat = CalamityUtils.GetText("Vanilla.TruffleChat.DrunkPrincess").Format(Main.npc[cirrus].GivenName);
else if (Main.rand.NextBool(8))
chat = CalamityUtils.GetTextValue("Vanilla.TruffleChat.Normal");
break;
@@ -1116,7 +1120,7 @@ namespace CalamityMod.NPCs
.AddWithCustomValue(ItemID.WormholePotion, Item.buyPrice(silver: 5), Condition.HappyEnoughToSellPylons);
shop.Add(ItemID.Flare, hasFlareGunUpgrade)
.Add(ItemID.BlueFlare, hasFlareGunUpgrade)
.AddWithCustomValue(ItemID.AngelStatue, Item.buyPrice(gold: 5), Condition.NpcIsPresent(NPCType<THIEF>()))
.AddWithCustomValue(ItemID.AngelStatue, Item.buyPrice(gold: 5), Condition.NpcIsPresent(NPCType<Bandit>()))
.AddWithCustomValue(ItemID.Burger, Item.buyPrice(gold: 5), Condition.HappyEnoughToSellPylons, Condition.DownedSkeletron)
.AddWithCustomValue(ItemID.Hotdog, Item.buyPrice(gold: 5), Condition.HappyEnoughToSellPylons, Condition.DownedSkeletron)
.AddWithCustomValue(ItemID.CoffeeCup, Item.buyPrice(gold: 2), Condition.HappyEnoughToSellPylons);
@@ -1151,8 +1155,8 @@ namespace CalamityMod.NPCs
.Add(ItemType<AdrenalineHairDye>(), revengeance)
.Add(ItemType<RageHairDye>(), revengeance)
.AddWithCustomValue(ItemID.StylistKilLaKillScissorsIWish, Item.buyPrice(gold: 15))
.Add(ItemType<CirrusDress>(), Condition.NpcIsPresent(NPCType<FAP>()), drunk)
.AddWithCustomValue(ItemID.ChocolateChipCookie, Item.buyPrice(gold: 3), Condition.HappyEnoughToSellPylons, Condition.NpcIsPresent(NPCType<FAP>()));
.Add(ItemType<CirrusDress>(), Condition.NpcIsPresent(NPCType<Cirrus>()), drunk)
.AddWithCustomValue(ItemID.ChocolateChipCookie, Item.buyPrice(gold: 3), Condition.HappyEnoughToSellPylons, Condition.NpcIsPresent(NPCType<Cirrus>()));
}
if (type == NPCID.Cyborg)
@@ -1243,12 +1247,12 @@ namespace CalamityMod.NPCs
{
shop.AddWithCustomValue(ItemID.PrincessWeapon, Item.buyPrice(gold: 50))
.Add(ItemType<LanternCenter>())
.Add(ItemID.AppleJuice, Condition.NpcIsPresent(NPCType<FAP>()))
.Add(ItemID.FruitJuice, Condition.NpcIsPresent(NPCType<FAP>()))
.Add(ItemID.Lemonade, Condition.NpcIsPresent(NPCType<FAP>()))
.Add(ItemID.PrismaticPunch, Condition.NpcIsPresent(NPCType<FAP>()))
.Add(ItemID.SmoothieofDarkness, Condition.NpcIsPresent(NPCType<FAP>()))
.Add(ItemID.TropicalSmoothie, Condition.NpcIsPresent(NPCType<FAP>()));
.Add(ItemID.AppleJuice, Condition.NpcIsPresent(NPCType<Cirrus>()))
.Add(ItemID.FruitJuice, Condition.NpcIsPresent(NPCType<Cirrus>()))
.Add(ItemID.Lemonade, Condition.NpcIsPresent(NPCType<Cirrus>()))
.Add(ItemID.PrismaticPunch, Condition.NpcIsPresent(NPCType<Cirrus>()))
.Add(ItemID.SmoothieofDarkness, Condition.NpcIsPresent(NPCType<Cirrus>()))
.Add(ItemID.TropicalSmoothie, Condition.NpcIsPresent(NPCType<Cirrus>()));
}
if (type == NPCID.SkeletonMerchant)
+2 -2
View File
@@ -1450,9 +1450,9 @@ namespace CalamityMod.NPCs.Cryogen
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
// Spawn Permafrost if he isn't in the world
int permafrostNPC = NPC.FindFirstNPC(ModContent.NPCType<DILF>());
int permafrostNPC = NPC.FindFirstNPC(ModContent.NPCType<Archmage>());
if (permafrostNPC == -1 && !BossRushEvent.BossRushActive)
NPC.NewNPC(NPC.GetSource_Death(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<DILF>(), 0, 0f, 0f, 0f, 0f, 255);
NPC.NewNPC(NPC.GetSource_Death(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<Archmage>(), 0, 0f, 0f, 0f, 0f, 255);
// If Cryogen has not been killed, notify players about Cryonic Ore
if (!DownedBossSystem.downedCryogen)
+1 -1
View File
@@ -2563,7 +2563,7 @@ namespace CalamityMod.NPCs.DevourerofGods
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<THIEF>() }, DownedBossSystem.downedDoG);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<Bandit>() }, DownedBossSystem.downedDoG);
// If DoG has not been killed yet, notify players that the holiday moons are buffed
if (!DownedBossSystem.downedDoG)
+1 -1
View File
@@ -634,7 +634,7 @@ namespace CalamityMod.NPCs.Leviathan
NPC.ai[1] += 1f;
float attackDivisor = 140f - (int)(30f * enrageScale);
float telegraphOffset = (masterMode && revenge) ? 45f : 60f;
float telegraphOffset = death ? 45f : 60f;
if (!leviAlive || phase4)
{
attackDivisor -= (float)Math.Ceiling(50f * (1f - lifeRatio));
@@ -20,7 +20,7 @@ using Terraria.ModLoader.Utilities;
namespace CalamityMod.NPCs.NormalNPCs
{
public class ThiccWaifu : ModNPC
public class CloudElemental : ModNPC
{
public enum AttackState
{
@@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.NormalNPCs
{
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Sky,
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Events.Rain,
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.ThiccWaifu")
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.CloudElemental")
});
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

+1 -1
View File
@@ -411,7 +411,7 @@ namespace CalamityMod.NPCs.OldDuke
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<SEAHOE>() }, DownedBossSystem.downedBoomerDuke);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<SeaKing>() }, DownedBossSystem.downedBoomerDuke);
// Mark Old Duke as dead
DownedBossSystem.downedBoomerDuke = true;
+2 -2
View File
@@ -525,9 +525,9 @@ namespace CalamityMod.NPCs.SunkenSea
{
// Spawn Amidias if he isn't in the world
// This doesn't check for Desert Scourge because Giant Clam only spawns post-Desert Scourge
int amidiasNPC = NPC.FindFirstNPC(ModContent.NPCType<SEAHOE>());
int amidiasNPC = NPC.FindFirstNPC(ModContent.NPCType<SeaKing>());
if (amidiasNPC == -1 && Main.netMode != NetmodeID.MultiplayerClient)
NPC.NewNPC(NPC.GetSource_Death(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<SEAHOE>(), 0, 0f, 0f, 0f, 0f, 255);
NPC.NewNPC(NPC.GetSource_Death(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<SeaKing>(), 0, 0f, 0f, 0f, 0f, 255);
// Mark Giant Clam as dead
DownedBossSystem.downedCLAM = true;
+2 -2
View File
@@ -794,7 +794,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
// Make the town NPC spawn.
if (Main.netMode != NetmodeID.MultiplayerClient)
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y + 12, cirrus ? ModContent.NPCType<FAP>() : ModContent.NPCType<WITCH>());
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y + 12, cirrus ? ModContent.NPCType<Cirrus>() : ModContent.NPCType<BrimstoneWitch>());
}
NPC.active = false;
@@ -3447,7 +3447,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
// Spawn the SCal NPC directly where the boss was
if (!BossRushEvent.BossRushActive)
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y + 12, cirrus ? ModContent.NPCType<FAP>() : ModContent.NPCType<WITCH>());
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y + 12, cirrus ? ModContent.NPCType<Cirrus>() : ModContent.NPCType<BrimstoneWitch>());
// Mark Calamitas as defeated
DownedBossSystem.downedCalamitas = true;
@@ -25,7 +25,8 @@ using Terraria.Utilities;
namespace CalamityMod.NPCs.TownNPCs
{
[AutoloadHead]
public class DILF : ModNPC
[LegacyName("DILF")]
public class Archmage : ModNPC
{
public override void SetStaticDefaults()
{
@@ -71,7 +72,7 @@ namespace CalamityMod.NPCs.TownNPCs
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[]
{
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Snow,
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.DILF")
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.Archmage")
});
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 445 B

@@ -24,7 +24,8 @@ using Terraria.Utilities;
namespace CalamityMod.NPCs.TownNPCs
{
[AutoloadHead]
public class THIEF : ModNPC
[LegacyName("THIEF")]
public class Bandit : ModNPC
{
public static Asset<Texture2D> AltTexture;
@@ -76,7 +77,7 @@ namespace CalamityMod.NPCs.TownNPCs
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[]
{
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Desert,
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.THIEF")
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.Bandit")
});
}
@@ -156,12 +157,12 @@ namespace CalamityMod.NPCs.TownNPCs
dialogue.Add(this.GetLocalizedValue("Chat.Night2"));
}
int witch = NPC.FindFirstNPC(ModContent.NPCType<WITCH>());
int witch = NPC.FindFirstNPC(ModContent.NPCType<BrimstoneWitch>());
if (witch != -1)
dialogue.Add(this.GetLocalization("Chat.BrimstoneWitch").Format(Main.npc[witch].GivenName));
//please help me I'm stuck in a children's video game - Fabsol
int cirrusIndex = NPC.FindFirstNPC(ModContent.NPCType<FAP>());
int cirrusIndex = NPC.FindFirstNPC(ModContent.NPCType<Cirrus>());
if (cirrusIndex != -1)
dialogue.Add(this.GetLocalization("Chat.DrunkPrincess").Format(Main.npc[cirrusIndex].GivenName));
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 386 B

After

Width:  |  Height:  |  Size: 386 B

@@ -22,7 +22,8 @@ using SCalBoss = CalamityMod.NPCs.SupremeCalamitas.SupremeCalamitas;
namespace CalamityMod.NPCs.TownNPCs
{
[AutoloadHead]
public class WITCH : ModNPC
[LegacyName("WITCH")]
public class BrimstoneWitch : ModNPC
{
public override void SetStaticDefaults()
{
@@ -71,7 +72,7 @@ namespace CalamityMod.NPCs.TownNPCs
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[]
{
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Surface,
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.WITCH")
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.BrimstoneWitch")
});
}
@@ -672,11 +673,11 @@ namespace CalamityMod.NPCs.TownNPCs
}
}
int fab = NPC.FindFirstNPC(NPCType<FAP>());
if (fab != -1 && ChildSafety.Disabled)
dialogue.Add(this.GetLocalization("Chat.DrunkPrincess").Format(Main.npc[fab].GivenName), 1.45);
int cirrus = NPC.FindFirstNPC(NPCType<Cirrus>());
if (cirrus != -1 && ChildSafety.Disabled)
dialogue.Add(this.GetLocalization("Chat.DrunkPrincess").Format(Main.npc[cirrus].GivenName), 1.45);
if (NPC.AnyNPCs(NPCType<SEAHOE>()))
if (NPC.AnyNPCs(NPCType<SeaKing>()))
dialogue.Add(this.GetLocalizedValue("Chat.SeaKing"), 1.45);
if (BirthdayParty.PartyIsUp)
File renamed without changes.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 499 B

After

Width:  |  Height:  |  Size: 499 B

@@ -28,7 +28,8 @@ using Terraria.Utilities;
namespace CalamityMod.NPCs.TownNPCs
{
[AutoloadHead]
public class FAP : ModNPC
[LegacyName("FAP")]
public class Cirrus : ModNPC
{
public static Asset<Texture2D> AltTexture;
@@ -42,6 +43,7 @@ namespace CalamityMod.NPCs.TownNPCs
NPCID.Sets.AttackTime[Type] = 60;
NPCID.Sets.AttackAverageChance[Type] = 15;
NPCID.Sets.ShimmerTownTransform[Type] = false;
// Happiness is so fucking dogshit, I swear to christ. - Fabsol
NPC.Happiness
.SetBiomeAffection<HallowBiome>(AffectionLevel.Love)
.SetBiomeAffection<OceanBiome>(AffectionLevel.Like)
@@ -49,7 +51,7 @@ namespace CalamityMod.NPCs.TownNPCs
.SetBiomeAffection<UndergroundBiome>(AffectionLevel.Hate)
.SetNPCAffection(NPCID.Stylist, AffectionLevel.Love)
.SetNPCAffection(NPCID.BestiaryGirl, AffectionLevel.Love)
.SetNPCAffection(NPCID.Truffle, AffectionLevel.Like)
.SetNPCAffection(NPCID.DyeTrader, AffectionLevel.Like)
.SetNPCAffection(NPCID.PartyGirl, AffectionLevel.Like)
.SetNPCAffection(NPCID.DD2Bartender, AffectionLevel.Dislike)
.SetNPCAffection(NPCID.TaxCollector, AffectionLevel.Dislike)
@@ -87,7 +89,7 @@ namespace CalamityMod.NPCs.TownNPCs
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[]
{
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheHallow,
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.FAP")
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.Cirrus")
});
}
@@ -650,6 +652,17 @@ namespace CalamityMod.NPCs.TownNPCs
CalamityWorld.spawnedCirrus = true;
}
// I'm not sure what to do here, because she's always called Cirrus. - Fabsol
/*public override void ModifyTypeName(ref string typeName)
{
int wife = NPC.FindFirstNPC(NPCID.Stylist);
bool wifeIsAround = wife != -1;
bool beLessDrunk = wifeIsAround && NPC.downedMoonlord;
if (beLessDrunk)
typeName = "Cirrus";
}*/
public override bool CanTownNPCSpawn(int numTownNPCs)
{
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas.SupremeCalamitas>()) && Main.zenithWorld)
@@ -680,8 +693,15 @@ namespace CalamityMod.NPCs.TownNPCs
SoundEngine.PlaySound(CnidarianJellyfishOnTheString.SlapSound, player.Center);
}
bool worldIsSafer = NPC.downedMoonlord;
if (CalamityUtils.AnyBossNPCS())
return this.GetLocalizedValue("Chat.BossAlive");
{
if (!worldIsSafer)
return this.GetLocalizedValue("Chat.BossAlive");
else
return this.GetLocalizedValue("Chat.BossAliveAlt");
}
if (NPC.homeless)
return this.GetLocalizedValue("Chat.Homeless" + Main.rand.Next(1, 2 + 1));
@@ -690,7 +710,6 @@ namespace CalamityMod.NPCs.TownNPCs
bool isHappy = Main.ShopHelper.GetShoppingSettings(player, NPC).PriceAdjustment < 1D;
bool wifeIsAround = wife != -1;
bool wifeIsHappy = wifeIsAround ? Main.ShopHelper.GetShoppingSettings(player, Main.npc[wife]).PriceAdjustment < 1D : false;
bool worldIsSafer = NPC.downedMoonlord;
bool beLessDrunk = wifeIsAround && worldIsSafer;
if (Main.bloodMoon)
@@ -730,6 +749,8 @@ namespace CalamityMod.NPCs.TownNPCs
if (ChildSafety.Disabled)
dialogue.Add(this.GetLocalization("Chat.Normal4Alt").Format(Main.npc[wife].GivenName));
dialogue.Add(this.GetLocalizedValue("Chat.NewOutfit"));
}
int tavernKeep = NPC.FindFirstNPC(NPCID.DD2Bartender);
@@ -742,11 +763,11 @@ namespace CalamityMod.NPCs.TownNPCs
dialogue.Add(this.GetLocalizedValue("Chat.Tavernkeep3"));
}
int permadong = NPC.FindFirstNPC(ModContent.NPCType<DILF>());
int permadong = NPC.FindFirstNPC(ModContent.NPCType<Archmage>());
if (permadong != -1)
dialogue.Add(this.GetLocalization("Chat.Archmage").Format(Main.npc[permadong].GivenName));
int witch = NPC.FindFirstNPC(ModContent.NPCType<WITCH>());
int witch = NPC.FindFirstNPC(ModContent.NPCType<BrimstoneWitch>());
if (witch != -1)
dialogue.Add(this.GetLocalization("Chat.BrimstoneWitch").Format(Main.npc[witch].GivenName));
@@ -834,45 +855,65 @@ namespace CalamityMod.NPCs.TownNPCs
dialogue.Add(this.GetLocalization("Chat.NightStylist").Format(Main.npc[wife].GivenName));
}
// She needs to be drunk to enjoy festive events, otherwise, she dislikes them. - Fabsol
if (BirthdayParty.PartyIsUp)
dialogue.Add(this.GetLocalizedValue("Chat.Party"));
{
if (!beLessDrunk)
dialogue.Add(this.GetLocalizedValue("Chat.Party"));
else
dialogue.Add(this.GetLocalizedValue("Chat.PartyAlt"));
}
// She loves her hair and freaks out if it's threatened. Also a reference to the wicked witch of the west. - Fabsol
if (AcidRainEvent.AcidRainEventIsOngoing)
dialogue.Add(this.GetLocalizedValue("Chat.AcidRain"));
// ayy lmao meme reference (this isn't 4th-wall breaking enough to be put in GFB-only imo). - Fabsol
if (Main.invasionType == InvasionID.MartianMadness)
dialogue.Add(this.GetLocalizedValue("Chat.Martians"));
// Reference to insane thoughts I had years ago. - Fabsol
if (DownedBossSystem.downedCryogen && ChildSafety.Disabled)
dialogue.Add(this.GetLocalizedValue("Chat.CryogenDefeated"));
// Reference to the old Leviathan sprite. - Fabsol
if (DownedBossSystem.downedLeviathan)
dialogue.Add(this.GetLocalizedValue("Chat.LeviathanDefeated"));
if (NPC.downedMoonlord)
// Risque tentacle implication... - Fabsol
if (NPC.downedMoonlord && ChildSafety.Disabled)
dialogue.Add(this.GetLocalizedValue("Chat.MoonLordDefeated"));
// Reference to some crazy shit I thought up at one point. - Fabsol
if (DownedBossSystem.downedPolterghast)
dialogue.Add(this.GetLocalizedValue("Chat.PolterghastDefeated"));
if (DownedBossSystem.downedDoG)
// MGS2 meme line. - Fabsol
if (DownedBossSystem.downedDoG && Main.zenithWorld)
dialogue.Add(this.GetLocalizedValue("Chat.DoGDefeated"));
// Cirrus doesn't like the creature. - Fabsol
if (player.Calamity().chibii)
dialogue.Add(this.GetLocalizedValue("Chat.HasChibii"));
{
if (!isHappy)
dialogue.Add(this.GetLocalizedValue("Chat.HasChibii"));
else
dialogue.Add(this.GetLocalizedValue("Chat.HasChibiiAlt"));
}
if (player.Calamity().aquaticHeart && !player.Calamity().aquaticHeartHide && ChildSafety.Disabled)
// She likes fish people (including Amidias, but she has no comments for him yet). - Fabsol
if (player.Calamity().aquaticHeart && !player.Calamity().aquaticHeartHide && ChildSafety.Disabled && isHappy)
dialogue.Add(this.GetLocalizedValue("Chat.HasAnahitaTrans"));
if (player.Calamity().cirrusVodka)
dialogue.Add(this.GetLocalizedValue("Chat.HasVodka"));
if (player.HasItem(ModContent.ItemType<PrincessSpiritinaBottle>()))
// These are all a bit too risque for children to be seeing lol - Fabsol
if (player.HasItem(ModContent.ItemType<PrincessSpiritinaBottle>()) && ChildSafety.Disabled)
{
dialogue.Add(this.GetLocalizedValue("Chat.HasAlicorn1"));
dialogue.Add(this.GetLocalizedValue("Chat.HasAlicorn2"));
if (ChildSafety.Disabled)
dialogue.Add(this.GetLocalizedValue("Chat.HasAlicorn3"));
dialogue.Add(this.GetLocalizedValue("Chat.HasAlicorn3"));
}
return dialogue;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 624 B

After

Width:  |  Height:  |  Size: 624 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 632 B

After

Width:  |  Height:  |  Size: 632 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Loaded 100 of 270 files, more files were not shown because too many files have changed in this diff. Show more