Skip to content

Commit

Permalink
Update v44 Mermonkey
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Aug 1, 2024
1 parent af8c26e commit 88a2a76
Show file tree
Hide file tree
Showing 57 changed files with 1,964 additions and 83 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x # net6 can still build older as well
dotnet-version: 8.0.x


- name: Build
Expand Down
Binary file modified Bytes/Alchemists.bytes
Binary file not shown.
Binary file modified Bytes/BananaFarms.bytes
Binary file not shown.
Binary file modified Bytes/BeastHandlers.bytes
Binary file not shown.
Binary file modified Bytes/BombShooters.bytes
Binary file not shown.
Binary file modified Bytes/BoomerangMonkeys.bytes
Binary file not shown.
Binary file modified Bytes/DartMonkeys.bytes
Binary file not shown.
Binary file modified Bytes/DartlingGunners.bytes
Binary file not shown.
Binary file modified Bytes/Druids.bytes
Binary file not shown.
Binary file modified Bytes/EngineerMonkeys.bytes
Binary file not shown.
Binary file modified Bytes/GlueGunners.bytes
Binary file not shown.
Binary file modified Bytes/HeliPilots.bytes
Binary file not shown.
Binary file modified Bytes/IceMonkeys.bytes
Binary file not shown.
Binary file added Bytes/Mermonkeys.bytes
Binary file not shown.
Binary file modified Bytes/MonkeyAces.bytes
Binary file not shown.
Binary file modified Bytes/MonkeyBuccaneers.bytes
Binary file not shown.
Binary file modified Bytes/MonkeySubs.bytes
Binary file not shown.
Binary file modified Bytes/MonkeyVillages.bytes
Binary file not shown.
Binary file modified Bytes/MortarMonkeys.bytes
Binary file not shown.
Binary file modified Bytes/NinjaMonkeys.bytes
Binary file not shown.
Binary file modified Bytes/SniperMonkeys.bytes
Binary file not shown.
Binary file modified Bytes/SpikeFactorys.bytes
Binary file not shown.
Binary file modified Bytes/SuperMonkeys.bytes
Binary file not shown.
Binary file modified Bytes/TackShooters.bytes
Binary file not shown.
Binary file modified Bytes/WizardMonkeys.bytes
Binary file not shown.
3 changes: 2 additions & 1 deletion LATEST.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## See the [BTD Mod Helper Install Guide](https://gurrenm3.github.io/BTD-Mod-Helper/wiki/Install-Guide) if this is your first time downloading, and the [Common Issues](https://github.com/doombubbles/ultimate-crosspathing/blob/1.4.5/HELP.md#common-issues) page for help
<!--Mod Browser Message Start-->
- Updated for BTD6 v42.1
- Updated for BTD6 v44.0
- Includes full crosspathing for the new Mermonkey!
9 changes: 9 additions & 0 deletions LoadInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,13 @@ public class WizardMonkey : LoadInfo

public override ModSettingBool Enabled => TowerSettings.WizardMonkeyEnabled;
}

public class Mermonkey : LoadInfo
{
#if RELEASE
public override ModByteLoader<TowerModel> Loader => GetInstance<MermonkeyLoader>();
#endif

public override ModSettingBool Enabled => TowerSettings.MermonkeyEnabled;
}
}
2 changes: 2 additions & 0 deletions Loaders/AlchemistLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down
2 changes: 2 additions & 0 deletions Loaders/BananaFarmLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down
9 changes: 9 additions & 0 deletions Loaders/BeastHandlerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down Expand Up @@ -831,6 +833,7 @@ private void Set_v_GyrfalconPatternModel_Fields(int start, int count) {
v.moabPiercePenalty = br.ReadInt32();
v.bfbPiercePenalty = br.ReadInt32();
v.zomgPiercePenalty = br.ReadInt32();
v.ddtPiercePenalty = br.ReadInt32();
v.continuePickingUpBloons = br.ReadBoolean();
v.moabSpeedScale = br.ReadSingle();
v.enableAdjacentHover = br.ReadBoolean();
Expand Down Expand Up @@ -891,6 +894,10 @@ private void Set_v_AirUnitModel_Fields(int start, int count) {
v.behaviors = (Il2CppReferenceArray<Il2CppAssets.Scripts.Models.Towers.TowerBehaviorModel>) m[br.ReadInt32()];
v.display = ModContent.CreatePrefabReference(br.ReadString());
v.displayScale = br.ReadSingle();
v.isAirUnitSelectable = br.ReadBoolean();
v.selectableRadius = br.ReadSingle();
v.blocksPlacement = br.ReadBoolean();
v.blockingRadius = br.ReadSingle();
}
}

Expand Down Expand Up @@ -1242,6 +1249,8 @@ private void Set_v_CreateProjectileOnIntervalModel_Fields(int start, int count)
v.targetType.id = br.ReadString();
v.targetType.actionOnCreate = br.ReadBoolean();
v.isBuffedByRate = br.ReadBoolean();
v.useRawWeaponRate = br.ReadBoolean();
v.onlyEmitOnce = br.ReadBoolean();
}
}

Expand Down
2 changes: 2 additions & 0 deletions Loaders/BombShooterLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down
3 changes: 3 additions & 0 deletions Loaders/BoomerangMonkeyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down Expand Up @@ -1014,6 +1016,7 @@ private void Set_v_RetargetOnContactModel_Fields(int start, int count) {
for (var i=0; i<count; i++) {
var v = (Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.RetargetOnContactModel)m[i+start];
v.distance = br.ReadSingle();
v.minDistance = br.ReadSingle();
v.maxBounces = br.ReadInt32();
delayField.SetValue(v,br.ReadSingle().ToIl2Cpp());
v.targetType.id = br.ReadString();
Expand Down
2 changes: 2 additions & 0 deletions Loaders/DartMonkeyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down
3 changes: 3 additions & 0 deletions Loaders/DartlingGunnerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down Expand Up @@ -654,6 +656,7 @@ private void Set_v_CreateProjectileOnExhaustPierceModel_Fields(int start, int co
v.assetId = ModContent.CreatePrefabReference(br.ReadString());
v.displayLifetime = br.ReadSingle();
v.displayFullscreen = br.ReadBoolean();
v.useBloonPosition = br.ReadBoolean();
}
}

Expand Down
40 changes: 18 additions & 22 deletions Loaders/DruidLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down Expand Up @@ -710,6 +712,8 @@ private void Set_v_InstantModel_Fields(int start, int count) {
for (var i=0; i<count; i++) {
var v = (Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.InstantModel)m[i+start];
v.destroyIfInvalid = br.ReadBoolean();
v.ignoreTargetZ = br.ReadBoolean();
v.dontFollowTarget = br.ReadBoolean();
}
}

Expand Down Expand Up @@ -757,6 +761,7 @@ private void Set_v_RefreshPierceModel_Fields(int start, int count) {
for (var i=0; i<count; i++) {
var v = (Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.RefreshPierceModel)m[i+start];
intervalField.SetValue(v,br.ReadSingle().ToIl2Cpp());
v.isBuffedByRate = br.ReadBoolean();
}
}

Expand Down Expand Up @@ -942,16 +947,6 @@ private void Set_v_DamageModifierWrathModel_Fields(int start, int count) {
}
}

private void Set_v_BonusLivesPerRoundModel_Fields(int start, int count) {
Set_v_TowerBehaviorModel_Fields(start, count);
for (var i=0; i<count; i++) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.BonusLivesPerRoundModel)m[i+start];
v.amount = br.ReadInt32();
v.lifespan = br.ReadSingle();
v.assetId = ModContent.CreatePrefabReference(br.ReadString());
}
}

private void Set_v_AbilityModel_Fields(int start, int count) {
Set_v_TowerBehaviorModel_Fields(start, count);
var t = Il2CppType.Of<Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.AbilityModel>();
Expand Down Expand Up @@ -1013,6 +1008,14 @@ private void Set_v_CashPerBananaFarmInRangeModel_Fields(int start, int count) {
}
}

private void Set_v_BonusLivesOnAbilityModel_Fields(int start, int count) {
Set_v_AbilityBehaviorModel_Fields(start, count);
for (var i=0; i<count; i++) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.Behaviors.BonusLivesOnAbilityModel)m[i+start];
v.amount = br.ReadSingle();
}
}

private void Set_v_ActivateAbilitiesOnAbilityModel_Fields(int start, int count) {
Set_v_AbilityBehaviorModel_Fields(start, count);
for (var i=0; i<count; i++) {
Expand Down Expand Up @@ -1139,14 +1142,6 @@ private void Set_v_PerRoundCashBonusTowerModel_Fields(int start, int count) {
}
}

private void Set_v_BonusLivesOnAbilityModel_Fields(int start, int count) {
Set_v_AbilityBehaviorModel_Fields(start, count);
for (var i=0; i<count; i++) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.Behaviors.BonusLivesOnAbilityModel)m[i+start];
v.amount = br.ReadSingle();
}
}

private void Set_v_CreateLightningEffectModel_Fields(int start, int count) {
Set_v_ProjectileBehaviorModel_Fields(start, count);
for (var i=0; i<count; i++) {
Expand Down Expand Up @@ -1276,6 +1271,8 @@ private void Set_v_CreateProjectileOnIntervalModel_Fields(int start, int count)
v.targetType.id = br.ReadString();
v.targetType.actionOnCreate = br.ReadBoolean();
v.isBuffedByRate = br.ReadBoolean();
v.useRawWeaponRate = br.ReadBoolean();
v.onlyEmitOnce = br.ReadBoolean();
}
}

Expand All @@ -1294,6 +1291,7 @@ private void Set_v_FreezeModel_Fields(int start, int count) {
v.canFreezeMoabs = br.ReadBoolean();
v.cascadeMutators = br.ReadBoolean();
v.growBlockModel = (Il2CppAssets.Scripts.Models.Bloons.Behaviors.GrowBlockModel) m[br.ReadInt32()];
v.applyAfterDamage = br.ReadBoolean();
lifespanField.SetValue(v,br.ReadSingle().ToIl2Cpp());
}
}
Expand Down Expand Up @@ -1403,16 +1401,15 @@ protected override Il2CppAssets.Scripts.Models.Towers.TowerModel Load(byte[] byt
Create_Records<Il2CppAssets.Scripts.Models.GenericBehaviors.BuffIndicatorModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.DruidVengeanceEffectModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.DamageModifierWrathModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.BonusLivesPerRoundModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.AbilityModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.Behaviors.CreateSoundOnAbilityModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.Behaviors.CashPerBananaFarmInRangeModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.Behaviors.BonusLivesOnAbilityModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.Behaviors.ActivateAbilitiesOnAbilityModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.SpiritOfTheForestModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.DamageOverTimeZoneModel>();
Create_Records<Il2CppAssets.Scripts.Models.Bloons.Behaviors.DamageOverTimeCustomModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.PerRoundCashBonusTowerModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.Behaviors.BonusLivesOnAbilityModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.CreateLightningEffectModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.LightningModel>();
Create_Records<Il2CppAssets.Scripts.Models.Towers.Weapons.Behaviors.CreateSoundOnProjectileCreatedModel>();
Expand Down Expand Up @@ -1483,16 +1480,15 @@ protected override Il2CppAssets.Scripts.Models.Towers.TowerModel Load(byte[] byt
Set_v_BuffIndicatorModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_DruidVengeanceEffectModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_DamageModifierWrathModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_BonusLivesPerRoundModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_AbilityModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_CreateSoundOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_CashPerBananaFarmInRangeModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_BonusLivesOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_ActivateAbilitiesOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_SpiritOfTheForestModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_DamageOverTimeZoneModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_DamageOverTimeCustomModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_PerRoundCashBonusTowerModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_BonusLivesOnAbilityModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_CreateLightningEffectModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_LightningModel_Fields(br.ReadInt32(), br.ReadInt32());
Set_v_CreateSoundOnProjectileCreatedModel_Fields(br.ReadInt32(), br.ReadInt32());
Expand Down
3 changes: 3 additions & 0 deletions Loaders/EngineerMonkeyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down Expand Up @@ -1288,6 +1290,7 @@ private void Set_v_FreezeModel_Fields(int start, int count) {
v.canFreezeMoabs = br.ReadBoolean();
v.cascadeMutators = br.ReadBoolean();
v.growBlockModel = (Il2CppAssets.Scripts.Models.Bloons.Behaviors.GrowBlockModel) m[br.ReadInt32()];
v.applyAfterDamage = br.ReadBoolean();
lifespanField.SetValue(v,br.ReadSingle().ToIl2Cpp());
}
}
Expand Down
2 changes: 2 additions & 0 deletions Loaders/GlueGunnerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down
6 changes: 6 additions & 0 deletions Loaders/HeliPilotLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down Expand Up @@ -749,6 +751,10 @@ private void Set_v_AirUnitModel_Fields(int start, int count) {
v.behaviors = (Il2CppReferenceArray<Il2CppAssets.Scripts.Models.Towers.TowerBehaviorModel>) m[br.ReadInt32()];
v.display = ModContent.CreatePrefabReference(br.ReadString());
v.displayScale = br.ReadSingle();
v.isAirUnitSelectable = br.ReadBoolean();
v.selectableRadius = br.ReadSingle();
v.blocksPlacement = br.ReadBoolean();
v.blockingRadius = br.ReadSingle();
}
}

Expand Down
3 changes: 3 additions & 0 deletions Loaders/IceMonkeyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ private void Set_v_CreateSoundOnTowerPlaceModel_Fields(int start, int count) {
var v = (Il2CppAssets.Scripts.Models.Towers.Behaviors.CreateSoundOnTowerPlaceModel)m[i+start];
v.sound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.sound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.waterSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound1 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
v.heroSound2 = (Il2CppAssets.Scripts.Models.Audio.SoundModel) m[br.ReadInt32()];
}
Expand Down Expand Up @@ -546,6 +548,7 @@ private void Set_v_FreezeModel_Fields(int start, int count) {
v.canFreezeMoabs = br.ReadBoolean();
v.cascadeMutators = br.ReadBoolean();
v.growBlockModel = (Il2CppAssets.Scripts.Models.Bloons.Behaviors.GrowBlockModel) m[br.ReadInt32()];
v.applyAfterDamage = br.ReadBoolean();
lifespanField.SetValue(v,br.ReadSingle().ToIl2Cpp());
}
}
Expand Down
Loading

0 comments on commit 88a2a76

Please sign in to comment.