Add special mods for the base game and expansions

Just for the metadata
This commit is contained in:
2025-03-18 23:35:52 +01:00
parent 160488849f
commit 8f466420f2
2 changed files with 99 additions and 50 deletions

View File

@@ -282,18 +282,6 @@ class Mod {
);
}
// Check if this is RimWorld base game or expansion
bool isBaseGame = id == 'ludeon.rimworld';
bool isExpansion = !isBaseGame && id.startsWith('ludeon.rimworld.');
// If this is an expansion, ensure it depends on the base game
if (isExpansion && !loadAfter.contains('ludeon.rimworld')) {
loadAfter.add('ludeon.rimworld');
logger.info(
'Added base game dependency for expansion mod: ludeon.rimworld',
);
}
final fileCountTime =
stopwatch.elapsedMilliseconds - metadataTime - xmlTime;
final totalTime = stopwatch.elapsedMilliseconds;
@@ -314,8 +302,9 @@ class Mod {
loadBefore: loadBefore,
incompatibilities: incompatibilities,
size: size,
isBaseGame: isBaseGame,
isExpansion: isExpansion,
// No mods loaded from workshop are ever base or expansion games
isBaseGame: false,
isExpansion: false,
);
}