fixed air prison (now wind prison)
This commit is contained in:
parent
f8447a0f0b
commit
8905d949fb
3 changed files with 15 additions and 14 deletions
14
builder.js
14
builder.js
|
@ -345,7 +345,7 @@ function encodeBuild() {
|
||||||
|
|
||||||
function calculateBuild(save_skp, skp){
|
function calculateBuild(save_skp, skp){
|
||||||
try {
|
try {
|
||||||
let specialNames = ["Quake", "Chain_Lightning", "Curse", "Courage", "Air_Prison"];
|
let specialNames = ["Quake", "Chain_Lightning", "Curse", "Courage", "Wind_Prison"];
|
||||||
for (const sName of specialNames) {
|
for (const sName of specialNames) {
|
||||||
for (let i = 1; i < 6; i++) {
|
for (let i = 1; i < 6; i++) {
|
||||||
let elem = document.getElementById(sName + "-" + i);
|
let elem = document.getElementById(sName + "-" + i);
|
||||||
|
@ -501,7 +501,7 @@ function calculateBuild(save_skp, skp){
|
||||||
*/
|
*/
|
||||||
function updateStats() {
|
function updateStats() {
|
||||||
|
|
||||||
let specialNames = ["Quake", "Chain_Lightning", "Curse", "Courage", "Air_Prison"];
|
let specialNames = ["Quake", "Chain_Lightning", "Curse", "Courage", "Wind_Prison"];
|
||||||
for (const sName of specialNames) {
|
for (const sName of specialNames) {
|
||||||
for (let i = 1; i < 6; i++) {
|
for (let i = 1; i < 6; i++) {
|
||||||
let elem = document.getElementById(sName + "-" + i);
|
let elem = document.getElementById(sName + "-" + i);
|
||||||
|
@ -516,7 +516,7 @@ function updateStats() {
|
||||||
player_build.externalStats.set("sdPct", player_build.externalStats.get("sdPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
player_build.externalStats.set("sdPct", player_build.externalStats.get("sdPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
||||||
player_build.externalStats.set("mdPct", player_build.externalStats.get("mdPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
player_build.externalStats.set("mdPct", player_build.externalStats.get("mdPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
||||||
player_build.externalStats.set("poisonPct", player_build.externalStats.get("poisonPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
player_build.externalStats.set("poisonPct", player_build.externalStats.get("poisonPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
||||||
} else if (name === "Air Prison") {
|
} else if (name === "Wind Prison") {
|
||||||
player_build.externalStats.set("aDamPct", player_build.externalStats.get("aDamPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
player_build.externalStats.set("aDamPct", player_build.externalStats.get("aDamPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
||||||
player_build.externalStats.get("damageBonus")[4] -= special.weaponSpecialEffects.get("Damage Boost")[i-1];
|
player_build.externalStats.get("damageBonus")[4] -= special.weaponSpecialEffects.get("Damage Boost")[i-1];
|
||||||
}
|
}
|
||||||
|
@ -599,7 +599,7 @@ function updatePowderSpecials(buttonId, recalcStats) {
|
||||||
|
|
||||||
let name = (buttonId).split("-")[0];
|
let name = (buttonId).split("-")[0];
|
||||||
let power = (buttonId).split("-")[1]; // [1, 5]
|
let power = (buttonId).split("-")[1]; // [1, 5]
|
||||||
let specialNames = ["Quake", "Chain Lightning", "Curse", "Courage", "Air Prison"];
|
let specialNames = ["Quake", "Chain Lightning", "Curse", "Courage", "Wind Prison"];
|
||||||
let powderSpecials = []; // [ [special, power], [special, power]]
|
let powderSpecials = []; // [ [special, power], [special, power]]
|
||||||
|
|
||||||
|
|
||||||
|
@ -615,7 +615,7 @@ function updatePowderSpecials(buttonId, recalcStats) {
|
||||||
player_build.externalStats.set("mdPct", player_build.externalStats.get("mdPct") - special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
player_build.externalStats.set("mdPct", player_build.externalStats.get("mdPct") - special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
||||||
player_build.externalStats.set("poisonPct", player_build.externalStats.get("poisonPct") - special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
player_build.externalStats.set("poisonPct", player_build.externalStats.get("poisonPct") - special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
||||||
//poison?
|
//poison?
|
||||||
} else if (name === "Air Prison") {
|
} else if (name === "Wind Prison") {
|
||||||
player_build.externalStats.set("aDamPct", player_build.externalStats.get("aDamPct") - special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
player_build.externalStats.set("aDamPct", player_build.externalStats.get("aDamPct") - special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
||||||
player_build.externalStats.get("damageBonus")[4] -= special.weaponSpecialEffects.get("Damage Boost")[power-1];
|
player_build.externalStats.get("damageBonus")[4] -= special.weaponSpecialEffects.get("Damage Boost")[power-1];
|
||||||
}
|
}
|
||||||
|
@ -633,7 +633,7 @@ function updatePowderSpecials(buttonId, recalcStats) {
|
||||||
player_build.externalStats.set("sdPct", player_build.externalStats.get("sdPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
player_build.externalStats.set("sdPct", player_build.externalStats.get("sdPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
||||||
player_build.externalStats.set("mdPct", player_build.externalStats.get("mdPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
player_build.externalStats.set("mdPct", player_build.externalStats.get("mdPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
||||||
player_build.externalStats.set("poisonPct", player_build.externalStats.get("poisonPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
player_build.externalStats.set("poisonPct", player_build.externalStats.get("poisonPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
||||||
} else if (name === "Air Prison") {
|
} else if (name === "Wind Prison") {
|
||||||
player_build.externalStats.set("aDamPct", player_build.externalStats.get("aDamPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
player_build.externalStats.set("aDamPct", player_build.externalStats.get("aDamPct") - special.weaponSpecialEffects.get("Damage Boost")[i-1]);
|
||||||
player_build.externalStats.get("damageBonus")[4] -= special.weaponSpecialEffects.get("Damage Boost")[i-1];
|
player_build.externalStats.get("damageBonus")[4] -= special.weaponSpecialEffects.get("Damage Boost")[i-1];
|
||||||
}
|
}
|
||||||
|
@ -666,7 +666,7 @@ function updatePowderSpecials(buttonId, recalcStats) {
|
||||||
player_build.externalStats.set("sdPct", player_build.externalStats.get("sdPct") + special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
player_build.externalStats.set("sdPct", player_build.externalStats.get("sdPct") + special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
||||||
player_build.externalStats.set("mdPct", player_build.externalStats.get("mdPct") + special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
player_build.externalStats.set("mdPct", player_build.externalStats.get("mdPct") + special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
||||||
player_build.externalStats.set("poisonPct", player_build.externalStats.get("poisonPct") + special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
player_build.externalStats.set("poisonPct", player_build.externalStats.get("poisonPct") + special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
||||||
} else if (name === "Air Prison") {
|
} else if (name === "Wind Prison") {
|
||||||
player_build.externalStats.set("aDamPct", player_build.externalStats.get("aDamPct") + special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
player_build.externalStats.set("aDamPct", player_build.externalStats.get("aDamPct") + special.weaponSpecialEffects.get("Damage Boost")[power-1]);
|
||||||
player_build.externalStats.get("damageBonus")[4] += special.weaponSpecialEffects.get("Damage Boost")[power-1];
|
player_build.externalStats.get("damageBonus")[4] += special.weaponSpecialEffects.get("Damage Boost")[power-1];
|
||||||
}
|
}
|
||||||
|
|
14
index.html
14
index.html
|
@ -868,31 +868,31 @@
|
||||||
<div class = "powder-special" style = "grid-column:2;grid-row:5">
|
<div class = "powder-special" style = "grid-column:2;grid-row:5">
|
||||||
<div class = "center" id = "powder-special">
|
<div class = "center" id = "powder-special">
|
||||||
<p class = "itemp Air">
|
<p class = "itemp Air">
|
||||||
Air Prison
|
Wind Prison
|
||||||
</p>
|
</p>
|
||||||
<p class = "Air_Prison itemp" id = "Air_Prison">
|
<p class = "Wind_Prison itemp" id = "Wind_Prison">
|
||||||
<b>
|
<b>
|
||||||
<button class = "button" id = "Air_Prison-1" onclick = "updatePowderSpecials('Air_Prison-1', true)">
|
<button class = "button" id = "Wind_Prison-1" onclick = "updatePowderSpecials('Wind_Prison-1', true)">
|
||||||
4
|
4
|
||||||
</button>
|
</button>
|
||||||
</b>
|
</b>
|
||||||
<b>
|
<b>
|
||||||
<button class = "button" id = "Air_Prison-2" onclick = "updatePowderSpecials('Air_Prison-2', true)">
|
<button class = "button" id = "Wind_Prison-2" onclick = "updatePowderSpecials('Wind_Prison-2', true)">
|
||||||
4.5
|
4.5
|
||||||
</button>
|
</button>
|
||||||
</b>
|
</b>
|
||||||
<b>
|
<b>
|
||||||
<button class = "button" id = "Air_Prison-3" onclick = "updatePowderSpecials('Air_Prison-3', true)">
|
<button class = "button" id = "Wind_Prison-3" onclick = "updatePowderSpecials('Wind_Prison-3', true)">
|
||||||
5
|
5
|
||||||
</button>
|
</button>
|
||||||
</b>
|
</b>
|
||||||
<b>
|
<b>
|
||||||
<button class = "button" id = "Air_Prison-4" onclick = "updatePowderSpecials('Air_Prison-4', true)">
|
<button class = "button" id = "Wind_Prison-4" onclick = "updatePowderSpecials('Wind_Prison-4', true)">
|
||||||
5.5
|
5.5
|
||||||
</button>
|
</button>
|
||||||
</b>
|
</b>
|
||||||
<b>
|
<b>
|
||||||
<button class = "button" id = "Air_Prison-5" onclick = "updatePowderSpecials('Air_Prison-5', true)">
|
<button class = "button" id = "Wind_Prison-5" onclick = "updatePowderSpecials('Wind_Prison-5', true)">
|
||||||
6
|
6
|
||||||
</button>
|
</button>
|
||||||
</b>
|
</b>
|
||||||
|
|
1
map.html
1
map.html
|
@ -63,6 +63,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class = "headerright">
|
<div class = "headerright">
|
||||||
|
<p class = "center">Right click to place marker.</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue