-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathIndustrialFarmer.cs
48 lines (36 loc) · 1.79 KB
/
IndustrialFarmer.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 System.Collections.Generic;
using Il2CppAssets.Scripts.Models.Towers;
using Il2CppAssets.Scripts.Models.Towers.Behaviors;
using Il2CppAssets.Scripts.Unity;
using BTD_Mod_Helper.Api.Towers;
namespace IndustrialFarmer;
public class IndustrialFarmer : ModHero
{
public override string BaseTower => TowerType.BananaFarmer;
public override int Cost => 1400;
public override string DisplayName => "Norman";
public override string Title => "Industrial Farmer";
public override string Level1Description => "Collects nearby bananas. Your next Banana Farm is free.";
public override string Description =>
"Norman collects your Bananas and helps you expand your farming operations.";
public override string NameStyle => TowerType.Gwendolin; // Yellow colored
public override string BackgroundStyle => TowerType.Etienne; // Yellow colored
public override string GlowStyle => TowerType.StrikerJones; // Yellow colored
public override float XpRatio => 1.0f;
public override string RogueStarterArtifact => "TheUnspokenHeroes1";
public override IEnumerable<(string, int[])> RogueStarterInstas =>
[
(TowerType.BananaFarm, [0, 0, 0]),
(TowerType.EngineerMonkey, [0, 0, 2])
];
/// <param name="towerModel"></param>
public override void ModifyBaseTowerModel(TowerModel towerModel)
{
var quincy = Game.instance.model.GetTowerWithName(TowerType.Quincy);
towerModel.AddBehavior(quincy.GetBehavior<CreateSoundOnUpgradeModel>().Duplicate());
towerModel.AddBehavior(quincy.GetBehavior<CreateEffectOnUpgradeModel>().Duplicate());
towerModel.radius = quincy.radius;
towerModel.footprint = quincy.footprint.Duplicate();
}
public const string IndustrialFarmerDiscount = "IndustrialFarmerDiscount";
}