diff --git a/src/js/releaseRules.js b/src/js/releaseRules.js index a0793891cb59473a453bc507464504f7690ed4e8..d391f4604ef8160466dd4e729d8224cfbda63214 100644 --- a/src/js/releaseRules.js +++ b/src/js/releaseRules.js @@ -166,8 +166,10 @@ App.Utils.releaseSummaryLong = function releaseSummaryLong(slave) { } return ret; } else { - let ret = "restrictive"; let permissions = []; + if (rel.masturbation === 1) { + permissions.push("masturbation"); + } if (rel.partner === 1) { permissions.push("partner"); } @@ -180,13 +182,7 @@ App.Utils.releaseSummaryLong = function releaseSummaryLong(slave) { if (rel.master === 1) { permissions.push("you"); } - if (permissions.length > 0) { - ret += " but permits " + permissions.reduce(function(res, ch, i, arr) { return res + (i === arr.length - 1 ? ' and ' : ', ') + ch; }); - } - if (rel.masturbation === 1) { - ret += ", and allowed to masturbate"; - } - return ret; + return permissions.reduce(function(res, ch, i, arr) { return res + (i === arr.length - 1 ? ' and ' : ', ') + ch; }); } };