This commit is contained in:
Azgaar 2020-06-21 18:50:13 +03:00
parent 2d00b3c25b
commit 79ebab8775
3 changed files with 8 additions and 10 deletions

View file

@ -2465,7 +2465,7 @@
</div>
<div id="battleScreen" class="dialog stable" style="display: none">
<div id="battleBody" class="overflow>
<div id="battleBody" class="overflow">
<template id="battlePhases_field">
<button data-tip="Skirmish phase. Ranged units excel" data-phase="skirmish" class="icon-button-skirmish"></button>
<button data-tip="Melee phase. Melee units excel" data-phase="melee" class="icon-button-melee"></button>
@ -2534,7 +2534,7 @@
<button data-tip="Retreat phase. Units strength reduced" data-phase="retreat" class="icon-button-retreat"></button>
</template>
<div style="font-size:1.2em; font-weight: bold">
<div style="font-size:1.2em; font-weight: bold; width: unset">
<span>Attackers</span>
<div style="float: right; font-size: .7em">
<meter id="battleMorale_attackers" data-tip="Attackers morale: " min=0 max=100 low=33 high=66 optimum=80></meter>
@ -2547,7 +2547,7 @@
</div>
</div>
<table id="battleAttackers"></table>
<div style="font-size:1.2em; font-weight: bold">
<div style="font-size:1.2em; font-weight: bold; width: unset">
<span></span>Defenders</span>
<div style="float: right; font-size: .7em">
<meter id="battleMorale_defenders" data-tip="Defenders morale: " min=0 max=100 low=33 high=66 optimum=80></meter>

View file

@ -330,7 +330,7 @@ function applyDefaultBiomesSystem() {
}
function showWelcomeMessage() {
const post = link("https://www.reddit.com/r/FantasyMapGenerator/comments/ft5b41/update_new_version_is_published_military_update_v14/", "Main changes:"); // announcement on Reddit
const post = link("https://www.reddit.com/r/FantasyMapGenerator/comments/ft5b41/update_new_version_is_published_into_the_battle_v14/", "Main changes:"); // announcement on Reddit
const changelog = link("https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Changelog", "previous version");
const reddit = link("https://www.reddit.com/r/FantasyMapGenerator", "Reddit community");
const discord = link("https://discordapp.com/invite/X7E84HU", "Discord server");
@ -344,10 +344,11 @@ function showWelcomeMessage() {
<li>Military forces changes (${link("https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Military-Forces", "detailed description")})</li>
<li>Battle simulation (${link("https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Battle-Simulator", "detailed description")})</li>
<li>Ice layer and Ice editor</li>
<li>Route and River Elevation profile</li>
<li>Route and River Elevation profile (by EvolvedExperiment)</li>
<li>Image Converter enhancement</li>
<li>Name generator improvement</li>
<li>Fogging style change</li>
<li>Improved integration with City Generator</li>
<li>Fogging restyle</li>
</ul>
<p>You can can also download a ${desktop}.</p>

View file

@ -244,8 +244,7 @@ function showElevationProfile(data, routeLen, isRiver) {
const add = 15;
let xwidth = chartData.points[1][0] - chartData.points[0][0];
for (let k=0; k<chartData.points.length; k++)
{
for (let k=0; k<chartData.points.length; k++) {
if (chartData.burg[k] > 0) {
let b = chartData.burg[k];
@ -269,9 +268,7 @@ function showElevationProfile(data, routeLen, isRiver) {
document.getElementById("epScaleRange").removeEventListener("change", draw);
document.getElementById("epCurve").removeEventListener("change", draw);
document.getElementById("epSave").removeEventListener("click", downloadCSV);
document.getElementById("elevationGraph").innerHTML = "";
modules.elevation = false;
}
}