Merge: Assorted changes by CongratsIsTrash
This commit is contained in:
18 files changed
+78
-92
No files matched your search
@@ -167,9 +167,6 @@ namespace CalamityMod.Balancing
|
||||
// 50% resist to Aegis Blade's explosions because the true melee resist ain't enough.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AegisBlast>()))));
|
||||
|
||||
// 40% resist to Icicle Arrows.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<IcicleArrowProj>()))));
|
||||
|
||||
// 35% resist to Flying Dragon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2SquireSonicBoom))));
|
||||
|
||||
@@ -213,9 +210,6 @@ namespace CalamityMod.Balancing
|
||||
// 35% resist to Aerial Bane.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2BetsyArrow))));
|
||||
|
||||
// 35% resist to Icicle Arrows.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<IcicleArrowProj>()))));
|
||||
|
||||
// 30% resist to Aurora Blazer.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<AuroraFire>()))));
|
||||
|
||||
|
||||
@@ -1001,7 +1001,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (xerocSet && xerocDmg <= 0 && Player.ownedProjectileCounts[ProjectileType<EmpyreanEmber>()] < 3 && Player.ownedProjectileCounts[ProjectileType<EmpyreanBlast>()] < 3)
|
||||
{
|
||||
switch (Main.rand.Next(5))
|
||||
switch (Main.rand.Next(4))
|
||||
{
|
||||
case 0:
|
||||
// Exodus Rogue Stars: 80%
|
||||
|
||||
@@ -775,27 +775,31 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Tweak Pygmy Staff aggro distance logic
|
||||
|
||||
#region Tweak Pygmy Staff Aggro Distance Logic
|
||||
// Code written by Habble
|
||||
private static void PygmyAggroOnClosestPointInHitbox(ILContext context)
|
||||
{
|
||||
// Adjust Pygmy Staff's attack distance logic to be measured from the closest point to the enemy instead of the enemy's center.
|
||||
ILCursor cursor = new(context);
|
||||
|
||||
// Go to the latest newly set variable near the point we wanna be, as that is an easy unique instruction to jump to. 131 is the number assigned to that local variable.
|
||||
if (!cursor.TryGotoNext(i => i.MatchStloc(131)))
|
||||
{// Go to the latest newly set variable near the point we wanna be, as that is an easy unique instruction to jump to
|
||||
// 131 is the number assigned to that variable in ILview
|
||||
{
|
||||
LogFailure("Tweaking Pygmy Staff aggro distance logic", "Could not locate unique Stloc(131) instruction nearest to aggro distance check.");
|
||||
return;
|
||||
}
|
||||
// Move before the minion range variable emission so as to receive the value being targetted at it.
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdloc(126)))
|
||||
{// Before the minion range variable emission so as to receive the value being targetted at it
|
||||
{
|
||||
LogFailure("Tweaking Pygmy Staff aggro distance logic", "Could not locate the minion range variable.");
|
||||
return;
|
||||
}
|
||||
cursor.Emit(OpCodes.Ldarg_0); // Emit the Projectile entity as we are in Projectile.cs::AI_026
|
||||
cursor.Emit(OpCodes.Ldloc, 129); // Emit the NPC index via the incremented loop variable
|
||||
cursor.Emit(OpCodes.Ldloc, 6); // Emit the bool containing type check for pygmies
|
||||
cursor.Emit(OpCodes.Ldarg_0); // Emits the Projectile entity itself
|
||||
cursor.Emit(OpCodes.Ldloc, 129); // Emits the NPC index via the incremented loop variable
|
||||
cursor.Emit(OpCodes.Ldloc, 6); // Emits the bool containing type check for Pygmies
|
||||
// Replace the distance with a different value calculated off of closest point in hitboxes
|
||||
cursor.EmitDelegate((float distance, Projectile projectile, int npcIndex, bool pygmy) =>
|
||||
{// Replace the distance with a different value calculated off of closest point in hitboxes
|
||||
{
|
||||
if (!pygmy)
|
||||
return distance;
|
||||
|
||||
@@ -804,34 +808,39 @@ namespace CalamityMod.ILEditing
|
||||
float finalDistance = npc.Hitbox.ClosestPointInRect(player.Center).Distance(player.Hitbox.ClosestPointInRect(npc.Center));
|
||||
return finalDistance;
|
||||
});
|
||||
|
||||
// That was part 1, time for part 2.
|
||||
// Go directly before the instruction that's meant to receive the distance value of this tagged NPC.
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchStloc(185)))
|
||||
{// Go directly before the instruction that's meant to receive the distance value of this tagged NPC
|
||||
{
|
||||
LogFailure("Tweaking Pygmy Staff aggro distance logic", "Could not locate first unique Stloc(185) instruction.");
|
||||
return;
|
||||
}
|
||||
cursor.Emit(OpCodes.Ldarg_0);
|
||||
cursor.Emit(OpCodes.Ldloc, 181); // Emit the tagged NPC
|
||||
cursor.Emit(OpCodes.Ldloc, 181); // Emits the tagged NPC
|
||||
cursor.Emit(OpCodes.Ldloc, 6);
|
||||
// Replace the distance with a different value calculated off of closest point in hitboxes
|
||||
cursor.EmitDelegate((float distance, Projectile projectile, NPC npc, bool pygmy) =>
|
||||
{// Replace the distance with a different value calculated off of closest point in hitboxes
|
||||
{
|
||||
if (!pygmy)
|
||||
return distance;
|
||||
|
||||
float finalDistance = npc.Hitbox.ClosestPointInRect(projectile.Center).Distance(projectile.Hitbox.ClosestPointInRect(npc.Center));
|
||||
return finalDistance;
|
||||
});
|
||||
|
||||
|
||||
// Go directly before the instruction that's meant to receive the distance value of this NPC currently being iterated over.
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchStloc(189)))
|
||||
{// Go directly before the instruction that's meant to receive the distance value of this NPC currently being iterated over
|
||||
{
|
||||
LogFailure("Tweaking Pygmy Staff aggro distance logic", "Could not locate first unique Stloc(189) instruction.");
|
||||
return;
|
||||
}
|
||||
cursor.Emit(OpCodes.Ldarg_0);
|
||||
cursor.Emit(OpCodes.Ldloc, 186); // Emit the NPC index via the incremented loop variable
|
||||
cursor.Emit(OpCodes.Ldloc, 186); // Emits the NPC index via the incremented loop variable
|
||||
cursor.Emit(OpCodes.Ldloc, 6);
|
||||
// Replace the distance with a different value calculated off of closest point in hitboxes
|
||||
cursor.EmitDelegate((float distance, Projectile projectile, int npcIndex, bool pygmy) =>
|
||||
{// Replace the distance with a different value calculated off of closest point in hitboxes
|
||||
{
|
||||
if (!pygmy)
|
||||
return distance;
|
||||
|
||||
@@ -840,7 +849,6 @@ namespace CalamityMod.ILEditing
|
||||
return finalDistance;
|
||||
});
|
||||
}
|
||||
|
||||
#endregion Tweak Pygmy Staff aggro distance logic
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -105,6 +105,7 @@ namespace CalamityMod.ILEditing
|
||||
On_Main.DamageVar_float_int_float += AdjustDamageVariance;
|
||||
IL_NPC.ScaleStats_ApplyExpertTweaks += RemoveExpertHardmodeScaling;
|
||||
IL_Projectile.Damage += VanillaBossResistChanges;
|
||||
IL_Projectile.AI_026 += PygmyAggroOnClosestPointInHitbox;
|
||||
IL_Projectile.AI_099_2 += LimitTerrarianProjectiles;
|
||||
On_Projectile.AI_015_Flails += FlailsNoLongerAffectedByPlayerVelocity;
|
||||
IL_Projectile.AI_015_Flails += IncreaseFlowerPowRetSpeed;
|
||||
@@ -188,9 +189,6 @@ namespace CalamityMod.ILEditing
|
||||
// Fix vanilla behaviour of not calling CheckDead for NPCs that realLife is set
|
||||
IL_NPC.StrikeNPC_HitInfo_bool_bool += EnsureCheckDeadOnSegments;
|
||||
|
||||
// Change Pygmy Staff minion AI to check distance based on closest points in hitboxes
|
||||
IL_Projectile.AI_026 += PygmyAggroOnClosestPointInHitbox;
|
||||
|
||||
//Additional detours that are in their own item files given they are only relevant to these specific items:
|
||||
//Rover drive detours on Player.DrawInfernoRings to draw its shield
|
||||
//Wulfrum armor hooks on Player.KeyDoubleTap and DrawPendingMouseText to activate its set bonus and spoof the mouse text to display the stats of the activated weapon if shift is held
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.dOfTheDeep = true;
|
||||
modPlayer.dOfTheDeepVisual = !hideVisual;
|
||||
modPlayer.WaterDebuffMultiplier += 0.75f;
|
||||
modPlayer.WaterDebuffMultiplier += 0.6f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 643 B |
@@ -197,7 +197,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PurpleClubberfish, Do(UseTurn, KnockbackExact(10f)) }, // VANILLA: 8 KB
|
||||
{ ItemID.PurplePhaseblade, phaseblade },
|
||||
{ ItemID.PurplePhasesaber, phasesaber },
|
||||
{ ItemID.PygmyStaff, Do(DamageExact(63)) }, // VANILLA: 40 DMG
|
||||
{ ItemID.PygmyStaff, Do(DamageExact(60)) }, // VANILLA: 40 DMG
|
||||
{ ItemID.RainbowGun, Do(DamageExact(60)) }, // VANILLA: 45 DMG
|
||||
{ ItemID.RainbowRod, Do(DamageExact(40), KnockbackExact(8f)) }, // VANILLA: 50 DMG, 6 KB
|
||||
{ ItemID.Rally, Do(DamageExact(18)) }, // VANILLA: 14 DMG
|
||||
|
||||
@@ -63,7 +63,6 @@ namespace CalamityMod.Items.Placeables.Furniture.Paintings
|
||||
"CrabBar",
|
||||
"Critaquil",
|
||||
"Dandy",
|
||||
"Dia",
|
||||
"Done",
|
||||
"dozezoze",
|
||||
"Flowaria",
|
||||
@@ -109,6 +108,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Paintings
|
||||
"Daim",
|
||||
"DarkTiny",
|
||||
"Demik",
|
||||
"Dia",
|
||||
"DM Dokuro",
|
||||
"Doog",
|
||||
"drh",
|
||||
|
||||
@@ -157,12 +157,12 @@ SeaKing: The seventeenth ruler of the constitutional monarchy of Ilmeris since t
|
||||
TownPiggy: Waddles its little legs around with little purpose. Rumored to be a clever and obsessive hoarder.
|
||||
//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.
|
||||
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 they 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.
|
||||
DarkEnergy: -
|
||||
DesertNuisance: Though these serpents are of the Desert Scourge's species, they are notably younger and less developed. Choosing to hunt in a pack with the large scourge due to this weakness, many have seen them tear apart prey not unlike the piranhas that once populated the former sea.
|
||||
CosmicGuardian: Though of the same species as the nameless serpent, their minds and functions are far more basic. They possess very little will of their own and blindly follow the orders of their gluttonous master.
|
||||
DankCreeper: Divine puppeteers beheld incessantly through their devotees, an organic panopticon for a wicked hive mind. Their word was truth, and evidence otherwise was burned. Even in decay, they summon subjects to creep, spy and kill.
|
||||
DarkHeart: Beneath all the schemes and lies, dark desires coiled inside the pitch-black hearts of these deities. With their forms rent beyond recognition, new hearts arise from their rot to beat with misery once more
|
||||
DarkHeart: Beneath all the schemes and lies, dark desires coiled inside the pitch-black hearts of these deities. With their forms rent beyond recognition, new hearts arise from their rot to beat with misery once more.
|
||||
HiveBlob: The faceless are bulletproof, and so the corrupt coalescence shields itself behind dull pawns, as the gods it was birthed from once did.
|
||||
HiveTumor: This tumor acts as the brain of the putrid wasteland, being all that is left of the minds of the slain gods that lay there. The creatures of the Corruption exist to protect it, and those who attempt to harm it rarely live to tell the tale.
|
||||
AquaticAberration: A spawn of the immense Leviathan, their lifespan can be measured in hours. All they know is how to hunt for their masters. Even non-aquatic life is well within their reach, due to their uncanny ability to fly through air just as easily as swimming through water.
|
||||
|
||||
@@ -255,8 +255,28 @@ BuffDescription: {
|
||||
WeaponImbueVenom: Melee, Whip, and Rogue attacks inflict acid venom on your targets
|
||||
}
|
||||
|
||||
HerbTooltips: {
|
||||
Daybloom: "[C/FFEB8A:A cheerful herb which blooms under daylight]"
|
||||
Moonglow: "[C/8AFFFF:A radiant herb which blossoms under moonlight]"
|
||||
Waterleaf: "[C/8AFFAF:A tenacious herb that blossoms in the rain]"
|
||||
Blinkroot: "[C/FFC28A:A fickle herb, whose blooming is unpredictable]"
|
||||
Shiverthorn: "[C/AADEFA:A frigid herb that blooms slowly and permanently]"
|
||||
Deathweed: "[C/A98AFF:A foul herb, blossoming under the Full or Blood Moon]"
|
||||
Fireblossom: "[C/FF8063:A vibrant herb, blossoming in the sunset hours]"
|
||||
}
|
||||
|
||||
SeedTooltips: {
|
||||
Daybloom: "[C/FFEB8A:Must be planted in regular Grass]"
|
||||
Moonglow: "[C/8AFFFF:Must be planted in Jungle Grass]"
|
||||
Waterleaf: "[C/8AFFAF:Must be placed in Sand]"
|
||||
Blinkroot: "[C/FFC28A:Must be sown in Dirt or Mud]"
|
||||
Shiverthorn: "[C/AADEFA:Must be placed in Snow or Ice]"
|
||||
Deathweed: "[C/A98AFF:Must be buried in Evil Grass or Evil Stone]"
|
||||
Fireblossom: "[C/FF8063:Must be buried in Ash]"
|
||||
}
|
||||
|
||||
// Vanilla NPC dialogues added by Calamity
|
||||
AnglerChat.SeaKing: Someone tell {0} to quit trying to throw me out of town, it's not going to work.
|
||||
AnglerChat.SeaKing: Hey! Someone tell {0} to quit trying to throw me outta town, it's not gonna work!
|
||||
|
||||
ArmsDealerChat: {
|
||||
MentionQuadBarrel: That old man left a cranky old gun on his deathbed. You catching my drift?
|
||||
@@ -275,20 +295,18 @@ ClothierChat: {
|
||||
|
||||
CyborgChat: {
|
||||
MoonLordDefeated1: Always shoot for the moon! It has clearly worked before.
|
||||
MoonLordDefeated2: Draedon? The guy who made these upgrades on me said he wanted to best him. But I never cared about that, I just wanted to shoot lasers from my eyes.
|
||||
MentionPlague: Those big green roaches in the Jungle don't threaten me, but all of the animals it has consumed... Please, do me a favor and protect them.
|
||||
Rain: All these moments will be lost in time. Like tears... in the rain.
|
||||
}
|
||||
|
||||
DemolitionistChat: {
|
||||
MentionSkynamite: Tired of blowing your legs off with dynamite? Not my problem, but if you aren't fond of it you could try throwing them into a Sky Mill to see if they fly.
|
||||
MentionSkynamite: Tired of blowing your legs off with dynamite? That's part of the thrill! But maybe they'll fly if you try throwing them into a Sky Mill.
|
||||
DoGDefeated: God Slayer Dynamite? Boy do I like the sound of that!
|
||||
}
|
||||
|
||||
DryadChat: {
|
||||
DarksunEclipse: There's a dark solar energy emanating from the moths that appear during this time. What's up with moths getting stronger as you do too?
|
||||
Hardmode: That starborne illness sits upon this land like a blister. Do even more vile forces of corruption exist in worlds beyond?
|
||||
Mushroom: I'm not here for any reason! Just picking up mushrooms for uh, later use.
|
||||
SulphurSea: My Goddess is resting deep below this sea. If you may excuse me, I wish to pay my respects to her alone.
|
||||
}
|
||||
|
||||
@@ -310,28 +328,18 @@ GuideChat: {
|
||||
Hardmode2: That earthquake wasn't natural, something must have caused it... Beware when exploring, whatever caused it must be a powerful entity, perhaps even otherworldly.
|
||||
}
|
||||
|
||||
HerbTooltips: {
|
||||
Daybloom: "[C/FFEB8A:A cheerful herb which blooms under daylight]"
|
||||
Moonglow: "[C/8AFFFF:A radiant herb which blossoms under moonlight]"
|
||||
Waterleaf: "[C/8AFFAF:A tenacious herb that blossoms in the rain]"
|
||||
Blinkroot: "[C/FFC28A:A fickle herb, whose blooming is unpredictable]"
|
||||
Shiverthorn: "[C/AADEFA:A frigid herb that blooms slowly and permanently]"
|
||||
Deathweed: "[C/A98AFF:A foul herb, blossoming under the Full or Blood Moon]"
|
||||
Fireblossom: "[C/FF8063:A vibrant herb, blossoming in the sunset hours]"
|
||||
}
|
||||
|
||||
MechanicChat: {
|
||||
HasPortalGun: Just what is that contraption? It makes my Teleporters look like child's play!
|
||||
MoonLordDefeated: What do you mean your traps aren't making the cut? Don't look at me!
|
||||
Eclipse: Um... should my nightlight be on?
|
||||
AcidRain: Maybe I should've waterproofed my gadgets... They're starting to corrode.
|
||||
AcidRain: Oh darn! I should've waterproofed my gadgets, they're starting to corrode.
|
||||
}
|
||||
|
||||
MerchantChat: {
|
||||
MoonLordDefeated: Every night seems more tense than the last. I feel unspeakable horrors are watching over us.
|
||||
Eclipse: Are you daft?! Turn off those lamps!
|
||||
AcidRain: If this acid rain keeps up, there'll be a shortage of Dirt Blocks soon enough!
|
||||
Bandit: I happen to have several Angel Statues at the moment, a truely rare commodity. Want one?
|
||||
Bandit: Have you any idea why I have several Angel Statues in my stock, friend? Please relieve me of them!
|
||||
}
|
||||
|
||||
PainterChat: {
|
||||
@@ -352,35 +360,25 @@ PainterChat: {
|
||||
}
|
||||
|
||||
PartyGirlChat: {
|
||||
Eclipse1: I think my light display is turning into an accidental bug zapper. At least the monsters are enjoying it.
|
||||
Eclipse1: My light display is turning into an accidental bug zapper. Yeah I don't know, but at least the monsters are enjoying it.
|
||||
Eclipse2: Ooh! I love parties where everyone wears a scary costume!
|
||||
}
|
||||
|
||||
PirateChat: {
|
||||
PreLeviathan: Aye, I've heard of a mythical creature in the oceans, singing with an alluring voice. Careful when yer fishin out there.
|
||||
PreLeviathan: Aye, I hear of a mythical creature in the oceans, singing with an alluring voice. Careful when yer fishin out there, matey!
|
||||
WetScourgeDefeated: I have to thank ye again for takin' care of that sea serpent. Or was that another one...
|
||||
SeaKing: I remember legends about that {0}. He ain't quite how the stories make him out to be though.
|
||||
Ocean: Now this is a scene that I can admire any time! I feel like something is watching me though.
|
||||
SulphurSea1: It ain't much of a sight, but there's still life living in these waters.
|
||||
SulphurSea2: Me ship might just sink from the acid alone.
|
||||
}
|
||||
|
||||
SeedTooltips: {
|
||||
Daybloom: "[C/FFEB8A:Must be planted in regular Grass]"
|
||||
Moonglow: "[C/8AFFFF:Must be planted in Jungle Grass]"
|
||||
Waterleaf: "[C/8AFFAF:Must be placed in Sand]"
|
||||
Blinkroot: "[C/FFC28A:Must be sown in Dirt or Mud]"
|
||||
Shiverthorn: "[C/AADEFA:Must be placed in Snow or Ice]"
|
||||
Deathweed: "[C/A98AFF:Must be buried in Evil Grass or Evil Stone]"
|
||||
Fireblossom: "[C/FF8063:Must be buried in Ash]"
|
||||
SeaKing: There be many a legend about that {0}! He ain't quite how the stories make him outta be though.
|
||||
Ocean: Aye, the open waters! This be a scene any sea dog can admire!
|
||||
SulphurSea1: It ain't much a sight, but these waters still be teamin' with life.
|
||||
SulphurSea2: Argh, this is no proper dock! Me ship might just sink from the acid alone!
|
||||
}
|
||||
|
||||
SkeletonMerchantChat.Normal: What'dya buyin'?
|
||||
|
||||
SteampunkerChat: {
|
||||
MoonLordDefeated: Yep! I'm also considering being a space pirate now.
|
||||
Astral: Some of my machines are starting to go haywire thanks to this Astral Infection. I probably shouldn't have built them here.
|
||||
Hallow: I'm sorry I really don't have any Unicorn proof tech here, you're on your own.
|
||||
Astral: Golly! Some of my machines are going haywire thanks to this Astral Infection. I shan't have built them here!
|
||||
Hallow: I dinnae have any Unicorn proof tech here, you're a wee bit on your own mate.
|
||||
}
|
||||
|
||||
StylistChat: {
|
||||
@@ -396,16 +394,16 @@ TaxCollectorChat: {
|
||||
DoGDefeated: Devourer of what, you said? Devourer of Funds, if its payroll is anything to go by!
|
||||
PreBrimmy: So those punks on Azafure think they can live for free on my lands? Tell you what, do my job there and I might give you a bonus.
|
||||
HasSlickCane: Goodness! That cane has swagger!
|
||||
Has500Plat: Where and how are you getting all of this money?
|
||||
Has100Plat: BAH! Doesn't seem like I'll ever be able to quarrel with the debts of the town again!
|
||||
Has500Plat: Where and how are you getting all of this money?! Scram, you have no need for me!
|
||||
}
|
||||
|
||||
TruffleChat.Normal: I don't feel very safe; I think there's pigs following me around and it frightens me.
|
||||
|
||||
WitchDoctorChat: {
|
||||
BloodMoon: This is as good a time as any to pick up the best ingredients for potions.
|
||||
PrePlantera: I remember hearing some rumours about some villagers that were creating a monster to defend their village, maybe their magic can be of use to you?
|
||||
Jungle: I wonder how my relatives are doing, last time I checked on them they were too busy praising the... Sun, I think.
|
||||
PrePlantera: I recall rumors about some villagers that were creating a monster to defend their village. Such magic could never tame beasts, but perhaps it can be of use to you.
|
||||
Jungle: I wonder how my kind is doing. Last time I checked on them they were too busy praising the... Sun, I think.
|
||||
}
|
||||
|
||||
WizardChat.Hardmode: Space just got way too close for comfort.
|
||||
|
||||
@@ -1021,7 +1021,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
case NPCID.Cyborg:
|
||||
if (Main.rand.NextBool(5) && NPC.downedMoonlord)
|
||||
chat = CalamityUtils.GetTextValue("Vanilla.CyborgChat.MoonLordDefeated" + Main.rand.Next(1, 2 + 1));
|
||||
chat = CalamityUtils.GetTextValue("Vanilla.CyborgChat.MoonLordDefeated");
|
||||
else if (Main.rand.NextBool(10) && !DownedBossSystem.downedPlaguebringer && NPC.downedGolemBoss)
|
||||
chat = CalamityUtils.GetTextValue("Vanilla.CyborgChat.MentionPlague");
|
||||
else if (Main.rand.NextBool(10) && Main.raining)
|
||||
@@ -1038,10 +1038,6 @@ namespace CalamityMod.NPCs
|
||||
case NPCID.Dryad:
|
||||
if (Main.rand.NextBool(5) && DownedBossSystem.downedDoG && Main.eclipse)
|
||||
chat = CalamityUtils.GetTextValue("Vanilla.DryadChat.DarksunEclipse");
|
||||
else if (Main.rand.NextBool(5) && Main.LocalPlayer.ZoneGlowshroom)
|
||||
{
|
||||
chat = CalamityUtils.GetTextValue("Vanilla.DryadChat.Mushroom");
|
||||
}
|
||||
else if (Main.rand.NextBool(5) && Main.LocalPlayer.Calamity().ZoneSulphur)
|
||||
chat = CalamityUtils.GetTextValue("Vanilla.DryadChat.SulphurSea");
|
||||
else if (Main.rand.NextBool(5) && Main.hardMode)
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.npcFrameCount[Type] = 16;
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers()
|
||||
{
|
||||
SpriteDirection = 1
|
||||
@@ -34,7 +33,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.noGravity = true;
|
||||
NPC.damage = 0; // 0 contact damage, projectile damage is handled separately
|
||||
NPC.damage = 45;
|
||||
NPC.width = 56;
|
||||
NPC.height = 42;
|
||||
NPC.defense = 22;
|
||||
|
||||
@@ -22,7 +22,6 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
public const float CheckDistance = 480f;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
NPCID.Sets.NeedsExpertScaling[Type] = true;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers();
|
||||
value.Position.Y += 4;
|
||||
value.PortraitPositionYOverride = 24f;
|
||||
@@ -32,7 +31,7 @@ namespace CalamityMod.NPCs.SulphurousSea
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.noGravity = true;
|
||||
NPC.damage = 0; // 0 contact damage, projectile damage is handled separately
|
||||
NPC.damage = 45;
|
||||
NPC.width = 54;
|
||||
NPC.height = 42;
|
||||
NPC.defense = 25;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 993 B After Width: | Height: | Size: 858 B |
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@@ -140,7 +140,7 @@ public static partial class RevengeanceAndDeathAI
|
||||
NPC.velocity.Y = -2f;
|
||||
}
|
||||
|
||||
if ((NPC.type == NPCID.GiantFungiBulb || NPC.type == NPCID.FungiBulb) && !Main.player[NPC.target].DeadOrGhost)
|
||||
if (NPC.type == NPCID.GiantFungiBulb && !Main.player[NPC.target].DeadOrGhost)
|
||||
{
|
||||
if (NPC.localAI[0] > ((NPC.type == NPCID.GiantFungiBulb ? (CalamityWorld.revenge ? GiantFungiBulbSporeShootGateValue_Rev : GiantFungiBulbSporeShootGateValue) : FungiBulbSporeShootGateValue) - FungiBulbSporeTelegraphTime))
|
||||
{
|
||||
|
||||
@@ -117,6 +117,9 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
if (falling)
|
||||
modifiers.SourceDamage *= 0.75f;
|
||||
|
||||
if (Projectile.numHits > 1 && falling)
|
||||
Projectile.damage = (int)(Projectile.damage * 0.5f);
|
||||
if (Projectile.damage < 1)
|
||||
|
||||
@@ -105,19 +105,10 @@ namespace CalamityMod.Systems.Collections
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC will have its contact damage set to 0.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] DealsZeroContactDamage = Factory.CreateBoolSet(NPCID.Harpy, NPCID.Salamander, NPCID.Salamander2, NPCID.Salamander3, NPCID.Salamander4, NPCID.Salamander5,
|
||||
NPCID.Salamander6, NPCID.Salamander7, NPCID.Salamander8, NPCID.Salamander9, NPCID.GiantCursedSkull, NPCID.FungiBulb, NPCID.GiantFungiBulb, NPCID.IcyMerman,
|
||||
NPCID.AngryNimbus, NPCID.SandElemental, NPCID.DarkCaster, NPCID.FireImp, NPCID.Tim, NPCID.CultistArcherBlue, NPCID.DesertDjinn, NPCID.DiabolistRed, NPCID.DiabolistWhite,
|
||||
NPCID.Gastropod, NPCID.IceElemental, NPCID.IchorSticker, NPCID.Necromancer, NPCID.NecromancerArmored, NPCID.RaggedCaster, NPCID.RaggedCasterOpenCoat, NPCID.RuneWizard,
|
||||
NPCID.SkeletonArcher, NPCID.SkeletonCommando, NPCID.SkeletonSniper, NPCID.TacticalSkeleton, NPCID.Clown, NPCID.GoblinArcher, NPCID.GoblinSorcerer, NPCID.GoblinSummoner,
|
||||
NPCID.PirateCrossbower, NPCID.PirateDeadeye, NPCID.PirateCaptain, NPCID.SnowmanGangsta, NPCID.SnowBalla, NPCID.DrManFly, NPCID.Eyezor, NPCID.Nailhead, NPCID.BrainScrambler,
|
||||
NPCID.GigaZapper, NPCID.RayGunner, NPCID.ScutlixRider, NPCID.MartianWalker, NPCID.MartianTurret, NPCID.ElfCopter, NPCID.ElfArcher, NPCID.NebulaBrain, NPCID.NebulaSoldier,
|
||||
NPCID.StardustCellSmall, NPCID.StardustJellyfishBig, NPCID.StardustSoldier, NPCID.StardustSpiderBig, NPCID.VortexHornetQueen, NPCID.VortexRifleman, NPCID.VortexSoldier,
|
||||
public static bool[] DealsZeroContactDamage = Factory.CreateBoolSet(NPCID.AngryNimbus, NPCID.DarkCaster, NPCID.FireImp, NPCID.Tim, NPCID.DesertDjinn, NPCID.DiabolistRed, NPCID.DiabolistWhite,
|
||||
NPCID.Necromancer, NPCID.NecromancerArmored, NPCID.RaggedCaster, NPCID.RaggedCasterOpenCoat, NPCID.RuneWizard, NPCID.GoblinSorcerer, NPCID.GoblinSummoner, NPCID.NebulaBrain,
|
||||
NPCID.PirateShipCannon, NPCID.MartianSaucer, NPCID.MartianSaucerCannon, NPCID.MartianSaucerCore, NPCID.MartianSaucerTurret, NPCID.Probe, NPCID.CultistBoss, NPCID.GolemHead,
|
||||
NPCID.GolemHeadFree, NPCID.MoonLordFreeEye, NPCID.BloodSquid, NPCID.PlanterasHook, NPCID.Dandelion, NPCID.DD2DarkMageT1, NPCID.DD2DarkMageT3, NPCID.DD2OgreT2,
|
||||
NPCID.DD2OgreT3, NPCID.DD2GoblinBomberT1, NPCID.DD2GoblinBomberT2, NPCID.DD2GoblinBomberT3, NPCID.DD2JavelinstT1, NPCID.DD2JavelinstT2, NPCID.DD2JavelinstT3,
|
||||
NPCID.DD2KoboldWalkerT2, NPCID.DD2KoboldWalkerT3, NPCID.DD2DrakinT2, NPCID.DD2DrakinT3, NPCID.DD2KoboldFlyerT2, NPCID.DD2KoboldFlyerT3, NPCID.DD2WitherBeastT2,
|
||||
NPCID.DD2WitherBeastT3, NPCID.DD2LightningBugT3, NPCID.MourningWood, NPCID.Pumpking, NPCID.Everscream, NPCID.IceQueen, NPCID.SantaNK1, NPCID.AncientDoom);
|
||||
NPCID.GolemHeadFree, NPCID.MoonLordFreeEye, NPCID.BloodSquid, NPCID.PlanterasHook, NPCID.MourningWood, NPCID.Pumpking, NPCID.Everscream, NPCID.IceQueen, NPCID.SantaNK1, NPCID.AncientDoom);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC will have its damage reduced by 25% if the world is in Hardmode.<br/>
|
||||
|
||||
Reference in new issue
Block a user