Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into Point-Blank-Death
This commit is contained in:
commit
abe324f5d2
2353 files changed
+25896
-28160
No files matched your search
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod
|
||||
{
|
||||
@@ -31,6 +25,7 @@ namespace CalamityMod
|
||||
internal static Mod magicStorage = null;
|
||||
internal static Mod overhaul = null;
|
||||
internal static Mod redemption = null;
|
||||
internal static Mod remnants = null;
|
||||
internal static Mod soa = null;
|
||||
internal static Mod subworldLibrary = null;
|
||||
internal static Mod summonersAssociation = null;
|
||||
@@ -67,6 +62,8 @@ namespace CalamityMod
|
||||
ModLoader.TryGetMod("TerrariaOverhaul", out overhaul);
|
||||
redemption = null;
|
||||
ModLoader.TryGetMod("Redemption", out redemption);
|
||||
remnants = null;
|
||||
ModLoader.TryGetMod("Remnants", out remnants);
|
||||
soa = null;
|
||||
ModLoader.TryGetMod("SacredTools", out soa);
|
||||
subworldLibrary = null;
|
||||
@@ -97,6 +94,7 @@ namespace CalamityMod
|
||||
magicStorage = null;
|
||||
overhaul = null;
|
||||
redemption = null;
|
||||
remnants = null;
|
||||
soa = null;
|
||||
subworldLibrary = null;
|
||||
summonersAssociation = null;
|
||||
|
||||
+24
-41
@@ -671,12 +671,6 @@ namespace CalamityMod
|
||||
p.Calamity().externalAbyssLight += add;
|
||||
}
|
||||
|
||||
public static void AddBreathLossMult(Player p, float add)
|
||||
{
|
||||
if (p != null)
|
||||
p.Calamity().externalBreathLossMultBoost += add;
|
||||
}
|
||||
|
||||
public static void AddBreathTick(Player p, float add)
|
||||
{
|
||||
if (p != null)
|
||||
@@ -875,43 +869,45 @@ namespace CalamityMod
|
||||
#region Amalgam Potion Buff List
|
||||
public static bool SetAmalgamBuffList(int type, bool shouldBeListed)
|
||||
{
|
||||
if (shouldBeListed && !AmalgamBuffList.Includes(type))
|
||||
if (shouldBeListed && !CalamityBuffSets.BuffedByAmalgam[type])
|
||||
{
|
||||
AmalgamBuffList.List.Add(type);
|
||||
CalamityBuffSets.BuffedByAmalgam[type] = true;
|
||||
return true;
|
||||
}
|
||||
else if (!shouldBeListed)
|
||||
{
|
||||
return AmalgamBuffList.List.Remove(type);
|
||||
CalamityBuffSets.BuffedByAmalgam[type] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
public static bool SetPersistentBuffList(int type, bool isPersistent)
|
||||
{
|
||||
if (isPersistent && !PersistentBuffList.Includes(type))
|
||||
if (isPersistent && !CalamityBuffSets.IsPersistentBuff[type])
|
||||
{
|
||||
PersistentBuffList.List.Add(type);
|
||||
CalamityBuffSets.IsPersistentBuff[type] = true;
|
||||
return true;
|
||||
}
|
||||
else if (!isPersistent)
|
||||
{
|
||||
return PersistentBuffList.List.Remove(type);
|
||||
CalamityBuffSets.IsPersistentBuff[type] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool IsOnAmalgamBuffList(int type) => AmalgamBuffList.Includes(type);
|
||||
public static bool IsOnPersistentBuffList(int type) => PersistentBuffList.Includes(type);
|
||||
public static bool IsOnAmalgamBuffList(int type) => CalamityBuffSets.BuffedByAmalgam[type];
|
||||
public static bool IsOnPersistentBuffList(int type) => CalamityBuffSets.IsPersistentBuff[type];
|
||||
#endregion
|
||||
|
||||
#region Venerated Locket Bans
|
||||
public static bool AddToVeneratedLocketBanlist(int type)
|
||||
{
|
||||
if (!VeneratedLocketBanList.Includes(type))
|
||||
if (!CalamityItemSets.DisablesVeneratedLocketEffect[type])
|
||||
{
|
||||
VeneratedLocketBanList.List.Add(type);
|
||||
CalamityItemSets.DisablesVeneratedLocketEffect[type] = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -921,35 +917,37 @@ namespace CalamityMod
|
||||
#region Summoner Cross Class Nerf Disabling
|
||||
public static bool SetSummonerNerfDisabledByMinion(int type, bool disableNerf)
|
||||
{
|
||||
if (disableNerf && !DisabledSummonerNerfMinionList.Includes(type))
|
||||
if (disableNerf && !CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type])
|
||||
{
|
||||
DisabledSummonerNerfMinionList.List.Add(type);
|
||||
CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type] = true;
|
||||
return true;
|
||||
}
|
||||
else if (!disableNerf)
|
||||
{
|
||||
return DisabledSummonerNerfMinionList.List.Remove(type);
|
||||
CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
public static bool SetSummonerNerfDisabledByItem(int type, bool disableNerf)
|
||||
{
|
||||
if (disableNerf && !DisabledSummonerNerfItemList.Includes(type))
|
||||
if (disableNerf && !CalamityItemSets.ItemWhichDisablesSummonerNerf[type])
|
||||
{
|
||||
DisabledSummonerNerfItemList.List.Add(type);
|
||||
CalamityItemSets.ItemWhichDisablesSummonerNerf[type] = true;
|
||||
return true;
|
||||
}
|
||||
else if (!disableNerf)
|
||||
{
|
||||
return DisabledSummonerNerfItemList.List.Remove(type);
|
||||
CalamityItemSets.ItemWhichDisablesSummonerNerf[type] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool GetSummonerNerfDisabledByMinion(int type) => DisabledSummonerNerfMinionList.Includes(type);
|
||||
public static bool GetSummonerNerfDisabledByItem(int type) => DisabledSummonerNerfItemList.Includes(type);
|
||||
public static bool GetSummonerNerfDisabledByMinion(int type) => CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type];
|
||||
public static bool GetSummonerNerfDisabledByItem(int type) => CalamityItemSets.ItemWhichDisablesSummonerNerf[type];
|
||||
#endregion
|
||||
|
||||
#region Debuff Display support
|
||||
@@ -1037,9 +1035,9 @@ namespace CalamityMod
|
||||
//This is to add minions to the hp scaling config
|
||||
public static bool AddToHPScaling(int type)
|
||||
{
|
||||
if (!BossHPScalingList.List.Contains(type))
|
||||
if (!CalamityNPCSets.ScalesHealthLikeBoss[type])
|
||||
{
|
||||
BossHPScalingList.List.Add(type);
|
||||
CalamityNPCSets.ScalesHealthLikeBoss[type] = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -1231,21 +1229,6 @@ namespace CalamityMod
|
||||
AddAbyssLightStrength(castPlayer(args[1]), light);
|
||||
return null;
|
||||
|
||||
case "BreathMult":
|
||||
case "BreathLossMult":
|
||||
case "AddBreathMult":
|
||||
case "AddBreathLossMult":
|
||||
if (args.Length < 2)
|
||||
return new ArgumentNullException("ERROR: Must specify both a Player object (or int index of a Player) and breath loss mult change as a float.");
|
||||
if (args.Length < 3)
|
||||
return new ArgumentNullException("ERROR: Must specify breath loss mult change as a float.");
|
||||
if (!(args[2] is float breathLossMult))
|
||||
return new ArgumentException("ERROR: The second argument to \"AddBreathLossMult\" must be a float.");
|
||||
if (!isValidPlayerArg(args[1]))
|
||||
return new ArgumentException("ERROR: The first argument to \"AddBreathLossMult\" must be a Player or an int.");
|
||||
AddBreathLossMult(castPlayer(args[1]), breathLossMult);
|
||||
return null;
|
||||
|
||||
case "BreathTick":
|
||||
case "AbyssBreathTick":
|
||||
case "AddBreathTick":
|
||||
|
||||
@@ -2,14 +2,11 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Buffs.Summon;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.PermanentBoosters;
|
||||
using CalamityMod.Items.Pets;
|
||||
using CalamityMod.Items.Placeables.Furniture.BossRelics;
|
||||
using CalamityMod.Items.Placeables.Furniture.DevPaintings;
|
||||
@@ -17,16 +14,12 @@ using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.SummonItems;
|
||||
using CalamityMod.Items.SummonItems.Invasion;
|
||||
using CalamityMod.Items.Weapons.DraedonsArsenal;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
@@ -57,12 +50,10 @@ using CalamityMod.NPCs.SunkenSea;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.TownNPCs;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Projectiles.Summon.Umbrella;
|
||||
using CalamityMod.Systems;
|
||||
using CalamityMod.UI;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -460,9 +451,11 @@ namespace CalamityMod
|
||||
string entryName = "HiveMind";
|
||||
BossChecklistProgressionValues.TryGetValue(entryName, out float order);
|
||||
int type = NPCType<HiveMind>();
|
||||
Func<bool> IsCorruption = () => !WorldGen.crimson || Main.drunkWorld;
|
||||
List<int> collection = new List<int>() { ItemType<HiveMindRelic>(), ItemType<HiveMindTrophy>(), ItemType<HiveMindMask>(), ItemType<LoreHiveMind>(), ItemType<RottingEyeball>(), ItemType<ThankYouPainting>() };
|
||||
AddBoss(bossChecklist, calamity, entryName, order, DownedHiveMind, type, new Dictionary<string, object>()
|
||||
{
|
||||
["availability"] = IsCorruption,
|
||||
["spawnInfo"] = GetSpawnInfo(entryName),
|
||||
["despawnMessage"] = GetDespawnMessage(entryName),
|
||||
["spawnItems"] = ItemType<Teratoma>(),
|
||||
@@ -476,9 +469,11 @@ namespace CalamityMod
|
||||
string entryName = "Perforators";
|
||||
BossChecklistProgressionValues.TryGetValue(entryName, out float order);
|
||||
int type = NPCType<PerforatorHive>();
|
||||
Func<bool> IsCrimson = () => WorldGen.crimson || Main.drunkWorld;
|
||||
List<int> collection = new List<int>() { ItemType<PerforatorsRelic>(), ItemType<PerforatorTrophy>(), ItemType<PerforatorMask>(), ItemType<LorePerforators>(), ItemType<BloodyVein>(), ItemType<ThankYouPainting>() };
|
||||
AddBoss(bossChecklist, calamity, entryName, order, DownedPerforators, type, new Dictionary<string, object>()
|
||||
{
|
||||
["availability"] = IsCrimson,
|
||||
["displayName"] = GetDisplayName(entryName),
|
||||
["spawnInfo"] = GetSpawnInfo(entryName),
|
||||
["despawnMessage"] = GetDespawnMessage(entryName),
|
||||
@@ -563,8 +558,8 @@ namespace CalamityMod
|
||||
{
|
||||
string entryName = "BrimstoneElemental";
|
||||
BossChecklistProgressionValues.TryGetValue(entryName, out float order);
|
||||
int type = NPCType<BrimstoneElemental>();
|
||||
List<int> collection = new List<int>() { ItemType<BrimstoneElementalRelic>(), ItemType<BrimstoneElementalTrophy>(), ItemType<BrimstoneWaifuMask>(), ItemType<LoreAzafure>(), ItemType<LoreBrimstoneElemental>(), ItemType<CharredRelic>(), ItemType<ThankYouPainting>() };
|
||||
int type = NPCType<NPCs.BrimstoneElemental.BrimstoneElemental>();
|
||||
List<int> collection = new List<int>() { ItemType<BrimstoneElementalRelic>(), ItemType<BrimstoneElementalTrophy>(), ItemType<BrimstoneElementalMask>(), ItemType<LoreAzafure>(), ItemType<LoreBrimstoneElemental>(), ItemType<CharredRelic>(), ItemType<ThankYouPainting>() };
|
||||
AddBoss(bossChecklist, calamity, entryName, order, DownedBrimstoneElemental, type, new Dictionary<string, object>()
|
||||
{
|
||||
["spawnInfo"] = GetSpawnInfo(entryName),
|
||||
|
||||
Reference in new issue
Block a user