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

Simplify

parent 1f3be2d5
No related branches found
No related tags found
No related merge requests found
...@@ -48,23 +48,12 @@ App.Utils.hasFamilySex = function hasFamilySex(slave) { ...@@ -48,23 +48,12 @@ App.Utils.hasFamilySex = function hasFamilySex(slave) {
}; };
/** /**
* Returns true if a slave has no practical form of release. * Returns true if the slave has any kind of nonassignment sex with someone other than the PC.
* @param {App.Entity.SlaveState} slave * @param {App.Entity.SlaveState} slave
* @returns {boolean} * @returns {boolean}
*/ */
App.Utils.hasNoOutlet = function hasNoOutlet(slave) { App.Utils.hasNonassignmentSex = function hasNonassignmentSex(slave) {
const rel = slave.rules.release; return (slave.rules.release.slaves === 1) || this.hasFamilySex(slave) || this.hasPartnerSex(slave);
return (rel.masturbation === 0) && (rel.master === 0) && (rel.slaves === 0) && !this.hasPartnerSex(slave) && !this.hasFamilySex(slave);
};
/**
* Returns true if a slave's only practical form of release is masturbation.
* @param {App.Entity.SlaveState} slave
* @returns {boolean}
*/
App.Utils.mustMasturbate = function mustMasturbate(slave) {
const rel = slave.rules.release;
return (rel.masturbation === 1) && (rel.master === 0) && (rel.slaves === 0) && !this.hasPartnerSex(slave) && !this.hasFamilySex(slave);
}; };
/** /**
......
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