Skip to content

Commit

Permalink
Merge pull request #13 from Jonyboylovespie/master
Browse files Browse the repository at this point in the history
Fixes for 39.1
  • Loading branch information
mend-dev authored Oct 17, 2023
2 parents 7a71944 + 0e8b3d7 commit 9f32766
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Bosses/Bloonarius/BloonariusConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public static class BloonariusConfig {
public static void ApplyBloonariusSettings(BloonModel bloonModel, string difficulty, int level) {
float multiplier = difficultyMultipliers[difficulty];

bloonModel.maxHealth = baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier;
if (level == 0) { bloonModel.maxHealth = baseMaxHealth * multiplier; }
bloonModel.maxHealth = (int)(baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier);
if (level == 0) { bloonModel.maxHealth = (int)(baseMaxHealth * multiplier); }

bloonModel.leakDamage = 99999f;
bloonModel.speed = (baseSpeed + levelSpeedAddition * level) * multiplier;
Expand Down
4 changes: 2 additions & 2 deletions Bosses/Dreadbloon/DreadRockConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public static class DreadRockConfig {
public static void ApplyDreadRockSettings(BloonModel bloonModel, string difficulty, int level) {
float multiplier = difficultyMultipliers[difficulty];

bloonModel.maxHealth = baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier;
if (level == 0) { bloonModel.maxHealth = baseMaxHealth * multiplier; }
bloonModel.maxHealth = (int)(baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier);
if (level == 0) { bloonModel.maxHealth = (int)(baseMaxHealth * multiplier); }

bloonModel.leakDamage = (baseLeakDamage + levelLeakDamageAddition * level) * multiplier; ;
bloonModel.speed = (baseSpeed + levelSpeedAddition * level) * multiplier;
Expand Down
4 changes: 2 additions & 2 deletions Bosses/Dreadbloon/DreadbloonConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public static class DreadbloonConfig {
public static void ApplyDreadbloonSettings(BloonModel bloonModel, string difficulty, int level) {
float multiplier = difficultyMultipliers[difficulty];

bloonModel.maxHealth = baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier;
if (level == 0) { bloonModel.maxHealth = baseMaxHealth * multiplier; }
bloonModel.maxHealth = (int)(baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier);
if (level == 0) { bloonModel.maxHealth = (int)(baseMaxHealth * multiplier); }

bloonModel.leakDamage = 99999f;
bloonModel.speed = (baseSpeed + levelSpeedAddition * level) * multiplier;
Expand Down
4 changes: 2 additions & 2 deletions Bosses/Lych/LychConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public static class LychConfig {
public static void ApplyLychSettings(BloonModel bloonModel, string difficulty, int level) {
float multiplier = difficultyMultipliers[difficulty];

bloonModel.maxHealth = baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier;
if (level == 0) { bloonModel.maxHealth = baseMaxHealth * multiplier; }
bloonModel.maxHealth = (int)(baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier);
if (level == 0) { bloonModel.maxHealth = (int)(baseMaxHealth * multiplier); }

bloonModel.leakDamage = 99999f;
bloonModel.speed = (baseSpeed + levelSpeedAddition * level) * multiplier;
Expand Down
4 changes: 2 additions & 2 deletions Bosses/Lych/MiniLychConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public static class MiniLychConfig {
public static void ApplyMiniLychSettings(BloonModel bloonModel, string difficulty, int level) {
float multiplier = difficultyMultipliers[difficulty];

bloonModel.maxHealth = baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier;
if (level == 0) { bloonModel.maxHealth = baseMaxHealth * multiplier; }
bloonModel.maxHealth = (int)(baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier);
if (level == 0) { bloonModel.maxHealth = (int)(baseMaxHealth * multiplier); }

bloonModel.leakDamage = 99999f;
bloonModel.speed = (baseSpeed + levelSpeedAddition * level) * multiplier;
Expand Down
4 changes: 2 additions & 2 deletions Bosses/Phayze/PhayzeConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public static class PhayzeConfig {
public static void ApplyPhayzeSettings(BloonModel bloonModel, string difficulty, int level) {
float multiplier = difficultyMultipliers[difficulty];

bloonModel.maxHealth = baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier;
if (level == 0) { bloonModel.maxHealth = baseMaxHealth * multiplier; }
bloonModel.maxHealth = (int)(baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier);
if (level == 0) { bloonModel.maxHealth = (int)(baseMaxHealth * multiplier); }

bloonModel.leakDamage = 99999f;
bloonModel.speed = (baseSpeed + levelSpeedAddition * level) * multiplier;
Expand Down
4 changes: 2 additions & 2 deletions Bosses/Vortex/VortexConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public static class VortexConfig {
public static void ApplyVortexSettings(BloonModel bloonModel, string difficulty, int level) {
float multiplier = difficultyMultipliers[difficulty];

bloonModel.maxHealth = baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier;
if (level == 0) { bloonModel.maxHealth = baseMaxHealth * multiplier; }
bloonModel.maxHealth = (int)(baseMaxHealth * (levelMaxHealthMultiplier * level) * multiplier);
if (level == 0) { bloonModel.maxHealth = (int)(baseMaxHealth * multiplier); }

bloonModel.leakDamage = 99999f;
bloonModel.speed = (baseSpeed + levelSpeedAddition * level) * multiplier;
Expand Down
2 changes: 1 addition & 1 deletion Gamemodes/Roguemode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void SetLivesEnabled(bool enabled) {

public void ChangeCostModifier(float modifier) {
if (!baseGameModeModel.HasMutator<GlobalCostModModel>()) {
baseGameModeModel.AddMutator(new GlobalCostModModel("costMultiplier", 1f, false));
baseGameModeModel.AddMutator(new GlobalCostModModel("costMultiplier", 1f));
}
baseGameModeModel.GetMutator<GlobalCostModModel>().multiplier = modifier;
}
Expand Down
4 changes: 2 additions & 2 deletions ModHelperData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace BTD6Rogue;

public static class ModHelperData {
public const string WorksOnVersion = "38.3";
public const string Version = "2.0.1";
public const string WorksOnVersion = "39.1";
public const string Version = "2.0.2";
public const string Name = "BTD6Rogue";
public const string Description =
"BTD6 Rogue! The mod that turns bloons into a Roguelike, or BTD7 apparently\n" +
Expand Down

0 comments on commit 9f32766

Please sign in to comment.