diff --git a/src/assets/images/game_selection/Magicraft.png b/src/assets/images/game_selection/Magicraft.png new file mode 100644 index 000000000..61f8d4630 Binary files /dev/null and b/src/assets/images/game_selection/Magicraft.png differ diff --git a/src/model/game/GameManager.ts b/src/model/game/GameManager.ts index 3126cf970..907bf67b4 100644 --- a/src/model/game/GameManager.ts +++ b/src/model/game/GameManager.ts @@ -645,6 +645,12 @@ export default class GameManager { "https://thunderstore.io/c/risk-of-rain-returns/api/v1/package/", EXCLUSIONS, [new StorePlatformMetadata(StorePlatform.STEAM, "1337520")], "RiskofRainReturns.jpg", GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.RETURN_OF_MODDING, ["rorr"]), + + new Game("Magicraft", "Magicraft", "Magicraft", + "Magicraft", ["Magicraft.exe"], "Magicraft_Data", + "https://thunderstore.io/c/magicraft/api/v1/package/", EXCLUSIONS, + [new StorePlatformMetadata(StorePlatform.STEAM, "2103140")], "Magicraft.png", + GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, []), ]; static get activeGame(): Game { diff --git a/src/r2mm/installing/default_installation_rules/InstallationRuleApplicator.ts b/src/r2mm/installing/default_installation_rules/InstallationRuleApplicator.ts index 7c7fb1e21..97407a043 100644 --- a/src/r2mm/installing/default_installation_rules/InstallationRuleApplicator.ts +++ b/src/r2mm/installing/default_installation_rules/InstallationRuleApplicator.ts @@ -128,6 +128,7 @@ export default class InstallationRuleApplicator { buildBepInExRules("Lycans"), buildBepInExRules("CastleStory"), buildReturnOfModdingRules("RiskofRainReturns"), + buildBepInExRules("Magicraft"), ] } } diff --git a/src/r2mm/installing/profile_installers/ModLoaderVariantRecord.ts b/src/r2mm/installing/profile_installers/ModLoaderVariantRecord.ts index 932005998..221d24298 100644 --- a/src/r2mm/installing/profile_installers/ModLoaderVariantRecord.ts +++ b/src/r2mm/installing/profile_installers/ModLoaderVariantRecord.ts @@ -175,6 +175,7 @@ const VARIANTS = { CastleStory: MODLOADER_PACKAGES, Panicore: MODLOADER_PACKAGES, RiskofRainReturns: MODLOADER_PACKAGES, + Magicraft: MODLOADER_PACKAGES, }; // Exported separately from the definition in order to preserve the key names in the type definition. // Otherwise this would become [key: string] and we couldn't use the game names for type hinting elsewhere. diff --git a/src/r2mm/manager/SettingsDexieStore.ts b/src/r2mm/manager/SettingsDexieStore.ts index 20f75af81..4c0f2dc89 100644 --- a/src/r2mm/manager/SettingsDexieStore.ts +++ b/src/r2mm/manager/SettingsDexieStore.ts @@ -34,7 +34,7 @@ export default class SettingsDexieStore extends Dexie { // Add all games to store. Borked v2-3 locally // Increment per game or change to settings. - this.version(72).stores(store); + this.version(73).stores(store); this.activeGame = game; this.global = this.table("value");