Very slightly adjust router.toFaction

- Faction argument is now required
- Added augPage argument
This commit is contained in:
nickofolas
2022-03-10 18:37:57 -06:00
parent 668e43c5de
commit e39817cb57
3 changed files with 6 additions and 4 deletions

View File

@@ -590,7 +590,7 @@ export function process(this: IPlayer, router: IRouter, numCycles = 1): void {
if (this.isWorking) {
if (this.workType == CONSTANTS.WorkTypeFaction) {
if (this.workForFaction(numCycles)) {
router.toFaction();
router.toFaction(Factions[this.currentWorkFactionName]);
}
} else if (this.workType == CONSTANTS.WorkTypeCreateProgram) {
if (this.createProgramWork(numCycles)) {