CheckGodmasterDoors array
This commit is contained in:
parent
909c17d0dd
commit
8d3318f7ee
2 changed files with 4 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
|
@ -616,9 +616,9 @@ function CheckWarriorDreams(divId, dataObject, playerData) {
|
||||||
|
|
||||||
function CheckGodmasterDoors(divId, dataObject, playerData) {
|
function CheckGodmasterDoors(divId, dataObject, playerData) {
|
||||||
|
|
||||||
let pantheon = ["Master", "Artist", "Sage", "Knight"];
|
// appends "pantheon" to every array element
|
||||||
pantheon.forEach((element) => "pantheon" + element);
|
// same as names in the database object
|
||||||
console.log(pantheon);
|
let pantheon = ["Master", "Artist", "Sage", "Knight"].map((element) => "pantheon" + element);
|
||||||
|
|
||||||
for (let i = 0; i < 4; i++) {
|
for (let i = 0; i < 4; i++) {
|
||||||
(playerData["bossDoorStateTier" + i + 1].completed === true) ? CurrentDataTrue(divId): CurrentDataFalse();
|
(playerData["bossDoorStateTier" + i + 1].completed === true) ? CurrentDataTrue(divId): CurrentDataFalse();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue