diff --git a/js/003-data/miscData.js b/js/003-data/miscData.js index 2d48ceb1f5f999ce971b6e8aa09d884ef05e03ba..899ad5c615536a81d69ba897604208955b88de01 100644 --- a/js/003-data/miscData.js +++ b/js/003-data/miscData.js @@ -2309,7 +2309,11 @@ App.Data.misc = { name: "Supportive band", value: "a support band", unlock: function(slave) { - if (slave.belly > 10000) { + if (slave) { + if (slave.belly > 10000) { + return true; + } + } else { return true; } } @@ -2320,8 +2324,14 @@ App.Data.misc = { fs: "FSRepopulationFocus", rs: "boughtBelly", unlock: function(slave) { - if (V.boughtBelly > 0 && (slave.belly < 1500 && slave.weight < 130)) { - return true; + if (V.boughtBelly > 0) { + if (slave) { + if (slave.belly < 1500 && slave.weight < 130) { + return true; + } + } else { + return true; + } } } }, @@ -2331,8 +2341,14 @@ App.Data.misc = { fs: "FSRepopulationFocus", rs: "boughtBelly", unlock: function(slave) { - if (V.boughtBelly > 0 || (slave.belly < 1500 && slave.weight < 130)) { - return true; + if (V.boughtBelly > 0) { + if (slave) { + if (slave.belly < 1500 && slave.weight < 130) { + return true; + } + } else { + return true; + } } } }, @@ -2342,8 +2358,14 @@ App.Data.misc = { fs: "FSRepopulationFocus", rs: "boughtBelly", unlock: function(slave) { - if (V.boughtBelly > 0 || (slave.belly < 1500 && slave.weight < 130)) { - return true; + if (V.boughtBelly > 0) { + if (slave) { + if (slave.belly < 1500 && slave.weight < 130) { + return true; + } + } else { + return true; + } } } }, @@ -2353,8 +2375,14 @@ App.Data.misc = { fs: "FSRepopulationFocus", rs: "boughtBelly", unlock: function(slave) { - if (V.boughtBelly > 0 || (slave.belly < 1500 && slave.weight < 130)) { - return true; + if (V.boughtBelly > 0) { + if (slave) { + if (slave.belly < 1500 && slave.weight < 130) { + return true; + } + } else { + return true; + } } } }