mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
refactor: render covering layers fix
This commit is contained in:
parent
8abf443f70
commit
5361565cd7
5 changed files with 34 additions and 21 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import {TIME} from "config/logging";
|
||||
import {drawPoint} from "utils/debugUtils";
|
||||
import {pick} from "utils/functionUtils";
|
||||
import {generateFolkReligions} from "./generateFolkReligions";
|
||||
import {generateOrganizedReligions} from "./generateOrganizedReligions";
|
||||
|
|
@ -32,6 +33,9 @@ export function generateReligions({
|
|||
pick(cells, "i", "c", "biome", "culture", "burg", "state", "route")
|
||||
);
|
||||
|
||||
folkReligions.forEach(({center}) => drawPoint(cells.p[center], {radius: 3, color: "blue"}));
|
||||
basicReligions.forEach(({center}) => drawPoint(cells.p[center], {radius: 3, color: "red"}));
|
||||
|
||||
TIME && console.timeEnd("generateReligions");
|
||||
return {religionIds, religions};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue