Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonyboylovespie authored Nov 6, 2022
1 parent b2f72d2 commit d6c708b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 75 deletions.
83 changes: 9 additions & 74 deletions BananaFarmParagon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ namespace BananaFarmParagon
{
public class Main : BloonsTD6Mod
{
public override void OnNewGameModel(GameModel gameModel)
public override void OnNewGameModel(GameModel gameModel, Il2CppSystem.Collections.Generic.List<ModModel> mods)
{

gameModel.GetParagonUpgradeForTowerId("BananaFarm").cost = CostHelper.CostForDifficulty(Settings.ParagonCost, mods);

foreach (var towerModel in gameModel.towers)
{
if (towerModel.appliedUpgrades.Contains(ModContent.UpgradeID<Paragon.BananaFarmParagonUpgrade>()))
Expand Down Expand Up @@ -79,22 +82,10 @@ public override void OnNewGameModel(GameModel gameModel)
}
}
}
public static bool Cheating;
public override void OnMainMenu()
{
base.OnMainMenu();

//cheats popup

if (Cheating == true)
{
PopupScreen.instance.ShowEventPopup(PopupScreen.Placement.menuCenter, "Cheat Mods Detected", "Cheat mods have been detected. To remove this message hold down ALT + F4 to close your game, then remove your cheat mods. If not then you will not be able to continue to the game. Have fun staring at this popup! :) :) :) :) :) :) :) :) :) :) :) :)", "Neither Does This", (Action)null, "This Does Nothing", (Action)null, Popup.TransitionAnim.AnimIndex, 38);
}
else
{

}

//Op melon msg


Expand All @@ -115,70 +106,9 @@ public override void OnMainMenu()
}
}


}
public override void OnApplicationStart()
{

//cheats check

if (ModContent.HasMod("BTD6 All Trophy Store Items Unlocker"))
{
Cheating = true;
}
if (ModContent.HasMod("BTD6 Boss Bloons In Sandbox"))
{
Cheating = true;
}
if (ModContent.HasMod("BTD6 Golden Bloon In Sandbox"))
{
Cheating = true;
}
if (ModContent.HasMod("BTD6 Infinite Monkey Knowledge"))
{
Cheating = true;
}
if (ModContent.HasMod("BTD6 Infinite Monkey Money"))
{
Cheating = true;
}
if (ModContent.HasMod("BTD6 Infinite Tower XP"))
{
Cheating = true;
}
if (ModContent.HasMod("Gurren Core"))
{
Cheating = true;
}
if (ModContent.HasMod("infinite_xp"))
{
Cheating = true;
}
if (ModContent.HasMod("NKHook6"))
{
Cheating = true;
}
if (ModContent.HasMod("NoAbilityCoolDown"))
{
Cheating = true;
}
if (ModContent.HasMod("UnlockAllMaps"))
{
Cheating = true;
}
if (ModContent.HasMod("UnlockDoubleCash"))
{
Cheating = true;
}
if (ModContent.HasMod("xpfarming"))
{
Cheating = true;
}
else
{

}

MelonLogger.Msg(ConsoleColor.Yellow, "The great one... Is ready...");
}
}
Expand All @@ -196,6 +126,11 @@ public class Settings : ModSettings
description = "Toggles the popup on main menu that tells you what version of the banana farm paragon you are on",
button = true,
};
public static readonly ModSettingInt ParagonCost = new(1000000)
{
displayName = "Paragon Totem Cost",
min = 0
};
}
public class Paragon
{
Expand Down
2 changes: 1 addition & 1 deletion ModHelperData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public static class ModHelperData
{
public const string Version = "1.0.1";
public const string Version = "1.0.2";
public const string Name = "Banana Farm Paragon";
public const string Description =
"This mod adds a paragon upgrade to the banana farm. You can toggle this mod from balanced to OP in mod settings.<br><br>" +
Expand Down

0 comments on commit d6c708b

Please sign in to comment.