Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
feea0aa19a
7 files changed
+25
-16
No files matched your search
@@ -113,7 +113,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
{
|
||||
if (!spawnInfo.Player.Calamity().ZoneSulphur || AcidRainEvent.AcidRainEventIsOngoing)
|
||||
if (!spawnInfo.Player.Calamity().ZoneSulphur || AcidRainEvent.AcidRainEventIsOngoing || !NPC.downedMoonlord)
|
||||
return 0f;
|
||||
|
||||
// Increase bloodworm spawn rate relative to the number of existing bloodworms, parabolic multiplier ranging from 5x spawn rate with 0 blood worms to 1x with 5 or more
|
||||
|
||||
@@ -115,10 +115,10 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemDropRule.Common(ItemID.BoneSword, 20).OnFailedRoll(
|
||||
ItemDropRule.Common(ItemID.Starfury, 50)).OnFailedRoll(
|
||||
ItemDropRule.Common(ItemID.EnchantedSword, 50)).OnFailedRoll(
|
||||
ItemDropRule.Common(ItemID.Terragrim, 100)));
|
||||
npcLoot.Add(ItemID.BoneSword, 20);
|
||||
npcLoot.Add(ItemID.Starfury, 50);
|
||||
npcLoot.Add(ItemID.EnchantedSword, 50);
|
||||
npcLoot.Add(ItemID.Terragrim, 100);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
{
|
||||
// Patron names
|
||||
"Xplizzy", // <@!98826096237109248> Whitegiraffe#6342
|
||||
"Freakish", // <@!750363283520749598> Freakish#0001
|
||||
"Freakish", // <@!750363283520749598> Freakish#0001
|
||||
|
||||
// Original names
|
||||
"Laura", "Mie", "Bonnie",
|
||||
@@ -68,8 +68,8 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
|
||||
|
||||
|
||||
// Will move to localization whenever that is cleaned up.
|
||||
new FlavorTextBestiaryInfoElement("A kleptomaniac who is a bit of a coward when it comes to face-to-face fights. She’s rather good at getting herself both into and out of dicey situations.")
|
||||
// Will move to localization whenever that is cleaned up.
|
||||
new FlavorTextBestiaryInfoElement("A kleptomaniac who is a bit of a coward when it comes to face-to-face fights. She’s rather good at getting herself both into and out of dicey situations.")
|
||||
});
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
return CalamityWorld.spawnedBandit;
|
||||
}
|
||||
|
||||
public override List<string> SetNPCNameList() => PossibleNames;
|
||||
public override List<string> SetNPCNameList() => PossibleNames;
|
||||
|
||||
public override string GetChat()
|
||||
{
|
||||
@@ -207,13 +207,13 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
CalamityWorld.Reforges = 0;
|
||||
int[] coinCounts = Utils.CoinsSplit(CalamityWorld.MoneyStolenByBandit);
|
||||
if (coinCounts[0] > 0)
|
||||
Item.NewItem(NPC.GetSource_Loot(), NPC.Hitbox, ItemID.PlatinumCoin, coinCounts[0]);
|
||||
Item.NewItem(NPC.GetSource_Loot(), NPC.Hitbox, ItemID.CopperCoin, coinCounts[0]);
|
||||
if (coinCounts[1] > 0)
|
||||
Item.NewItem(NPC.GetSource_Loot(), NPC.Hitbox, ItemID.GoldCoin, coinCounts[1]);
|
||||
Item.NewItem(NPC.GetSource_Loot(), NPC.Hitbox, ItemID.SilverCoin, coinCounts[1]);
|
||||
if (coinCounts[2] > 0)
|
||||
Item.NewItem(NPC.GetSource_Loot(), NPC.Hitbox, ItemID.SilverCoin, coinCounts[2]);
|
||||
Item.NewItem(NPC.GetSource_Loot(), NPC.Hitbox, ItemID.GoldCoin, coinCounts[2]);
|
||||
if (coinCounts[3] > 0)
|
||||
Item.NewItem(NPC.GetSource_Loot(), NPC.Hitbox, ItemID.CopperCoin, coinCounts[3]);
|
||||
Item.NewItem(NPC.GetSource_Loot(), NPC.Hitbox, ItemID.PlatinumCoin, coinCounts[3]);
|
||||
|
||||
CalamityWorld.MoneyStolenByBandit = 0;
|
||||
NPC goblinFucker = Main.npc[goblinIndex];
|
||||
|
||||
@@ -85,13 +85,18 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
float angle = (Owner.Calamity().mouseWorld - Owner.MountedCenter).ToRotation();
|
||||
float blinkage = 0;
|
||||
if (Charge >= MaxCharge * 1.5f)
|
||||
{
|
||||
blinkage = (float)Math.Sin(MathHelper.Clamp((Charge - MaxCharge * 1.5f) / 15f, 0, 1) * MathHelper.PiOver2 + MathHelper.PiOver2);
|
||||
}
|
||||
|
||||
Effect effect = Filters.Scene["SpreadTelegraph"].GetShader().Shader;
|
||||
effect.Parameters["centerOpacity"].SetValue(0.7f);
|
||||
effect.Parameters["mainOpacity"].SetValue((float)Math.Sqrt(ChargeProgress));
|
||||
effect.Parameters["halfSpreadAngle"].SetValue(Spread / 2f);
|
||||
effect.Parameters["edgeColor"].SetValue(Color.DeepSkyBlue.ToVector3());
|
||||
effect.Parameters["centerColor"].SetValue(Color.DodgerBlue.ToVector3());
|
||||
effect.Parameters["edgeColor"].SetValue(Color.Lerp(Color.DeepSkyBlue, Color.Coral, blinkage ).ToVector3());
|
||||
effect.Parameters["centerColor"].SetValue(Color.Lerp(Color.DodgerBlue, Color.Coral, blinkage).ToVector3());
|
||||
effect.Parameters["edgeBlendLenght"].SetValue(0.07f);
|
||||
effect.Parameters["edgeBlendStrength"].SetValue(8f);
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace CalamityMod.Tiles.Astral
|
||||
AddMapEntry(new Color(65, 56, 83));
|
||||
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
TileID.Sets.CanBeDugByShovel[Type] = true;
|
||||
TileID.Sets.CanBeClearedDuringOreRunner[Type] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace CalamityMod.Tiles.AstralDesert
|
||||
AddMapEntry(new Color(187, 220, 237));
|
||||
|
||||
TileID.Sets.TouchDamageSands[Type] = 15;
|
||||
TileID.Sets.CanBeDugByShovel[Type] = true;
|
||||
TileID.Sets.Conversion.Sand[Type] = true;
|
||||
TileID.Sets.ForAdvancedCollision.ForSandshark[Type] = true;
|
||||
TileID.Sets.Falling[Type] = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -16,6 +16,8 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
CalamityUtils.MergeWithDesert(Type);
|
||||
|
||||
TileID.Sets.ChecksForMerge[Type] = true;
|
||||
TileID.Sets.CanBeDugByShovel[Type] = true;
|
||||
|
||||
DustType = 108;
|
||||
ItemDrop = ModContent.ItemType<Items.Placeables.EutrophicSand>();
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
|
||||
Reference in new issue
Block a user