diff --git a/devNotes/usefulJSFunctionDocumentation.md b/devNotes/usefulJSFunctionDocumentation.md index e67ded88ad0348b7382b6bf5888169ccc0141df7..54fd65dad61acfd9ad0cb4fe1eb5319641ee934c 100644 --- a/devNotes/usefulJSFunctionDocumentation.md +++ b/devNotes/usefulJSFunctionDocumentation.md @@ -438,5 +438,7 @@ releaseRestricted // returns true if the slave has some kind of rule limiting th SkillIncrease() // Depreciates the SugarCube functions. - disobedience // Returns a 0-100 value indicating likelihood of a slave ignoring the rules. + disobedience() // Returns a 0-100 value indicating likelihood of a slave ignoring the rules. + + penetrativeSocialUse() // Returns the percentage (0-100) of the social acceptance of the slaves penetrating citizens. ``` diff --git a/src/js/utilsMisc.js b/src/js/utilsMisc.js index 18d96fea7165b2a7e0a39c73b5abead3085d93fa..4b216440f8ecacfaca6f97f4d3504a9f2e974a75 100644 --- a/src/js/utilsMisc.js +++ b/src/js/utilsMisc.js @@ -397,7 +397,7 @@ globalThis.weightedRandom = function(values) { * Returns the percentage (0-100) of the social acceptance of the slaves penetrating citizens. Accepts a slave as argument. * * @param {FC.SlaveState} slave - * @returns {number | any} + * @returns {number} */ globalThis.penetrativeSocialUse = function(slave = null) { let total = 0;