Skip to content

Commit

Permalink
Update for BTD6 v37.0
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Jun 7, 2023
1 parent 817c8bc commit 2d2cb55
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
Binary file modified Displays/CardMonkeyBaseDisplay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Displays/CardMonkeyBaseDisplay_36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Displays/Tier5/AceOfSpadesDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public override void ModifyDisplayNode(UnityDisplayNode node)
// PrintInfo() showed this has multiple SkinnedMeshRenderers, so have to specify the index
SetMeshTexture(node, "AceOfSpadesCape", 1);
SetMeshOutlineColor(node, new Color(0, 0, 0), 1);
SetMeshTexture(node, "CardMonkeyBaseDisplay", 2);
SetMeshTexture(node, "AceOfSpadesDisplay", 2);
SetMeshOutlineColor(node, new Color(0, 0, 0), 2);
}
}
Expand Down
Binary file added Displays/Tier5/AceOfSpadesDisplay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion LATEST.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Updated textures for BTD6 v36.0
- Updated for BTD6 v37.0
4 changes: 2 additions & 2 deletions ModHelperData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{
public static class ModHelperData
{
public const string WorksOnVersion = "36.0";
public const string Version = "1.2.6";
public const string WorksOnVersion = "37.0";
public const string Version = "1.2.7";
public const string Name = "Card Monkey";
public const string Description =
"Adds in a new custom tower themed around playing cards.";
Expand Down
5 changes: 3 additions & 2 deletions Upgrades/BottomPath/TwistOfFate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using BTD_Mod_Helper.Extensions;
using CardMonkey.Displays.Projectiles;
using CardMonkey.Upgrades.MiddlePath;
using Il2CppAssets.Scripts.Models.Effects;

namespace CardMonkey.Upgrades.BottomPath
{
Expand Down Expand Up @@ -75,15 +76,15 @@ public override void ApplyUpgrade(TowerModel tower)

var behavior = new CreateProjectileOnExhaustFractionModel(
"CreateProjectileOnExhaustFractionModel_",
pb.projectile, pb.emission, 1f, 1f, true, false);
pb.projectile, pb.emission, 1f, 1f, true, false, false);
redCard.projectile.AddBehavior(behavior);

var soundBehavior = new CreateSoundOnProjectileExhaustModel(
"CreateSoundOnProjectileExhaustModel_",
sound.sound1, sound.sound2, sound.sound3, sound.sound4, sound.sound5);
redCard.projectile.AddBehavior(soundBehavior);

var eB = new CreateEffectOnExhaustedModel("CreateEffectOnExhaustedModel_", new PrefabReference(), 0f, false,
var eB = new CreateEffectOnExhaustedModel("CreateEffectOnExhaustedModel_", new PrefabReference(), 0f, Fullscreen.No,
false, effect.effectModel);
redCard.projectile.AddBehavior(eB);
redCard.Rate *= 0.8f;
Expand Down
2 changes: 1 addition & 1 deletion Upgrades/TopPath/FourOfAKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class FourOfAKind : ModUpgrade<CardMonkey>

public override void ApplyUpgrade(TowerModel tower)
{
tower.GetWeapon().emission = new ArcEmissionModel("ArcEmissionModel_", 4, 0, 20, null, false);
tower.GetWeapon().emission = new ArcEmissionModel("ArcEmissionModel_", 4, 0, 20, null, false, false);
}
}
}
2 changes: 1 addition & 1 deletion Upgrades/TopPath/Pair.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Pair : ModUpgrade<CardMonkey>

public override void ApplyUpgrade(TowerModel tower)
{
tower.GetWeapon().emission = new ArcEmissionModel("ArcEmissionModel_", 2, 0, 10, null, false);
tower.GetWeapon().emission = new ArcEmissionModel("ArcEmissionModel_", 2, 0, 10, null, false, false);
}
}
}
2 changes: 1 addition & 1 deletion Upgrades/TopPath/ThreeOfAKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class ThreeOfAKind : ModUpgrade<CardMonkey>

public override void ApplyUpgrade(TowerModel tower)
{
tower.GetWeapon().emission = new ArcEmissionModel("ArcEmissionModel_", 3, 0, 15, null, false);
tower.GetWeapon().emission = new ArcEmissionModel("ArcEmissionModel_", 3, 0, 15, null, false, false);
}
}
}

0 comments on commit 2d2cb55

Please sign in to comment.