diff --git a/js/003-data/gameVariableData.js b/js/003-data/gameVariableData.js index ba41370a04e201410593c734dfa5f99e3ad7bedf..df7bef2efcba7ecb4ab837cccbbd303996cd069e 100644 --- a/js/003-data/gameVariableData.js +++ b/js/003-data/gameVariableData.js @@ -1403,7 +1403,7 @@ App.Data.resetOnNGPlus = { DefaultBirthDestination: "individually decided fates", abbreviateHormoneBalance: 2, legendaryFacility: 0, - heroSlavesPuchased: [], + heroSlavesPurchased : [], fcnn: [ ("...coming up at the top of the hour: Catgirl slaves, science fact or science fiction..."), ("...coming up at the top of the hour: Malnockestivi Smith, Free Cities' first MtFtMtFtH transgendered person..."), diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index fe51a50a8e70a32b18df023c95864a5c386285d6..b04dee293837652adc3a40e16fd17b8da617954f 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -220,6 +220,10 @@ App.Update.globalVariables = function() { App.Update.CustomSlaveOrder(V.huskSlave); App.Update.CustomSlaveOrder(V.customSlave); + if (V.heroSlavesPuchased) { // fix typo + V.heroSlavesPurchased = Array.from(V.heroSlavesPuchased); + } + // Farmyard Subsection const animalsBought = ["canines", "hooved", "felines", "labradorRetrievers", "germanShepherds", "goldenRetrievers", "frenchBulldogs", "bulldogs", "beagles", "poodles", "rottweilers", "yorkshireTerriers", "siberianHuskies", "horses", "bulls", "pigs", "siameses", "persians", "maineCoons", "ragdolls", "bengals", "abbysinians", "birmans", "orientalShorthairs", "sphynxes", "russianBlues", "wolves", "foxes", "jackals", "dingos", "zebras", "cougars", "jaguars", "pumas", "lynx", "leopards", "lions", "tigers"]; animalsBought.forEach(function(species) { V.animalsBought[species] = V.animalsBought[species] || 0; }); diff --git a/src/js/heroCreator.js b/src/js/heroCreator.js index 15102be130344723f7dbacdea935cbc94af17957..50d669cecd5a9c23a77cfdda69b8cd113a865ccf 100644 --- a/src/js/heroCreator.js +++ b/src/js/heroCreator.js @@ -33,7 +33,7 @@ App.Utils.buildHeroArray = function() { hero--; continue; } - if (V.heroSlavesPuchased.includes(array[hero].ID)) { + if (V.heroSlavesPurchased .includes(array[hero].ID)) { array.splice(hero, 1); hero--; continue; diff --git a/src/uncategorized/newSlaveIntro.tw b/src/uncategorized/newSlaveIntro.tw index 4a4c6cdee0082b89656e8ba3238745b0febcf910..222c171c1df0848b70fcdc8f5ddee56016501ece 100644 --- a/src/uncategorized/newSlaveIntro.tw +++ b/src/uncategorized/newSlaveIntro.tw @@ -89,7 +89,7 @@ <</if>> <<if $specialSlave == 1>> - <<run $heroSlavesPuchased.push($heroSlaveID)>> + <<run $heroSlavesPurchased .push($heroSlaveID)>> <<unset $heroSlaveID>> <<set $specialSlave = 0>> <</if>>