QOL fix for build reset

This commit is contained in:
b 2021-05-01 07:22:16 -07:00
parent e9ae79a047
commit c8e5e0d2ea

View file

@ -3,7 +3,7 @@ const url_tag = location.hash.slice(1);
// console.log(url_tag); // console.log(url_tag);
const BUILD_VERSION = "7.0.4"; const BUILD_VERSION = "7.0.5";
function setTitle() { function setTitle() {
let text; let text;
@ -422,10 +422,14 @@ function calculateBuild(save_skp, skp){
let equipment = [ null, null, null, null, null, null, null, null, null ]; let equipment = [ null, null, null, null, null, null, null, null, null ];
for (let i in equipment) { for (let i in equipment) {
let equip = getValue(equipmentInputs[i]).trim(); let equip = getValue(equipmentInputs[i]).trim();
if (equip === "") { equip = "No " + equipment_names[i] } if (equip === "") {
equipment[i] = equip; equip = "No " + equipment_names[i]
}
else {
setValue(equipmentInputs[i], equip); setValue(equipmentInputs[i], equip);
} }
equipment[i] = equip;
}
let powderings = []; let powderings = [];
let errors = []; let errors = [];
for (const i in powderInputs) { for (const i in powderInputs) {