Skip to content

Commit

Permalink
Merge pull request #1377 from ebkr/add-among-us
Browse files Browse the repository at this point in the history
Add Among Us
  • Loading branch information
anttimaki authored Jun 24, 2024
2 parents 4601ccc + 8133643 commit ca35974
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Binary file added src/assets/images/game_selection/AmongUs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/model/game/GameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,17 @@ export default class GameManager {
"https://thunderstore.io/c/gloomwood/api/v1/package/", EXCLUSIONS,
[new StorePlatformMetadata(StorePlatform.STEAM, "1150760")], "Gloomwood.png",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, ["gw"]),

new Game("Among Us", "AmongUs", "AmongUs",
"Among Us", ["Among Us.exe"], "Among Us_Data",
"https://thunderstore.io/c/among-us/api/v1/package/", EXCLUSIONS,
[
new StorePlatformMetadata(StorePlatform.STEAM, "945360"),
new StorePlatformMetadata(StorePlatform.EPIC_GAMES_STORE, "among-us"),
new StorePlatformMetadata(StorePlatform.XBOX_GAME_PASS, "Innersloth.AmongUs"),
new StorePlatformMetadata(StorePlatform.OTHER)
],
"AmongUs.png", GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, ["au"]),
];

static get activeGame(): Game {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export default class InstallationRuleApplicator {
buildBepInExRules("BacktotheDawn"),
buildBepInExRules("BelowTheStone"),
buildBepInExRules("Gloomwood"),
buildBepInExRules("AmongUs"),
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ const VARIANTS = {
BacktotheDawn: MODLOADER_PACKAGES,
BelowTheStone: MODLOADER_PACKAGES,
Gloomwood: MODLOADER_PACKAGES,
AmongUs: 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 ca35974

Please sign in to comment.