Skip to content

Commit

Permalink
Fix for v43
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Jun 2, 2024
1 parent d225402 commit 8aec04b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x # net6 can still build older as well
dotnet-version: 8.0.x


- name: Build
Expand Down
2 changes: 1 addition & 1 deletion LATEST.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Fixed for BTD6 v42
- Fixed for BTD6 v43
7 changes: 4 additions & 3 deletions Levels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public override void ApplyUpgrade(TowerModel towerModel)
projectile.GetBehavior<ProjectileFilterModel>().filters = projectile
.GetBehavior<ProjectileFilterModel>().filters
.RemoveItemOfType<FilterModel, FilterWithChanceModel>();
projectile.collisionPasses = new[] { -1, 0 };
projectile.collisionPasses = new[] {-1, 0};
projectile.filters = projectile.GetBehavior<ProjectileFilterModel>().filters;
projectile.radius = 50;
projectile.AddBehavior(dot);
Expand All @@ -100,7 +100,7 @@ public override void ApplyUpgrade(TowerModel towerModel)
towerModel.AddBehavior(new FreeUpgradeSupportModel("", 1,
"IndustrialFarmer:FreeUpgrades", new[]
{
new FilterInBaseTowerIdModel("", new[] { TowerType.BananaFarm })
new FilterInBaseTowerIdModel("", new[] {TowerType.BananaFarm})
}));
}
}
Expand Down Expand Up @@ -154,7 +154,8 @@ public override void ApplyUpgrade(TowerModel towerModel)
{
towerModel.AddBehavior(new DiscountZoneModel("", .1f, 1,
IndustrialFarmer.IndustrialFarmerDiscount,
"IndustrialFarmer", false, 0, "IndustrialFarmer", GetTextureGUID("IndustrialFarmer-Icon")));
"IndustrialFarmer", false, 0, "IndustrialFarmer", GetTextureGUID("IndustrialFarmer-Icon"), "", "",
false));
}
}

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 = "42.1";
public const string Version = "1.0.9";
public const string WorksOnVersion = "43.0";
public const string Version = "1.0.10";
public const string Name = "Industrial Farmer";

public const string Description =
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<h1 align="center">
<a href="https://github.com/doombubbles/IndustrialFarmer/releases/latest/download/IndustrialFarmer.dll">
<img align="left" alt="Icon" height="90" src="IndustrialFarmer-Icon.png">
<img align="right" alt="Download" height="75" src="https://raw.githubusercontent.com/gurrenm3/BTD-Mod-Helper/master/BloonsTD6%20Mod%20Helper/Resources/DownloadBtn.png">
</a>

<h1 align="center">Norman, The Industrial Farmer</h1>
Norman, The Industrial Farmer
</h1>

### This is my example custom hero for Bloons TD 6.

Expand Down

0 comments on commit 8aec04b

Please sign in to comment.