This commit is contained in:
Xyk committed 2024-04-21 23:52:29 -07:00
commit bc3a895d61
5 files changed
+35 -32

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.FeralClaws).
AddIngredient(ItemID.WarriorEmblem).
AddIngredient<UelibloomBar>(2).
AddTile(TileID.LunarCraftingStation).
Register();
+27 -25
View File
@@ -71,12 +71,13 @@ namespace CalamityMod.NPCs
"Drifter",
"Finchi",
"Heniek", // <@!363404700445442050> (kazurgundu)
"Fire", // <@!354362326947856384> (fire#0692)
"Fire", // <@!354362326947856384> (ultimatefirewaster)
"Barney Calhoun", // <@!634462901431697410> (potatostego)
"XiaoEn0426", // <@!440448864772816896> (XiaoEn0426#9157)
"Jeffred", // <@!295362230038560768> (Knight Solaire#0873)
"XiaoEn0426", // <@!440448864772816896> (xiaoen0426)
"Jeffred", // <@!295362230038560768> (paladinsamuel)
"The Cooler Arthur", // <@!568263512523014154> (gokuartillery)
"Markie", // <@!291141964039061504> (markie_)
"Shark", // <@!874464051697172492> (congratsistrash)
};
private static readonly string[] ClothierNames =
{
@@ -85,7 +86,7 @@ namespace CalamityMod.NPCs
};
private static readonly string[] CyborgNames =
{
"Sylux", // <@!331812782183809025> (Gonk#2451)
"Sylux", // <@!331812782183809025> (gonkachino)
};
private static readonly string[] DemolitionistNames =
{
@@ -98,18 +99,18 @@ namespace CalamityMod.NPCs
"Izuna",
"Jasmine", // <@!430532867479699456> (phantasmagoria.)
"Cybil", // <@!486507232666845185> (Captain Doofus#????)
"Ruth", // <@!1001307586068492388> (Briny_Coffee#4393)
"Ruth", // <@!1001307586068492388> (briny_coffee)
};
private static readonly string[] DyeTraderNames = null;
private static readonly string[] GoblinTinkererNames =
{
"Verth",
"Gormer", // <@!287651204924833795> (Picasso's Bean#2819 -- RIP)
"Gormer", // <@!287651204924833795> (picassosbean2819 -- RIP)
"TingFlarg", // <@!185605031716847616> (smugggo)
"Driser", // <@!121996994406252544> (Driser#8630)
"Driser", // <@!121996994406252544> (driser)
"Eddie Spaghetti", // <@!466397267407011841> (nathansfriend)
"G'tok", // <@!335192200956608535> (gtoktas)
"Katto", // <@!175972165504466944> (Katto#2858)
"Katto", // <@!175972165504466944> (katto_kat)
"Him", // <@!931019614958256139> (himtheguy1)
"Tooshiboots", // <@!333532730593771522> (ulmod)
"Neesh", // <@!175803493464932352> (xjetty)
@@ -122,15 +123,15 @@ namespace CalamityMod.NPCs
"Streakist", // used to be "StreakistYT". couldn't find the youtube channel, and decided to remove the ad.
"Necroplasmic",
"Devin",
"Woffle", // <@!185980979427540992> (Chipbeam#2268)
"Woffle", // <@!185980979427540992> (chipbeam)
"Cameron", // <@!340401981711712258> (cammywammy.)
"Wilbur", // <@!295171926324805634> (all_imperfect_chaos)
"Good Game Design", // <@!564267767042277385> (dominickarma)
"Danmaku", // <@!756259562268524555> (Danmaku#2659)
"Grylken", // <@!299970404435361802> (Grylken#1569)
"Danmaku", // <@!756259562268524555> (danmaku0)
"Grylken", // <@!299970404435361802> (grylken)
"Outlaw", // <@!918311619480657922> (thechosenoutlaw)
"Alfred Rend", // <@!606301806481375255> (Deadsqurp300#0907)
"Leeman", // <@!281999243168841728> (Tweee#5831)
"Alfred Rend", // <@!606301806481375255> (deadsqurp300)
"Leeman", // <@!281999243168841728> (tweee)
"Mihai", // <@!373941893467209730> (cmihaii.)
"Cooler Kevin", // <@!614126424751603714> (exellent.)
};
@@ -138,7 +139,7 @@ namespace CalamityMod.NPCs
{
"Lilly",
"Daawn", // <@!206162323541458944> (daawnily)
"Robin", // <@!654737510030639112> (Altzeus#8687)
"Robin", // <@!654737510030639112> (altzeus)
"Curly", // <@!673092101780668416> (curly4830)
};
private static readonly string[] MerchantNames =
@@ -153,18 +154,18 @@ namespace CalamityMod.NPCs
};
private static readonly string[] PainterNames =
{
"Picasso", // <@!353316526306361347> (sconicboom -- for the late Picasso's Bean#2819)
"Picasso", // <@!353316526306361347> (sconicboom -- for the late picassosbean2819)
};
private static readonly string[] PartyGirlNames =
{
"Arin", // <@!268169458302976012> (Kiyotu#0006)
"Arin", // <@!268169458302976012> (kiyotu)
};
private static readonly string[] PirateNames =
{
"Tyler Van Hook",
"Cap'n Deek", // "Alex N" on Patreon (No discord account)
"Captain Billy Bones", // <@!699589229507772416> (djackv)
"Captain J. Crackers", // <@!233232602994049024> (Qyuuno#3031)
"Captain J. Crackers", // <@!233232602994049024> (qyuuno)
};
private static readonly string[] PrincessNames =
{
@@ -202,7 +203,7 @@ namespace CalamityMod.NPCs
"Tim Lockwood", // <@!605839945483026434> (pomvoid)
"Sir Samuel Winchester Jenkins Kester II", // <@!107659695749070848> (ryaegos)
"Brutus", // <@!591889650692521984> (.brutus._)
"Sloth", // <@!486265327387279391> (BossyPunch#4983)
"Sloth", // <@!486265327387279391> (bossypunch)
};
private static readonly string[] TaxCollectorNames =
{
@@ -231,18 +232,18 @@ namespace CalamityMod.NPCs
"Inorim, son of Ivukey",
"Jensen",
"Merasmus", // <@!288066987819663360> (spiderprovidence)
"Habolo", // <@!163028025494077441> (ChristmasGoat#7810)
"Habolo", // <@!163028025494077441> (hellgoat2)
"Ortho", // <@!264984390910738432> (worcuus)
"Chris Tallballs", // <@!770211589076418571> (bewearium)
"Syethas", // <@!325413275066171393> (cosmicstariight)
"Nextdoor Psycho", // <@!173261518572486656> (⋈-NextdoorPsycho-⋈#0001)
"Nextdoor Psycho", // <@!173261518572486656> (nextdoorpsycho)
};
private static readonly string[] ZoologistNames =
{
"Kiriku", // <@!395312478160027668> (rulosss#6814)
"Kiriku", // <@!395312478160027668> (rulosss)
"Lacuna", // <@!790746689211203604> (_lacuna_)
"Mae Borowski", //<@!219158690433990656> (justakkolite)
"Jackie", // <@!353241811717718016> (jackalchan)
"Fera", // <@!195850711567826945> (juneark_)
};
// The following sets are for the 1.4 Town Pets: Town Dogs, Cats and Bunnies.
@@ -275,7 +276,7 @@ namespace CalamityMod.NPCs
private static readonly string[] TownDogDalmatianNames = null;
private static readonly string[] TownDogHuskyNames =
{
"Yoshi", // <@!541127291426832384> (GregTheSpinarak#6643)
"Yoshi", // <@!541127291426832384> (gregthespinarak)
};
private const int TownCatSiameseVanillaNames = 12;
@@ -287,7 +288,7 @@ namespace CalamityMod.NPCs
private static readonly string[] TownCatNames =
{
"Smoogle", // <@!709968379334623274> (smooglin)
"The Meowurer of Gods", // <@!385949114271268864> (GP#7876)
"The Meowurer of Gods", // <@!385949114271268864> (thatgp)
"Katsafaros", // <@!190595401328492544> (gr_mm)
"Lucerne", // <@!271954788676141066> (lord_lucerne)
"Milo", // <@!401849201597874179> (maskedmilo)
@@ -300,7 +301,8 @@ namespace CalamityMod.NPCs
};
private static readonly string[] TownCatOrangeTabbyNames =
{
"Felix" // <@!183424826407518208> (lilac_vrt_olligoci)
"Felix", // <@!183424826407518208> (lilac_vrt_olligoci)
"Tardo", // <@!739343546867384391> (midnight295)
};
private static readonly string[] TownCatRussianBlueNames = null;
private static readonly string[] TownCatSilverNames = null;
+1
View File
@@ -111,6 +111,7 @@ namespace CalamityMod.NPCs.TownNPCs
"Goose", // <@!591421917706321962> (DullElili#8016)
"Jackson", // <@!525827730646892549> (ChowChow, Sin of Sleep Schedules#1235)
"Altarca", // <@!1140673052108128337> (altarca_27226_49175)
"Jackie", // <@!353241811717718016> (jackalchan)
// Original names
this.GetLocalizedValue("Name.Laura"),
@@ -234,7 +234,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
if (!despawn)
{
Vector2 brainCenter = npc.Center;
Vector2 destination = Main.player[npc.target].Center + (masterMode ? Main.player[npc.target].velocity * 20f : Vector2.Zero);
Vector2 destination = Main.player[npc.target].Center + (masterMode ? Main.player[npc.target].velocity * 20f * enrageScale : Vector2.Zero);
float targetXDist = destination.X - brainCenter.X;
float targetYDist = destination.Y - brainCenter.Y;
float targetDistance = (float)Math.Sqrt(targetXDist * targetXDist + targetYDist * targetYDist);
@@ -302,7 +302,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
SoundEngine.PlaySound(SoundID.ForceRoarPitched, npc.Center);
// Velocity
npc.velocity = (Main.player[npc.target].Center + (masterMode ? Main.player[npc.target].velocity * 20f : Vector2.Zero) - npc.Center).SafeNormalize(Vector2.UnitY) * chargeVelocity;
npc.velocity = (Main.player[npc.target].Center + (masterMode ? Main.player[npc.target].velocity * 20f * enrageScale : Vector2.Zero) - npc.Center).SafeNormalize(Vector2.UnitY) * chargeVelocity;
if (Main.getGoodWorld)
npc.velocity *= 1.15f;
}
@@ -616,11 +616,11 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
{
// Limit this variable so that the following calculation never goes too low
numHeads--;
if (numHeads > 8)
numHeads = 8;
if (numHeads > 7)
numHeads = 7;
float pushDistanceLowerLimit = 16f - numHeads;
float pushDistanceUpperLimit = 160f - numHeads * 10f;
float pushDistanceLowerLimit = 14f - numHeads;
float pushDistanceUpperLimit = 140f - numHeads * 10f;
float pushDistance = MathHelper.Lerp(pushDistanceLowerLimit, pushDistanceUpperLimit, 1f - lifeRatio) * npc.scale;
float pushVelocity = 0.25f + enrageScale * 0.125f;
for (int i = 0; i < Main.maxNPCs; i++)