-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
430 changed files
with
30,292 additions
and
3,882 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
namespace BTD6Rogue.Artifacts.Consumables; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using BTD_Mod_Helper.Api; | ||
using JetBrains.Annotations; | ||
|
||
namespace BTD6Rogue; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
using BTD_Mod_Helper.Api; | ||
using System.Collections.Generic; | ||
using System; | ||
using BTD_Mod_Helper; | ||
|
||
namespace BTD6Rogue; | ||
|
||
public static class BossUtil { | ||
|
||
public static string GetBossHint(string boss) { | ||
List<string> BloonariusHints = new List<string>() { | ||
"The smell of sludge and algae permeates the air", | ||
"Swampy mists rise from an unknown presence", | ||
"Gurgling sounds can be heard echoing loudly", | ||
"Dampness fills the battlefield, bloons can be seen coated in a slimy sheen" | ||
}; | ||
|
||
List<string> VortexHints = new List<string>() { | ||
"Strong gusts of wind begin to blow sharply", | ||
"The foilage around you begins to dance, signaling a storm is brewing", | ||
"You feel the energy of the air currents begin to pick up", | ||
"Water nearby ripples, responding to an unseen force from above" | ||
}; | ||
|
||
List<string> LychHints = new List<string>() { | ||
"A feeling of death surrounds you", | ||
"Shadows lengthen, the land itself mourning the approach of darkness", | ||
"An eeire chill fills the air", | ||
"Whispers can be heard beyond your sight, a sign of dark power" | ||
}; | ||
|
||
List<string> DreadbloonHints = new List<string>() { | ||
"The ground shakes beneath your feet", | ||
"The earth trembles, as if uneasy about what's to come", | ||
"Tremors grow stronger, indicating a strong force burrowing below", | ||
"Vibrations in the soil can be felt", | ||
"A symphony of dirt and stone can be heard" | ||
}; | ||
|
||
List<string> PhayzeHints = new List<string>() { | ||
"The space around you begins to distort", | ||
"The boundaries time are blurred", | ||
"The fabric of reality starts shifting", | ||
"A sudden ripple in the cosmos can be felt" | ||
}; | ||
|
||
switch (boss) { | ||
case "RogueBloonarius": | ||
return BloonariusHints[new Random().Next(BloonariusHints.Count)]; | ||
case "RogueVortex": | ||
return VortexHints[new Random().Next(VortexHints.Count)]; | ||
case "RogueLych": | ||
return LychHints[new Random().Next(LychHints.Count)]; | ||
case "RogueDreadbloon": | ||
return DreadbloonHints[new Random().Next(DreadbloonHints.Count)]; | ||
case "RoguePhayze": | ||
return PhayzeHints[new Random().Next(PhayzeHints.Count)]; | ||
} | ||
return "Error Message Lol"; | ||
} | ||
|
||
public static RogueBoss GetBossFromBloonId(string bloonId) { | ||
foreach (RogueBoss boss in ModContent.GetContent<RogueBoss>()) { | ||
if (bloonId.ToLower().Contains(boss.BossName.ToLower())) { | ||
if (boss.BossName.ToLower().Contains("mini") != bloonId.ToLower().Contains("mini")) { continue; } | ||
return boss; | ||
} | ||
} | ||
|
||
return null!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using BTD_Mod_Helper.Api; | ||
using Il2CppAssets.Scripts.Models.Bloons; | ||
using Il2CppAssets.Scripts.Simulation.Bloons; | ||
|
||
namespace BTD6Rogue; | ||
|
||
public abstract class RogueBoss : NamedModContent { | ||
public abstract string BossName { get; } | ||
public virtual bool IsBoss => true; | ||
|
||
public abstract void AdjustBloonModel(BloonModel bloonModel, int tier, bool elite); | ||
public abstract void AdjustBloon(Bloon bloon, int tier, bool elite); | ||
|
||
public override void Register() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using BTD_Mod_Helper.Api.Enums; | ||
using Il2CppAssets.Scripts.Models.Bloons.Behaviors; | ||
using Il2CppAssets.Scripts.Models.Bloons; | ||
using Il2CppAssets.Scripts.Simulation.Bloons; | ||
using System.Collections.Generic; | ||
using BTD_Mod_Helper.Extensions; | ||
using Il2CppAssets.Scripts.Simulation.Bloons.Behaviors; | ||
using UnityEngine; | ||
|
||
namespace BTD6Rogue; | ||
|
||
public class BlastapopoulosBoss : RogueBoss { | ||
public override string BossName => "Blastapopoulos"; | ||
|
||
public static readonly float baseMaxHealth = 3000; | ||
public static readonly float levelHealthModifier = 2.5f; | ||
|
||
public static readonly float baseSpeed = 2f; | ||
public static readonly float levelSpeedIncrease = 0.5f; | ||
|
||
// RangeReductionZoneModel | ||
public static readonly float baseRangeReduction = -0.04f; | ||
public static readonly float levelRangeReductionAddition = -0.02f; | ||
|
||
// AbilityCooldownZoneModel | ||
public static readonly float baseAbilityCooldown = -0.04f; | ||
public static readonly float levelAbilityCooldownAddition = -0.01f; | ||
|
||
// TimeTriggerModel for RemoveDot | ||
public static readonly float baseInterval = 4.0f; | ||
public static readonly float levelIntervalAddition = -0.4f; | ||
|
||
// CreatePropsOnBloonActionModel | ||
public static readonly float baseRockDuration = 20.0f; | ||
public static readonly float levelRockDurationAddition = 2.0f; | ||
|
||
public override void AdjustBloonModel(BloonModel bloonModel, int tier, bool elite) { | ||
bloonModel.maxHealth = Mathf.FloorToInt(baseMaxHealth * Mathf.Pow(levelHealthModifier, tier)); | ||
bloonModel.speed = baseSpeed + levelSpeedIncrease * tier; | ||
bloonModel.leakDamage = 99999f; | ||
} | ||
|
||
public override void AdjustBloon(Bloon bloon, int tier, bool elite) { | ||
foreach (RangeReductionZone behavior in bloon.GetBloonBehaviors<RangeReductionZone>()) { | ||
RangeReductionZoneModel model = behavior.rangeReductionModel; | ||
model.rangeMultiplier = (baseRangeReduction + levelRangeReductionAddition * tier); | ||
} | ||
foreach (AbilityCooldownZone behavior in bloon.GetBloonBehaviors<AbilityCooldownZone>()) { | ||
AbilityCooldownZoneModel model = behavior.abilityCooldownZoneModel; | ||
model.multiplier = (baseAbilityCooldown + levelAbilityCooldownAddition * tier); | ||
} | ||
foreach (TimeTrigger behavior in bloon.GetBloonBehaviors<TimeTrigger>()) { | ||
TimeTriggerModel model = behavior.timeTriggerModel; | ||
model.interval = (baseInterval + levelIntervalAddition * tier); | ||
} | ||
foreach (CreatePropsOnBloonAction behavior in bloon.GetBloonBehaviors<CreatePropsOnBloonAction>()) { | ||
CreatePropsOnBloonActionModel model = behavior.createPropsModel; | ||
model.rockDuration = (baseRockDuration + levelRockDurationAddition * tier); | ||
} | ||
} | ||
} |
Oops, something went wrong.