Skip to content
Snippets Groups Projects
Commit fb0e529e authored by corncobman21's avatar corncobman21
Browse files

Add slimPass check JS function

parent 8bca92d4
No related branches found
No related tags found
1 merge request!1271Add text and slight rep bonuses/hits for advertising / preference matches.
...@@ -60,4 +60,29 @@ window.isNotPreg = function(slave) { ...@@ -60,4 +60,29 @@ window.isNotPreg = function(slave) {
window.isPure = function(slave) { window.isPure = function(slave) {
return ((slave.boobsImplant == 0) && (slave.buttImplant == 0) && (slave.waist >= -95) && (slave.lipsImplant == 0) && (slave.faceImplant < 30) && (slave.bellyImplant == -1) && (Math.abs(slave.shouldersImplant) < 2) && (Math.abs(slave.hipsImplant) < 2)); return ((slave.boobsImplant == 0) && (slave.buttImplant == 0) && (slave.waist >= -95) && (slave.lipsImplant == 0) && (slave.faceImplant < 30) && (slave.bellyImplant == -1) && (Math.abs(slave.shouldersImplant) < 2) && (Math.abs(slave.hipsImplant) < 2));
}
window.slimPass = function(slave) {
var slimPass = 0;
var ArcologyZero = State.variables.arcologies[0];
if (ArcologyZero.FSSlimnessEnthusiastLaw == 1) {
if ((slave.boobs < 300) && (slave.butt <= 1) && (slave.waist <= 10)) {
State.variables.slimPass = 1;
if ((ArcologyZero.FSPhysicalIdealist == "unset") && (ArcologyZero.FSHedonisticDecadenceStrongFat == 0) && (slave.muscles > 30)) { /*muscle check*/
slimPass = 0;
}
if (State.variables.slimPass == 1) {
if ((ArcologyZero.FSHedonisticDecadence != "unset") || (ArcologyZero.FSPhysicalIdealistStrongFat == 1)) { /*weight check*/
if (slave.weight > 30) {
slimPass = 0;
}
} else if (slave.weight > 10) {
slimPass = 0;
}
}
}
}
return slimPass;
} }
\ No newline at end of file
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