Fix resource sending
This commit is contained in:
@ -23,9 +23,11 @@ export class FindSendResourcesPath extends ActionController {
|
||||
const villages = this.villageFactory.getAllVillages();
|
||||
for (let fromVillage of villages) {
|
||||
for (let toVillage of villages) {
|
||||
if (fromVillage.id !== toVillage.id) {
|
||||
reports.push(calculator.calc(fromVillage.id, toVillage.id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
reports.sort((r1, r2) => r2.score - r1.score);
|
||||
|
||||
|
Reference in New Issue
Block a user