Store incoming merchants

This commit is contained in:
2020-04-25 12:01:07 +03:00
parent 6bd04ee6e2
commit f005072d9c
13 changed files with 227 additions and 52 deletions

View File

@ -5,6 +5,7 @@ import { path } from '../utils';
import { Task } from '../Queue/TaskQueue';
import { TaskController, registerTask } from './TaskController';
import { grabVillageList } from '../Page/VillageBlock';
import { MARKET_ID } from '../Core/Buildings';
@registerTask
export class GrabVillageState extends TaskController {
@ -21,6 +22,12 @@ export class GrabVillageState extends TaskController {
path: path('/dorf1.php', { newdid: village.id }),
})
);
actions.push(
new Command(GoToPageAction.name, {
...args,
path: path('/build.php', { newdid: village.id, gid: MARKET_ID, t: 5 }),
})
);
}
actions.push(new Command(CompleteTaskAction.name, args));