Skip to content

Commit

Permalink
Add two new games (#1101)
Browse files Browse the repository at this point in the history
Add the following games:

- Cities: Skylines II
- Lethal Company
  • Loading branch information
Oksamies authored Nov 14, 2023
1 parent bb9f207 commit 7da714c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/model/game/GameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,18 @@ export default class GameManager {
"https://thunderstore.io/c/dredge/api/v1/package/", "https://raw.githubusercontent.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "1562430")], "Dredge.png",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, []),

new Game("Cities: Skylines II", "CitiesSkylines2", "CitiesSkylines2",
"Cities Skylines II", ["Cities2.exe"], "CitiesSkylines2_Data",
"https://thunderstore.io/c/cities-skylines-ii/api/v1/package/", "https://raw.githubusercontent.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "949230")], "CitiesSkylines2.png",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, []),

new Game("Lethal Company", "LethalCompany", "LethalCompany",
"Lethal Company", ["Lethal Company.exe"], "LethalCompany_Data",
"https://thunderstore.io/c/lethal-company/api/v1/package/", "https://raw.githubusercontent.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "1966720")], "LethalCompany.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 @@ -114,6 +114,8 @@ export default class InstallationRuleApplicator {
buildBepInExRules("Erenshor"),
buildBepInExRules("LastTrainOuttaWormtown"),
buildBepInExRules("Dredge"),
buildBepInExRules("CitiesSkylines2"),
buildBepInExRules("LethalCompany"),
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ const VARIANTS = {
Erenshor: MODLOADER_PACKAGES,
LastTrainOuttaWormtown: MODLOADER_PACKAGES,
Dredge: MODLOADER_PACKAGES,
CitiesSkylines2: MODLOADER_PACKAGES,
LethalCompany: 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
2 changes: 1 addition & 1 deletion src/r2mm/manager/SettingsDexieStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(63).stores(store);
this.version(64).stores(store);

this.activeGame = game;
this.global = this.table("value");
Expand Down

0 comments on commit 7da714c

Please sign in to comment.