Skip to content

Commit 2ccb2dc

Browse files
Add files via upload
1 parent a442886 commit 2ccb2dc

5 files changed

Lines changed: 27 additions & 8 deletions

File tree

BloonsTDClasses.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public static void EtherealTower(Tower tower, TowerModel towerModel)
503503
}
504504
am.range += 6;
505505
}
506-
Model.IncreaseRange(6);
506+
Model.range += 6;
507507
Model.ignoreBlockers = true;
508508
}
509509
tower.UpdateRootModel(Model);
@@ -526,7 +526,7 @@ public static void PyrotechnicTower(Tower tower, TowerModel towerModel)
526526
}
527527
try
528528
{
529-
Model.GetAbility(0).GetBehavior<ActivateAttackModel>().attacks[0].weapons[0].projectile.GetBehavior<TravelStraitModel>().lifespan = 15f;
529+
Model.GetAbility(0).GetBehavior<ActivateAttackModel>().attacks[0].weapons[0].projectile.GetBehavior<CreateProjectileOnExhaustFractionModel>().projectile.GetBehavior<AgeModel>().Lifespan *= 2;
530530
}
531531
catch
532532
{
@@ -557,4 +557,5 @@ public override void PostBloonLeaked(Bloon bloon)
557557
}
558558
}
559559
}
560+
560561
}

ModHelperData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ namespace BloonsTDClasses;
22

33
public static class ModHelperData
44
{
5-
public const string WorksOnVersion = "34.3";
6-
public const string Version = "1.1.0";
5+
public const string WorksOnVersion = "35";
6+
public const string Version = "1.1.1";
77
public const string Name = "BloonsTDClasses";
88

99
public const string Description = "Adds a bunch of classes to BTD6 that each shake up the gameplay in unique ways";

NonUIPatches.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ public static bool Prefix(ref double cash,ref Simulation.CashSource source)
1616
if (source != Simulation.CashSource.CoopTransferedCash || source != Simulation.CashSource.TowerSold)
1717
{
1818
c *= .15f;
19-
c = -c;
2019
}
20+
21+
InGame.instance.AddCash(-c);
2122
}
2223
if (Globals.GlobalVar.Class == "Commander")
2324
{
@@ -26,15 +27,18 @@ public static bool Prefix(ref double cash,ref Simulation.CashSource source)
2627
c *= .05f;
2728
c = -c;
2829
}
30+
31+
InGame.instance.AddCash(c);
2932
}
3033
if (Globals.GlobalVar.Class == "Economist")
3134
{
3235
if (source != Simulation.CashSource.CoopTransferedCash || source != Simulation.CashSource.TowerSold)
3336
{
3437
c *= .2f;
3538
}
39+
40+
InGame.instance.AddCash(c);
3641
}
37-
InGame.instance.AddCash(c);
3842
return true;
3943
}
4044
}

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<a href="https://github.com/doombubbles/template-mod/releases/latest/download/BloonsTDClasses.dll">
2+
<img align="left" alt="Icon" height="90" src="Icon.png">
3+
<img align="right" alt="Download" height="75" src="https://raw.githubusercontent.com/gurrenm3/BTD-Mod-Helper/master/BloonsTD6%20Mod%20Helper/Resources/DownloadBtn.png">
4+
</a>
5+
6+
<h1 align="center">BloonsTDClasses</h1>
7+
8+
This is an empty mod generated by BTD6 Mod Helper
9+
10+
For your mod, remember to add the GitHub topic "btd6-mod"
11+
12+
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).
13+
14+
[![Requires BTD6 Mod Helper](https://raw.githubusercontent.com/gurrenm3/BTD-Mod-Helper/master/banner.png)](https://github.com/gurrenm3/BTD-Mod-Helper#readme)

UI/ClassUI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class ClassesMenu : ModGameMenu<ExtraSettingsScreen>
4848
internal const int LeftMenuWidth = 1750;
4949
internal const int RightMenuWidth = 1750;
5050
public override bool OnMenuOpened(Il2CppSystem.Object data)
51-
{
51+
{
5252
CommonForegroundScreen.instance.heading.SetActive(true);
5353
CommonForegroundHeader.SetText("Classes");
5454
var panelTransform = GameMenu.gameObject.GetComponentInChildrenByName<RectTransform>("Panel");
@@ -117,7 +117,7 @@ private void CreateLeftMenu(ModHelperPanel ClassesMenu)
117117

118118
/*var Button6 = ClassesMenu.AddButton(new Info("Class6", -2725, 600, 125 * 3, 125 * 3, new Vector2(1, 0), new Vector2(0.5f, 0)), PyroButton.guidRef, new Action(() =>
119119
{
120-
SetSelectedClass("Pyrotechnic", PyroButton.guidRef, "The Fiery Pyrotechnic Class is ready to heat up the game. Some attacks are enhanced by fire and fire attacks are improved greatly, but your monkeys are not used to being hot and are weakened.", "Pros\n- Gwendolyn gets a %50 attack speed buff and her cocktail ability lasts longer\n- All fire based upgrades deal an extra %40 damage and get a bonus %20 attack speed\n\nCons\n- All water towers get half range (unless using fire upgrade)\n- Towers without fire upgrades get %10 less attack speed", 125, 125, 70);
120+
SetSelectedClass("Pyrotechnic", PyroButton.guidRef, "The Fiery Pyrotechnic Class is ready to heat up the game. Some attacks are enhanced by fire and fire attacks are improved greatly, but your monkeys are not used to being hot and are weakened.", "Pros\n- All non water towers get \n\nCons\n- All water towers get half range\n- Towers without fire upgrades get %10 less attack speed", 125, 125, 70);
121121
122122
}));
123123
Button6.AddText(new Info("Text", 0, -160, 1000, 200), "Pyrotechnic", 70f);

0 commit comments

Comments
 (0)