mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
feat: burg groups - image icons
This commit is contained in:
parent
c29f3b73e8
commit
2f53a635c8
27 changed files with 225 additions and 211 deletions
|
|
@ -603,7 +603,7 @@ function stateRemove(stateId) {
|
|||
burg.state = 0;
|
||||
if (burg.capital) {
|
||||
burg.capital = 0;
|
||||
moveBurgToGroup(burg.i, "towns");
|
||||
moveBurgToGroup(burg.i, "town");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -1192,7 +1192,7 @@ function addState() {
|
|||
// turn burg into a capital
|
||||
burgs[burg].capital = 1;
|
||||
burgs[burg].state = newState;
|
||||
moveBurgToGroup(burg, "cities");
|
||||
moveBurgToGroup(burg, "city");
|
||||
|
||||
if (d3.event.shiftKey === false) exitAddStateMode();
|
||||
|
||||
|
|
@ -1382,7 +1382,7 @@ function openStateMergeDialog() {
|
|||
pack.burgs.forEach(b => {
|
||||
if (statesToMerge.includes(b.state)) {
|
||||
if (b.capital) {
|
||||
moveBurgToGroup(b.i, "towns");
|
||||
moveBurgToGroup(b.i, "town");
|
||||
b.capital = 0;
|
||||
}
|
||||
b.state = rulingStateId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue