mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
refactor(es modules): continue migration
This commit is contained in:
parent
bc65e0e207
commit
97f2b213c4
42 changed files with 252 additions and 222 deletions
|
|
@ -1,5 +1,6 @@
|
|||
"use strict";
|
||||
function editDiplomacy() {
|
||||
import {findCell} from "/src/utils/graphUtils";
|
||||
|
||||
export function editDiplomacy() {
|
||||
if (customization) return;
|
||||
if (pack.states.filter(s => s.i && !s.removed).length < 2)
|
||||
return tip("There should be at least 2 states to edit the diplomacy", false, "error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue