Skip to content
Snippets Groups Projects
Commit 8f7dd3a7 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

svorn suggestions

parent 968467a7
No related branches found
No related tags found
1 merge request!6283They say that a hero could save us
...@@ -3,23 +3,25 @@ ...@@ -3,23 +3,25 @@
*/ */
App.Utils.buildHeroArray = function() { App.Utils.buildHeroArray = function() {
let array; let array;
$.wiki(`<<include "custom Slaves Database">>`);
if (V.seeExtreme === 1) { if (V.seeExtreme === 1) {
array = App.Data.HeroSlaves.D.concat( array = App.Data.HeroSlaves.D.concat(
App.Data.HeroSlaves.DD, App.Data.HeroSlaves.DD,
App.Data.HeroSlaves.DF, App.Data.HeroSlaves.DF,
App.Data.HeroSlaves.Dextreme, App.Data.HeroSlaves.Dextreme,
App.Data.HeroSlaves.DDextreme, App.Data.HeroSlaves.DDextreme,
App.Data.HeroSlaves.DFextreme App.Data.HeroSlaves.DFextreme,
V.heroSlaves
); );
} else { } else {
array = App.Data.HeroSlaves.D.concat( array = App.Data.HeroSlaves.D.concat(
App.Data.HeroSlaves.DD, App.Data.HeroSlaves.DD,
App.Data.HeroSlaves.DF App.Data.HeroSlaves.DF,
V.heroSlaves
); );
} }
if (V.heroSlaves) { delete V.heroSlaves;
array = array.concat(V.heroSlaves);
}
for (let hero = 0; hero < array.length; hero++) { for (let hero = 0; hero < array.length; hero++) {
if (V.seePreg !== 1 && [900089, 900102].includes(array[hero].ID)) { if (V.seePreg !== 1 && [900089, 900102].includes(array[hero].ID)) {
array.splice(hero, 1); array.splice(hero, 1);
......
:: custom Slaves Database [nobr] :: custom Slaves Database
<<set $heroSlaves = []>> <<set $heroSlaves = []>>
<<set _i = 1000000>> <<set _i = 1000000>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment