Skip to content

Commit

Permalink
Merge pull request #1333 from thunderstore-io/magicraft
Browse files Browse the repository at this point in the history
Add Magicraft
  • Loading branch information
anttimaki authored Jun 11, 2024
2 parents 6bb478c + 1131ce4 commit 270c08e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Binary file added src/assets/images/game_selection/Magicraft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/model/game/GameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.png",
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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default class InstallationRuleApplicator {
buildBepInExRules("Lycans"),
buildBepInExRules("CastleStory"),
buildReturnOfModdingRules("RiskofRainReturns"),
buildBepInExRules("Magicraft"),
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 270c08e

Please sign in to comment.