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
+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":
|
||||
|
||||
Reference in new issue
Block a user