Compose classic Homeworld Nexus optional modules
This commit is contained in:
1 parent
b5f5de5c83
commit
c7073dc6b6
21 files changed
+1376
-71
No files matched your search
@@ -2,7 +2,6 @@ import type { Game, Player } from './engine';
|
||||
import { eliteRevivalRemaining } from './revival';
|
||||
import { classicNexusModulesProfile } from './nexus-module-profile';
|
||||
import { classicNexusLeaderSkillsProfile } from './leader-skill-profile';
|
||||
import { classicDiscoveryNexusProfile } from './discovery-module-profile';
|
||||
|
||||
export const EMPEROR_NEXUS_REVIVALS = 3;
|
||||
export type EmperorNexusPools = {
|
||||
@@ -66,7 +65,7 @@ export function emperorNexusModeSupported(g: Game): boolean {
|
||||
p.faction,
|
||||
),
|
||||
) &&
|
||||
(classicDiscoveryNexusProfile(g) || (!!g.leaderSkills && classicNexusLeaderSkillsProfile(g)) ||
|
||||
(classicNexusModulesProfile(g) || (!!g.leaderSkills && classicNexusLeaderSkillsProfile(g)) ||
|
||||
(!g.homeworlds &&
|
||||
(!g.leaderSkills || classicNexusLeaderSkillsProfile(g)) &&
|
||||
!g.discoveryEnabled &&
|
||||
|
||||
Reference in new issue
Block a user