Skip to content

Commit a3f74ae

Browse files
DT 0.3.6 and MM 0.2.11
Fixes for both Mods! DT - No more crashes when MM is removed. MM - HoF Breed Name Fix MM - Shrine Failure Fix
1 parent 376d0e5 commit a3f74ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+141
-15
lines changed

MRDX.Game.DynamicTournaments/Mod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public Mod(ModContext context)
8080
}
8181

8282

83-
Logger.Trace("Setting up learning testing callback");
8483

8584
var maybeHooks = _modLoader.GetController<IHooks>();
8685
if (maybeHooks != null && maybeHooks.TryGetTarget(out var hooks))

MRDX.Game.DynamicTournaments/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Dynamic Tournament Progression for MR2DX - v0.3.5
1+
# Dynamic Tournament Progression for MR2DX - v0.3.6
22

33
* Tournament Monsters (the opponents you fight against) are both randomly generated, and grow alongside you as months pass.
44
* Tournament Monsters will rank up, learn techniques, and become stronger alongside you!
@@ -11,6 +11,11 @@
1111

1212
### Latest Updates
1313

14+
##### v0.3.6
15+
16+
* Hotfix to resolve an issue where disabling More Monsters would cause crashes when DT is kept enabled.
17+
18+
1419
##### v0.3.5
1520

1621
* Emergency hotfix to resolve an issue with the monster name pool causing soft-locks at week end.

MRDX.Game.DynamicTournaments/TournamentMonster.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ public TournamentMonster(Dictionary<EPool, TournamentPool> pools, byte[] rawdtpm
101101
Logger.Debug("Loading monster from DTP Save File.", Color.Lime);
102102

103103
BreedInfo = MonsterBreed.GetBreed(GenusMain, GenusSub)!;
104-
if ( BreedInfo == null ) {
105-
BreedInfo = MonsterBreed.GetBreed( GenusMain, GenusMain );
106-
}
107104

108105
LifeTotal = BitConverter.ToUInt16(rawdtpmonster, 0);
109106
Lifespan = BitConverter.ToUInt16(rawdtpmonster, 2);
@@ -138,6 +135,13 @@ public TournamentMonster(Dictionary<EPool, TournamentPool> pools, byte[] rawdtpm
138135
_trainerIntelligence = (Config.TechInt)rawdtpmonster[20];
139136

140137
Region = (EMonsterRegion) rawdtpmonster[21];
138+
139+
/* This section handles the situation where a previously entered monster breed is no longer valid. This could happen through some obscure solar flare,
140+
* or more likely, the More Monsters mod is enabled and then later disabled, setting the monster to an invalid breed. */
141+
if ( BreedInfo == null ) {
142+
BreedInfo = MonsterBreed.GetBreed( GenusMain, GenusMain );
143+
GenusSub = GenusMain;
144+
}
141145
// DEBUG DEBUG DEBUG
142146
// for ( var i = 0; i < techniques.Count; i++ ) { TournamentData._mod.DebugLog( 2, monster.name + " has " + techniques[ i ], Color.Orange ); }
143147
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)