mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Resource editor - ability to add bonus if no bonuses
This commit is contained in:
parent
8f8a33f0a4
commit
3b2216f668
1 changed files with 1 additions and 1 deletions
|
|
@ -660,7 +660,7 @@ function editResources() {
|
||||||
const bonusString = Object.entries(bonusObj).map((e) => e.join(': ')).join('; '); //prettier-ignore
|
const bonusString = Object.entries(bonusObj).map((e) => e.join(': ')).join('; '); //prettier-ignore
|
||||||
|
|
||||||
resource.bonus = bonusObj;
|
resource.bonus = bonusObj;
|
||||||
el.innerHTML = bonusHTML;
|
el.innerHTML = bonusHTML || "<span style='opacity:0'>place</span>";
|
||||||
line.dataset.bonus = bonusString;
|
line.dataset.bonus = bonusString;
|
||||||
el.setAttribute('title', bonusString);
|
el.setAttribute('title', bonusString);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue