-
Notifications
You must be signed in to change notification settings - Fork 4
/
BananaFarmerMod.cs
48 lines (44 loc) · 2.12 KB
/
BananaFarmerMod.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using Il2CppAssets.Scripts.Models.GenericBehaviors;
using Il2CppAssets.Scripts.Models.Towers;
using Il2CppAssets.Scripts.Models.Towers.Behaviors;
using Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack;
using VoidBananaFarmer;
using BTD_Mod_Helper;
using BTD_Mod_Helper.Api.Towers;
using BTD_Mod_Helper.Extensions;
using MelonLoader;
using ModHelperData = VoidBananaFarmer.ModHelperData;
using Il2CppAssets.Scripts.Models.TowerSets;
using VoidBananaFarmer.Tower;
[assembly: MelonGame("Ninja Kiwi", "BloonsTD6")]
[assembly: MelonColor(255,255,255,255)]
[assembly: MelonAuthorColor(255,0,0,139)]
[assembly: MelonInfo(typeof(BananaFarmerMod), ModHelperData.Name, ModHelperData.Version, ModHelperData.RepoOwner)]
namespace VoidBananaFarmer
{
public class BananaFarmerMod : BloonsTD6Mod
{
public class BananaFarmerTower : ModTower
{
public override string Name => "Banana Farmer";
public override TowerSet TowerSet => TowerSet.Support;
public override string BaseTower => TowerType.DartMonkey;
public override int Cost => 1975;
public override string Description => "Collects bananas from Banana Farms.";
public override string DisplayName => "Banana Farmer";
public override int TopPathUpgrades =>5;
public override int MiddlePathUpgrades =>5;
public override int BottomPathUpgrades =>5;
public override ParagonMode ParagonMode => ParagonMode.Base555;
public override void ModifyBaseTowerModel(TowerModel towerModel)
{
towerModel.ApplyDisplay<Displays.TowerDisplays.BaseFarmerDisplay>();
towerModel.RemoveBehavior<AttackModel>();
towerModel.GetBehavior<DisplayModel>().display = towerModel.display;
towerModel.range = 45;
towerModel.AddBehavior(new CollectCashZoneModel("CollectCashZoneModel_",45,19,3,"",true,true,true,true));
}
public override bool IsValidCrosspath(params int[] tiers) => ModHelper.HasMod("Ultimate Crosspathing") || base.IsValidCrosspath(tiers);
}
}
}