mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix merge conflicts
This commit is contained in:
parent
1180a3c67b
commit
ee68f2ed73
3 changed files with 249 additions and 256 deletions
|
|
@ -852,15 +852,9 @@ function editStates() {
|
|||
const {cells, provinces, states} = pack;
|
||||
const form = {Zone: 1, Area: 1, Territory: 2, Province: 1};
|
||||
|
||||
<<<<<<< HEAD
|
||||
affectedProvinces.forEach((p) => {
|
||||
// do nothing if neutral lands are captured
|
||||
if (!p) return;
|
||||
=======
|
||||
affectedProvinces.forEach(p => {
|
||||
if (!p) return; // do nothing if neutral lands are captured
|
||||
const old = provinces[p].state;
|
||||
>>>>>>> 597f9ae038fbcc149315df9b1618e64744fb929d
|
||||
|
||||
// remove province from state provinces list
|
||||
if (states[old]?.provinces?.includes(p)) states[old].provinces.splice(states[old].provinces.indexOf(p), 1);
|
||||
|
|
@ -874,13 +868,8 @@ function editStates() {
|
|||
if (owner) {
|
||||
const name = provinces[p].name;
|
||||
|
||||
<<<<<<< HEAD
|
||||
// if province is historical part of abouther state province, unite with old province
|
||||
const part = states[owner].provinces.find((n) => name.includes(provinces[n].name));
|
||||
=======
|
||||
// if province is a historical part of another state's province, unite with old province
|
||||
const part = states[owner].provinces.find(n => name.includes(provinces[n].name));
|
||||
>>>>>>> 597f9ae038fbcc149315df9b1618e64744fb929d
|
||||
const part = states[owner].provinces.find((n) => name.includes(provinces[n].name));
|
||||
if (part) {
|
||||
provinces[p].removed = true;
|
||||
provCells.filter((i) => cells.state[i] === owner).forEach((i) => (cells.province[i] = part));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue