mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.5.63- fix for state promotion
This commit is contained in:
parent
e05a7036dc
commit
b62e57f5a7
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ function editProvinces() {
|
||||||
|
|
||||||
// update diplomacy and reverse relations
|
// update diplomacy and reverse relations
|
||||||
const diplomacy = states.map(s => {
|
const diplomacy = states.map(s => {
|
||||||
if (!s.i) return "x";
|
if (!s.i || s.removed) return "x";
|
||||||
let relations = states[oldState].diplomacy[s.i]; // relations between Nth state and old overlord
|
let relations = states[oldState].diplomacy[s.i]; // relations between Nth state and old overlord
|
||||||
if (s.i === oldState) relations = "Enemy"; // new state is Enemy to its old overlord
|
if (s.i === oldState) relations = "Enemy"; // new state is Enemy to its old overlord
|
||||||
else if (relations === "Ally") relations = "Suspicion";
|
else if (relations === "Ally") relations = "Suspicion";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue