From 29aed0d47b3f349362c35af9e50c595f7f697e25 Mon Sep 17 00:00:00 2001 From: Trinidad <anchaiscastilla@gmail.com> Date: Tue, 12 Sep 2023 23:31:43 +0200 Subject: [PATCH] modified: devNotes/usefulJSFunctionDocumentation.md modified: src/npc/descriptions/genericDescriptions.js --- devNotes/usefulJSFunctionDocumentation.md | 2 +- src/npc/descriptions/genericDescriptions.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/devNotes/usefulJSFunctionDocumentation.md b/devNotes/usefulJSFunctionDocumentation.md index 97a39140864..854e8597825 100644 --- a/devNotes/usefulJSFunctionDocumentation.md +++ b/devNotes/usefulJSFunctionDocumentation.md @@ -456,5 +456,5 @@ 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. ``` diff --git a/src/npc/descriptions/genericDescriptions.js b/src/npc/descriptions/genericDescriptions.js index 657742bf2da..dc7be8724cb 100644 --- a/src/npc/descriptions/genericDescriptions.js +++ b/src/npc/descriptions/genericDescriptions.js @@ -399,7 +399,7 @@ globalThis.bellyDesc = function(slave, withNoun = true, pregReference = true) { adj.push("bloated"); } else { adj.push("flat"); - noun.push("stomach", "tummy"); + noun = ["stomach", "tummy"]; } } else { if (slave.belly > 750000) { @@ -439,6 +439,7 @@ globalThis.bellyDesc = function(slave, withNoun = true, pregReference = true) { noun.push("tummy"); } else { adj.push("flat"); + noun = ["tummy"]; } noun.push("stomach"); if (slave.belly > 5000) { @@ -448,5 +449,5 @@ globalThis.bellyDesc = function(slave, withNoun = true, pregReference = true) { if (withNoun) { return `${jsEither(adj)} ${jsEither(noun)}`; } - return `${surgery}${jsEither(adj)}`; + return `${jsEither(adj)}`; } -- GitLab