Removed abyssBreathLossStat var
And the external variable + mod call
This commit is contained in:
1 parent
7ac52fee82
commit
28cca67bac
5 files changed
+4
-34
No files matched your search
@@ -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)
|
||||
@@ -1271,21 +1265,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