-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ae3157f
Showing
29 changed files
with
433 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
using MelonLoader; | ||
using BTD_Mod_Helper; | ||
using FourthPath; | ||
using PathsPlusPlus; | ||
using Il2CppAssets.Scripts.Models.Towers; | ||
using BTD_Mod_Helper.Api.Enums; | ||
using Il2Cpp; | ||
using Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors; | ||
using JetBrains.Annotations; | ||
using BTD_Mod_Helper.Extensions; | ||
using Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack; | ||
using Il2CppSystem.IO; | ||
using Il2CppAssets.Scripts.Simulation.Towers.Behaviors; | ||
using Il2CppAssets.Scripts.Models.Towers.Behaviors; | ||
using Il2CppAssets.Scripts.Utils; | ||
|
||
[assembly: MelonInfo(typeof(FourthPath.FourthPath), ModHelperData.Name, ModHelperData.Version, ModHelperData.RepoOwner)] | ||
[assembly: MelonGame("Ninja Kiwi", "BloonsTD6")] | ||
|
||
namespace FourthPath; | ||
|
||
public class FourthPath : BloonsTD6Mod | ||
{ | ||
|
||
public class FourthPath2 : PathPlusPlus | ||
{ | ||
public override string Tower => TowerType.BombShooter; | ||
public override int UpgradeCount => 5; | ||
|
||
|
||
} | ||
public class CamoBombs : UpgradePlusPlus<FourthPath2> | ||
{ | ||
public override int Cost => 50; | ||
public override int Tier => 1; | ||
public override string Icon => VanillaSprites.MonkeySenseUpgradeIcon; | ||
|
||
public override string Description => "Darts can pop Frozen bloons"; | ||
|
||
public override void ApplyUpgrade(TowerModel towerModel) | ||
{ | ||
towerModel.AddBehavior(new OverrideCamoDetectionModel("OverrideCamoDetectionModel_", true)); | ||
} | ||
} | ||
public class BitExtraRange : UpgradePlusPlus<FourthPath2> | ||
{ | ||
public override int Cost => 250; | ||
public override int Tier => 2; | ||
public override string Icon => VanillaSprites.LongerRangeUpgradeIcon; | ||
public override string Description => "Bombs get more range"; | ||
|
||
public override void ApplyUpgrade(TowerModel towerModel) | ||
{ | ||
towerModel.GetBehavior<AttackModel>().range += 15; | ||
towerModel.range += 15; | ||
} | ||
|
||
} | ||
partial class FastSpeed : UpgradePlusPlus<FourthPath2> | ||
{ | ||
public override int Cost => 1420; | ||
public override int Tier => 3; | ||
public override string Icon => VanillaSprites.FasterBarrelSpinUpgradeIcon; | ||
public override string Description => "Bomb shooter shoots really fast"; | ||
|
||
public override void ApplyUpgrade(TowerModel towerModel) | ||
{ | ||
var attackModel = towerModel.GetBehavior<AttackModel>(); | ||
attackModel.weapons[0].rate = 0.5f; | ||
} | ||
} | ||
public class QuadDropilesDamage : UpgradePlusPlus<FourthPath2> | ||
{ | ||
public override int Cost => 7500; | ||
public override int Tier => 4; | ||
public override string Icon => VanillaSprites.JuggernautUpgradeIcon; | ||
public override string Description => "Bomb shooter does Quad damage"; | ||
|
||
public override void ApplyUpgrade(TowerModel towerModel) | ||
{ | ||
var attackModel = towerModel.GetBehavior<AttackModel>(); | ||
attackModel.weapons[0].projectile.GetBehavior<DamageModel>().damage *= 4; | ||
} | ||
} | ||
public class UlimatePower : UpgradePlusPlus<FourthPath2> | ||
{ | ||
public override int Cost => 150000; | ||
public override int Tier => 5; | ||
public override string Icon => VanillaSprites.TrueSonGodUpgradeIcon; | ||
public override string Description => "Power!!"; | ||
public override string? Portrait => "Bcrush_X_TSG"; | ||
public override void ApplyUpgrade(TowerModel towerModel) | ||
{ | ||
towerModel.display = new PrefabReference() { guidRef = "02869eae1ede09640bbf409d69d6aabe" }; | ||
var attackModel = towerModel.GetBehavior<AttackModel>(); | ||
attackModel.weapons[0].projectile.display = new PrefabReference() { guidRef = "dcd6cd8511c9a03458a32f42f860882c" }; | ||
attackModel.weapons[0].projectile.GetBehavior<DamageModel>().damage = 1000000; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<RootNamespace>FourthPath</RootNamespace> | ||
<Configurations>Debug;Release</Configurations> | ||
<Nullable>enable</Nullable> | ||
<AssemblyName>FourthPath</AssemblyName> | ||
<LangVersion>latest</LangVersion> | ||
<Optimize>False</Optimize> | ||
<DebugType>embedded</DebugType> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\btd6.targets"/> | ||
|
||
<ItemGroup> | ||
<Reference Include="PathsPlusPlus"> | ||
<HintPath>$(BloonsTD6)\Mods\PathsPlusPlus.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.4.33110.190 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FourthPath", "FourthPath.csproj", "{561A9956-B233-4A83-87E5-D886071BC206}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{561A9956-B233-4A83-87E5-D886071BC206}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{561A9956-B233-4A83-87E5-D886071BC206}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{561A9956-B233-4A83-87E5-D886071BC206}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{561A9956-B233-4A83-87E5-D886071BC206}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {ED8C0DB6-D308-4167-936E-835A3A5386AA} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
When you push a tag to GitHub, the contents of this file will become your release message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace FourthPath; | ||
|
||
public static class ModHelperData | ||
{ | ||
public const string WorksOnVersion = "36.1"; | ||
public const string Version = "1.0.0"; | ||
public const string Name = "FourthPath"; | ||
|
||
public const string Description = "An empty mod"; | ||
public const string Dependencies = "doombubbles/paths-plus-plus"; | ||
|
||
public const string RepoOwner = ""; // TODO add your github username hero, also in the download url in README.md | ||
public const string RepoName = ""; // TODO add your repo name here, also in the download url in README.md | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"profiles": { | ||
"BloonsTD6": { | ||
"commandName": "Executable", | ||
"executablePath": "$(BloonsTD6)/BloonsTD6.exe", | ||
"workingDirectory": "$(BloonsTD6)" | ||
}, | ||
"BloonsTD6 (ML Debug)": { | ||
"commandName": "Executable", | ||
"executablePath": "$(BloonsTD6)/BloonsTD6.exe", | ||
"workingDirectory": "$(BloonsTD6)", | ||
"commandLineArgs": "--melonloader.debug" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<a href="https://github.com/doombubbles/template-mod/releases/latest/download/FourthPath.dll"> | ||
<img align="left" alt="Icon" height="90" src="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">FourthPath</h1> | ||
|
||
This is an empty mod generated by BTD6 Mod Helper | ||
|
||
For your mod, remember to add the GitHub topic "btd6-mod" | ||
|
||
Features a GitHub actions setup to automatically build the mod whenever commits are pushed, | ||
and publish a release if a tag is pushed (using the LATEST.md as the body). | ||
|
||
[![Requires BTD6 Mod Helper](https://raw.githubusercontent.com/gurrenm3/BTD-Mod-Helper/master/banner.png)](https://github.com/gurrenm3/BTD-Mod-Helper#readme) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"runtimeTarget": { | ||
"name": ".NETCoreApp,Version=v6.0", | ||
"signature": "" | ||
}, | ||
"compilationOptions": {}, | ||
"targets": { | ||
".NETCoreApp,Version=v6.0": { | ||
"FourthPath/1.0.0": { | ||
"dependencies": { | ||
"PathsPlusPlus": "1.0.0.0" | ||
}, | ||
"runtime": { | ||
"FourthPath.dll": {} | ||
} | ||
}, | ||
"PathsPlusPlus/1.0.0.0": { | ||
"runtime": { | ||
"PathsPlusPlus.dll": { | ||
"assemblyVersion": "1.0.0.0", | ||
"fileVersion": "1.0.0.0" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"libraries": { | ||
"FourthPath/1.0.0": { | ||
"type": "project", | ||
"serviceable": false, | ||
"sha512": "" | ||
}, | ||
"PathsPlusPlus/1.0.0.0": { | ||
"type": "reference", | ||
"serviceable": false, | ||
"sha512": "" | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated by a tool. | ||
// Runtime Version:4.0.30319.42000 | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
using System; | ||
using System.Reflection; | ||
|
||
[assembly: System.Reflection.AssemblyCompanyAttribute("FourthPath")] | ||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] | ||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] | ||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] | ||
[assembly: System.Reflection.AssemblyProductAttribute("FourthPath")] | ||
[assembly: System.Reflection.AssemblyTitleAttribute("FourthPath")] | ||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] | ||
|
||
// Generated by the MSBuild WriteCodeFragment class. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d7908851dcfac9f28c6b1089e10c27beeffd3692 |
11 changes: 11 additions & 0 deletions
11
obj/Debug/net6.0/FourthPath.GeneratedMSBuildEditorConfig.editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
is_global = true | ||
build_property.TargetFramework = net6.0 | ||
build_property.TargetPlatformMinVersion = | ||
build_property.UsingMicrosoftNETSdkWeb = | ||
build_property.ProjectTypeGuids = | ||
build_property.InvariantGlobalization = | ||
build_property.PlatformNeutralAssembly = | ||
build_property.EnforceExtendedAnalyzerRules = | ||
build_property._SupportedPlatformList = Linux,macOS,Windows | ||
build_property.RootNamespace = FourthPath | ||
build_property.ProjectDir = C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\ |
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6b594b666a66afe9e37e361f6e723fa5c2ade855 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\obj\Debug\net6.0\FourthPath.csproj.AssemblyReference.cache | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\obj\Debug\net6.0\FourthPath.GeneratedMSBuildEditorConfig.editorconfig | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\obj\Debug\net6.0\FourthPath.AssemblyInfoInputs.cache | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\obj\Debug\net6.0\FourthPath.AssemblyInfo.cs | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\obj\Debug\net6.0\FourthPath.csproj.CoreCompileInputs.cache | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\bin\Debug\net6.0\FourthPath.deps.json | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\bin\Debug\net6.0\FourthPath.dll | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\bin\Debug\net6.0\PathsPlusPlus.dll | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\obj\Debug\net6.0\FourthPath.csproj.CopyComplete | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\obj\Debug\net6.0\FourthPath.dll | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\obj\Debug\net6.0\refint\FourthPath.dll | ||
C:\Users\cayja\OneDrive\Documents\BTD6 Mod Sources\FourthPath\obj\Debug\net6.0\ref\FourthPath.dll |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"format": 1, | ||
"restore": { | ||
"C:\\Users\\cayja\\OneDrive\\Documents\\BTD6 Mod Sources\\FourthPath\\FourthPath.csproj": {} | ||
}, | ||
"projects": { | ||
"C:\\Users\\cayja\\OneDrive\\Documents\\BTD6 Mod Sources\\FourthPath\\FourthPath.csproj": { | ||
"version": "1.0.0", | ||
"restore": { | ||
"projectUniqueName": "C:\\Users\\cayja\\OneDrive\\Documents\\BTD6 Mod Sources\\FourthPath\\FourthPath.csproj", | ||
"projectName": "FourthPath", | ||
"projectPath": "C:\\Users\\cayja\\OneDrive\\Documents\\BTD6 Mod Sources\\FourthPath\\FourthPath.csproj", | ||
"packagesPath": "C:\\Users\\cayja\\.nuget\\packages\\", | ||
"outputPath": "C:\\Users\\cayja\\OneDrive\\Documents\\BTD6 Mod Sources\\FourthPath\\obj\\", | ||
"projectStyle": "PackageReference", | ||
"configFilePaths": [ | ||
"C:\\Users\\cayja\\AppData\\Roaming\\NuGet\\NuGet.Config", | ||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" | ||
], | ||
"originalTargetFrameworks": [ | ||
"net6.0" | ||
], | ||
"sources": { | ||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, | ||
"https://api.nuget.org/v3/index.json": {} | ||
}, | ||
"frameworks": { | ||
"net6.0": { | ||
"targetAlias": "net6.0", | ||
"projectReferences": {} | ||
} | ||
}, | ||
"warningProperties": { | ||
"warnAsError": [ | ||
"NU1605" | ||
] | ||
} | ||
}, | ||
"frameworks": { | ||
"net6.0": { | ||
"targetAlias": "net6.0", | ||
"imports": [ | ||
"net461", | ||
"net462", | ||
"net47", | ||
"net471", | ||
"net472", | ||
"net48", | ||
"net481" | ||
], | ||
"assetTargetFallback": true, | ||
"warn": true, | ||
"frameworkReferences": { | ||
"Microsoft.NETCore.App": { | ||
"privateAssets": "all" | ||
} | ||
}, | ||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.105\\RuntimeIdentifierGraph.json" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | ||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> | ||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> | ||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> | ||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> | ||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\cayja\.nuget\packages\</NuGetPackageFolders> | ||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> | ||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.0</NuGetToolVersion> | ||
</PropertyGroup> | ||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> | ||
<SourceRoot Include="C:\Users\cayja\.nuget\packages\" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" /> |
Oops, something went wrong.