Skip to content

Commit

Permalink
Fix for 45
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Oct 9, 2024
1 parent 80a9c18 commit 8cf1ba9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LATEST.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Fixed for BTD6 v43.0
- Fixed for BTD6 v45.0
5 changes: 3 additions & 2 deletions MiscPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal static bool Prefix(RotateToPointer __instance)
{
if (__instance.dartlingMaintainLastPos is { tower: not null })
{
return __instance.dartlingMaintainLastPos.tower.targetType.intID == -1;
return __instance.dartlingMaintainLastPos.tower.TargetType.intID == -1;
}

return true;
Expand All @@ -41,7 +41,7 @@ internal static bool Prefix(LineEffect __instance)
{
if (__instance.rotateToPointer?.dartlingMaintainLastPos?.tower != null)
{
if (__instance.rotateToPointer.dartlingMaintainLastPos.tower.targetType.intID != -1 &&
if (__instance.rotateToPointer.dartlingMaintainLastPos.tower.TargetType.intID != -1 &&
__instance.rotateToPointer.attack.target.bloon != null &&
!__instance.lineEffectModel.isLineDisplayEndless)
{
Expand Down Expand Up @@ -157,6 +157,7 @@ private static void Postfix(InputManager __instance, TowerModel towerModel,
towerModel.tier > 0 &&
ModContent.GetInstance<CarryABigStick>().Enabled)
{

var mesh = RangeMesh.GetMeshStatically(__instance.Sim, position, towerModel.GetAttackModel().range,
towerModel.ignoreBlockers);
mesh.isValid = true;
Expand Down
4 changes: 2 additions & 2 deletions ModHelperData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public static class ModHelperData
{
public const string WorksOnVersion = "43.0";
public const string Version = "1.2.8";
public const string WorksOnVersion = "45.0";
public const string Version = "1.2.9";
public const string Name = "Mega Knowledge";

public const string Description =
Expand Down
5 changes: 3 additions & 2 deletions Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
"BloonsTD6": {
"commandName": "Executable",
"executablePath": "$(BloonsTD6)/BloonsTD6.exe",
"workingDirectory": "$(BloonsTD6)"
"workingDirectory": "$(BloonsTD6)",
"commandLineArgs": "moddingDev"
},
"BloonsTD6 (ML Debug)": {
"commandName": "Executable",
"executablePath": "$(BloonsTD6)/BloonsTD6.exe",
"workingDirectory": "$(BloonsTD6)",
"commandLineArgs": "--melonloader.debug"
"commandLineArgs": "moddingDev --melonloader.debug"
}
}
}

0 comments on commit 8cf1ba9

Please sign in to comment.