database entries for intro section
This commit is contained in:
parent
2a0b5a9ec6
commit
5885085d50
5 changed files with 16 additions and 9 deletions
|
|
@ -4771,7 +4771,7 @@ function GenerateInnerHTML(hkdb) {
|
||||||
var iconNull = SYMBOL_EMPTY;
|
var iconNull = SYMBOL_EMPTY;
|
||||||
var textPrefix = "";
|
var textPrefix = "";
|
||||||
var textSuffix = "";
|
var textSuffix = "";
|
||||||
var sections = hkdb.DIV_ID;
|
var sections = hkdb.SECTION;
|
||||||
|
|
||||||
for (var section in sections) {
|
for (var section in sections) {
|
||||||
/* starts a new <div> with the current section id */
|
/* starts a new <div> with the current section id */
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1331,13 +1331,13 @@ function InitialHTMLPopulate(divIdObj) {
|
||||||
// First Hint Only
|
// First Hint Only
|
||||||
AppendHTML(divIdObj.hints, divIdObj.hints.entries.fireballLevel.spoiler);
|
AppendHTML(divIdObj.hints, divIdObj.hints.entries.fireballLevel.spoiler);
|
||||||
|
|
||||||
// Temp arrays storing references (addresses) to objects for looping through them (duplicates important)
|
/* // Temp arrays storing references (addresses) to objects for looping through them (duplicates important)
|
||||||
let hkObjArray = [HK.BOSSES, HK.CHARMS, HK.EQUIPMENT, HK.NAILARTS, HK.MASKSHARDS, HK.MASKSHARDS_WORLD, HK.VESSELFRAGMENTS, HK.VESSELFRAGMENTS_WORLD, HK.DREAMERS, HK.COLOSSEUM, HK.DREAMNAIL, HK.WARRIORDREAMS, HK.GRIMMTROUPE, HK.LIFEBLOOD, HK.GODMASTER, HK.ESSENTIAL, HK.ACHIEVEMENTS, HK.STATISTICS, HK.GODHOME_STATISTICS];
|
let hkObjArray = [HK.BOSSES, HK.CHARMS, HK.EQUIPMENT, HK.NAILARTS, HK.MASKSHARDS, HK.MASKSHARDS_WORLD, HK.VESSELFRAGMENTS, HK.VESSELFRAGMENTS_WORLD, HK.DREAMERS, HK.COLOSSEUM, HK.DREAMNAIL, HK.WARRIORDREAMS, HK.GRIMMTROUPE, HK.LIFEBLOOD, HK.GODMASTER, HK.ESSENTIAL, HK.ACHIEVEMENTS, HK.STATISTICS, HK.GODHOME_STATISTICS];
|
||||||
|
|
||||||
// duplicates and order important - must be the same as in hkObjArray[]
|
// duplicates and order important - must be the same as in hkObjArray[]
|
||||||
let divObjArray = [divIdObj.bosses, divIdObj.charms, divIdObj.equipment, divIdObj.nailArts, divIdObj.maskShards, divIdObj.maskShards, divIdObj.vesselFragments, divIdObj.vesselFragments, divIdObj.dreamers, divIdObj.colosseum, divIdObj.dreamNail, divIdObj.warriorDreams, divIdObj.grimmTroupe, divIdObj.lifeblood, divIdObj.godmaster, divIdObj.essential, divIdObj.achievements, divIdObj.statistics, divIdObj.godhomeStatistics];
|
let divObjArray = [divIdObj.bosses, divIdObj.charms, divIdObj.equipment, divIdObj.nailArts, divIdObj.maskShards, divIdObj.maskShards, divIdObj.vesselFragments, divIdObj.vesselFragments, divIdObj.dreamers, divIdObj.colosseum, divIdObj.dreamNail, divIdObj.warriorDreams, divIdObj.grimmTroupe, divIdObj.lifeblood, divIdObj.godmaster, divIdObj.essential, divIdObj.achievements, divIdObj.statistics, divIdObj.godhomeStatistics]; */
|
||||||
|
|
||||||
// Looped filling to reduce redundancy
|
/* // Looped filling to reduce redundancy
|
||||||
do {
|
do {
|
||||||
for (let entry in hkObjArray[0]) {
|
for (let entry in hkObjArray[0]) {
|
||||||
if (entry === "mrMushroomState") continue;
|
if (entry === "mrMushroomState") continue;
|
||||||
|
|
@ -1378,7 +1378,7 @@ function InitialHTMLPopulate(divIdObj) {
|
||||||
// Fleur Dividers
|
// Fleur Dividers
|
||||||
AppendHTML(divIdObj.godmaster, FLEUR_DIVIDE);
|
AppendHTML(divIdObj.godmaster, FLEUR_DIVIDE);
|
||||||
AppendHTML(divIdObj.essential, FLEUR_DIVIDE);
|
AppendHTML(divIdObj.essential, FLEUR_DIVIDE);
|
||||||
AppendHTML(divIdObj.achievements, FLEUR_DIVIDE);
|
AppendHTML(divIdObj.achievements, FLEUR_DIVIDE); */
|
||||||
|
|
||||||
// Check local storage first to set proper checkbox state before the below functions start (default is always unchecked)
|
// Check local storage first to set proper checkbox state before the below functions start (default is always unchecked)
|
||||||
if (StorageAvailable('localStorage')) {
|
if (StorageAvailable('localStorage')) {
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,16 @@ const HK = {
|
||||||
intro: {
|
intro: {
|
||||||
h2: "Game Status",
|
h2: "Game Status",
|
||||||
id: "hk-intro",
|
id: "hk-intro",
|
||||||
iconPlayTime: "<i class='icon-clock'></i>",
|
|
||||||
maxPercent: 112,
|
maxPercent: 112,
|
||||||
saveVersion: "0.0.0.0"
|
entries: {
|
||||||
|
timePlayed: "0 h 00 min 00 sec",
|
||||||
|
gameCompletion: 0,
|
||||||
|
saveVersion: "0.0.0.0",
|
||||||
|
health: 5,
|
||||||
|
soul: 99,
|
||||||
|
notches: 3,
|
||||||
|
geo: 0
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
/* ################ Hints ################### */
|
/* ################ Hints ################### */
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ function GenerateInnerHTML(hkdb) {
|
||||||
let textPrefix = "";
|
let textPrefix = "";
|
||||||
let textSuffix = "";
|
let textSuffix = "";
|
||||||
|
|
||||||
let sections = hkdb.DIV_ID;
|
let sections = hkdb.SECTION;
|
||||||
|
|
||||||
for (let section in sections) {
|
for (let section in sections) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue