Skip to content

Commit

Permalink
Some fixes I forgor
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkTerraYT committed Jun 1, 2024
1 parent 3679057 commit 8afab92
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Api/Enhancements/ModEnhancement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ public void ApplyEnhancement(Il2CppAssets.Scripts.Simulation.Towers.Tower tower)
}
}

Cost *= (int)(Cost * CostMultiplier);

ModifyOther();
AbilityMenu.instance.AbilitiesChanged(); // Update Ability Menu

Expand Down
2 changes: 2 additions & 0 deletions Api/Enhancements/Normal/Damage1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ internal class Damage1 : ProgressionModEnhancement<Damage2>

public override string Description => "Increases damage by 1";

public override string EnhancementName => "Damage 1";

public override float CostMultiplier => 1.5f;

public override EnhancementType EnhancementGroup => EnhancementType.Normal;
Expand Down
4 changes: 4 additions & 0 deletions Api/Enhancements/Normal/Damage2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ internal class Damage2 : ModEnhancement

public override string Description => "Increases damage by 2";

public override string EnhancementName => "Damage 2";

public override float CostMultiplier => 1.5f;

public override EnhancementType EnhancementGroup => EnhancementType.Normal;

public override ModifyType Modifies => ModifyType.Weapon;

public override bool LockedByDefault => true;

protected override void ModifyTower(TowerModel towerModel)
{
foreach (var damageModel in towerModel.GetDescendants<DamageModel>().ToList())
Expand Down
2 changes: 2 additions & 0 deletions Api/Enhancements/Normal/Pierce1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public class Pierce1 : ProgressionModEnhancement<Pierce2>

public override int Priority => 0;

public override string EnhancementName => "Pierce 1";

public override uint Max => 8;

public override EnhancementLevel NewEnhancementLevel => EnhancementLevel.Basic;
Expand Down
2 changes: 2 additions & 0 deletions Api/Enhancements/Normal/Pierce2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class Pierce2 : ProgressionModEnhancement<Pierce3>

public override EnhancementLevel NewEnhancementLevel => EnhancementLevel.Basic;

public override string EnhancementName => "Pierce 2";

public override ModifyType Modifies => ModifyType.Projectile;

public override bool LockedByDefault => true;
Expand Down
2 changes: 2 additions & 0 deletions Api/Enhancements/Normal/Pierce3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class Pierce3 : ProgressionModEnhancement<Pierce4>

public override EnhancementLevel NewEnhancementLevel => EnhancementLevel.Basic;

public override string EnhancementName => "Pierce 3";

public override ModifyType Modifies => ModifyType.Projectile;

public override void ModifyTower(Il2CppAssets.Scripts.Simulation.Towers.Tower tower)
Expand Down
4 changes: 4 additions & 0 deletions Api/Enhancements/Normal/Pierce4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ public class Pierce4 : ModEnhancement

public override int Priority => 0;

public override uint Max => 50;

public override EnhancementLevel NewEnhancementLevel => EnhancementLevel.Basic;

public override ModifyType Modifies => ModifyType.Projectile;

public override string EnhancementName => "Pierce 4";

public override bool LockedByDefault => true;

public override void ModifyTower(Il2CppAssets.Scripts.Simulation.Towers.Tower tower)
Expand Down
4 changes: 3 additions & 1 deletion Api/Enhancements/Normal/Range1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public class Range1 : ProgressionModEnhancement<Range2>

public override ModifyType Modifies => ModifyType.Tower;

public override uint Max => 5;
public override string EnhancementName => "Range 1";

public override uint Max => 6;

public override void ModifyTower(Il2CppAssets.Scripts.Simulation.Towers.Tower tower)
{
Expand Down
4 changes: 4 additions & 0 deletions Api/Enhancements/Normal/Range2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ public class Range2 : ModEnhancement

public override float CostMultiplier => 1.75f;

public override uint Max => 7;

public override int Priority => 1;

public override string EnhancementName => "Range 2";

public override EnhancementLevel NewEnhancementLevel => EnhancementLevel.Basic;

public override EnhancementType EnhancementGroup => EnhancementType.Normal;
Expand Down
2 changes: 2 additions & 0 deletions Api/Enhancements/Normal/Rate1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ internal class Rate1 : ProgressionModEnhancement<Rate2>
public override int Priority => 0;
public override float CostMultiplier => 1;

public override string EnhancementName => "Rate 1";

public override EnhancementLevel NewEnhancementLevel => EnhancementLevel.Good;

public override EnhancementType EnhancementGroup => EnhancementType.Normal;
Expand Down
2 changes: 2 additions & 0 deletions Api/Enhancements/Normal/Rate2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ internal class Rate2 : ProgressionModEnhancement<Rate3>
public override int Priority => 0;
public override float CostMultiplier => 1;

public override string EnhancementName => "Rate 2";

public override EnhancementLevel NewEnhancementLevel => EnhancementLevel.Good;

public override EnhancementType EnhancementGroup => EnhancementType.Normal;
Expand Down
2 changes: 2 additions & 0 deletions Api/Enhancements/Normal/Rate3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ internal class Rate3 : ModEnhancement

public override float CostMultiplier => 1;

public override string EnhancementName => "Rate 3";

public override EnhancementLevel NewEnhancementLevel => EnhancementLevel.Good;

public override EnhancementType EnhancementGroup => EnhancementType.Normal;
Expand Down

0 comments on commit 8afab92

Please sign in to comment.