Skip to content

Commit

Permalink
Merge pull request #1 from CamtheKirby/main
Browse files Browse the repository at this point in the history
Fixed For Update 37
  • Loading branch information
Commander-Cat101 authored Jun 20, 2023
2 parents 61cc1ca + 0c547c1 commit d479b5f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
35 changes: 16 additions & 19 deletions CaveMonkeyV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,27 @@
using BTD_Mod_Helper;
using CaveMonkeyV2;
using BTD_Mod_Helper.Api.Enums;
using Assets.Scripts.Models.Towers;
using BTD_Mod_Helper.Api.Towers;
using BTD_Mod_Helper.Extensions;
using Assets.Scripts.Models.Towers.Weapons.Behaviors;
using Assets.Scripts.Models.Towers.Projectiles.Behaviors;
using Assets.Scripts.Simulation.Towers.Projectiles.Behaviors;
using Assets.Scripts.Models.Audio;
using System.Media;
using Assets.Scripts.Unity.Towers.Projectiles.Behaviors;
using System.IO;
using Assets.Scripts.Utils;
using Assets.Scripts.Unity;
using System.Security.Policy;
using static Assets.Scripts.Models.ServerEvents.Coop;
using Assets.Scripts.Unity.Display;
using BTD_Mod_Helper.Api.Display;
using Assets.Scripts.Models.Towers.Behaviors.Attack;
using Assets.Scripts.Models.TowerSets;
using System.Collections.Generic;
using System.Linq;
using Assets.Scripts.Models.Towers.Behaviors.Emissions;
using UnityEngine.UIElements;
using Assets.Scripts.Models.Towers.Filters;
using Assets.Scripts.Models.Towers.Behaviors;
using System;
using System.Text;
using System.Threading.Tasks;
using TimeTraveler.Displays.Projectiles;
using Il2CppAssets.Scripts.Models.Towers;
using Il2CppAssets.Scripts.Models.Towers.Behaviors;
using Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors;
using Il2CppAssets.Scripts.Models.TowerSets;
using Il2CppAssets.Scripts.Unity;
using Il2CppAssets.Scripts.Unity.Display;
using Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack;
using Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions;

[assembly: MelonInfo(typeof(CaveMonkeyV2.CaveMonkeyV2), ModHelperData.Name, ModHelperData.Version, ModHelperData.RepoOwner)]
[assembly: MelonGame("Ninja Kiwi", "BloonsTD6")]
Expand Down Expand Up @@ -78,15 +75,15 @@ public override void OnApplicationStart()
public class CaveMonkey : ModTower
{

public override string TowerSet => TowerSetType.Magic;
public override TowerSet TowerSet => TowerSet.Magic;
public override string BaseTower => TowerType.CaveMonkey;
public override int Cost => 450;
public override int TopPathUpgrades => 5;
public override int MiddlePathUpgrades => 5;
public override int BottomPathUpgrades => 5;
public override bool DontAddToShop => false;
public override string Description => "The Cave Monkey joined the game";

public override ParagonMode ParagonMode => ParagonMode.Base555;
public override void ModifyBaseTowerModel(TowerModel towerModel)
{
towerModel.GetAttackModel().weapons[0].projectile = Game.instance.model.GetTowerFromId("Sauda 3").GetAttackModel().weapons[0].projectile.Duplicate();
Expand Down Expand Up @@ -378,7 +375,7 @@ public override void ApplyUpgrade(TowerModel towerModel)
{
var proj = attacks.weapons[0].projectile;
attacks.weapons[0].Rate *= .5f;
attacks.weapons[0].emission = new ArcEmissionModel("ArcEmissionModel_", 4, 0, 20, null, false);
attacks.weapons[0].emission = new ArcEmissionModel("ArcEmissionModel_", 4, 0, 20, null, false, false);
}

}
Expand Down Expand Up @@ -407,4 +404,4 @@ public override void ApplyUpgrade(TowerModel towerModel)

}
}
}
}
5 changes: 3 additions & 2 deletions ModHelperData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ namespace CaveMonkeyV2;

public static class ModHelperData
{
public const string Version = "1.0.0";
public const string WorksOnVersion = "37";
public const string Version = "1.0.1";
public const string Name = "CaveMonkeyV2";

public const string Description = "Adds 15 upgrades to the cave monkey";

public const string RepoOwner = "Commander-Cat101"; // TODO add your github username hero, also in the download url in README.md
public const string RepoName = "CaveMonkey"; // TODO add your repo name here, also in the download url in README.md
}
}

0 comments on commit d479b5f

Please sign in to comment.