Skip to content
Snippets Groups Projects
Commit 24616464 authored by svornost's avatar svornost
Browse files

Make hero slave list respect $seeDicks

parent 7964fcff
No related branches found
No related tags found
No related merge requests found
......@@ -2,24 +2,24 @@
* @returns {Array}
*/
App.Utils.buildHeroArray = function() {
let array;
$.wiki(`<<include "custom Slaves Database">>`);
if (V.seeExtreme === 1) {
array = App.Data.HeroSlaves.D.concat(
App.Data.HeroSlaves.DD,
App.Data.HeroSlaves.DF,
App.Data.HeroSlaves.Dextreme,
App.Data.HeroSlaves.DDextreme,
App.Data.HeroSlaves.DFextreme,
V.heroSlaves
);
} else {
array = App.Data.HeroSlaves.D.concat(
App.Data.HeroSlaves.DD,
App.Data.HeroSlaves.DF,
V.heroSlaves
);
let chunks = [];
if (V.seeDicks < 100) { // dickless slaves
chunks.push(App.Data.HeroSlaves.D);
chunks.push(App.Data.HeroSlaves.DF);
if (V.seeExtreme === 1) {
chunks.push(App.Data.HeroSlaves.Dextreme);
chunks.push(App.Data.HeroSlaves.DFextreme);
}
}
if (V.seeDicks > 0) { // dicked slaves
chunks.push(App.Data.HeroSlaves.DD);
if (V.seeExtreme === 1) {
chunks.push(App.Data.HeroSlaves.DDextreme);
}
}
App.UI.DOM.renderPassage("custom Slaves Database"); // populate V.heroSlaves from user DB
chunks.push(V.heroSlaves);
let array = [].concat(...chunks);
delete V.heroSlaves;
for (let hero = 0; hero < array.length; hero++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment