From c171dff06ce4150a81785f0244a39db26ecd80d7 Mon Sep 17 00:00:00 2001 From: swander Date: Sat, 27 Dec 2025 19:20:11 +0000 Subject: [PATCH] Second batch of changes to the in-game core terminology --- data/CommonEvents.json | 36 ++++++++++++++++++------------------ js/plugins/DTextPicture.js | 14 ++++++++++++++ 2 files changed, 32 insertions(+), 18 deletions(-) diff --git a/data/CommonEvents.json b/data/CommonEvents.json index 75bcde6..9011250 100644 --- a/data/CommonEvents.json +++ b/data/CommonEvents.json @@ -55790,7 +55790,7 @@ 239, 0, 4, - "`Cum Swallowing:`" + "`Swallowing:`" ] }, { @@ -92941,7 +92941,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\n[1]'s perversion has reached new heights \\c[27][Perversion UP]" + "text": "\\n[1]'s perversion has reached new heights \\c[27][Perversion +]" } ] }, @@ -93167,7 +93167,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\c[27]\\n[1]'s heartbeat quickened [Libido: Slight UP]" + "text": "\\c[27]\\n[1]'s heartbeat quickened [Libido: Slight +]" } ] }, @@ -93424,7 +93424,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\c[27]\\n[1]'s nipples got hard [Libido: Small UP]" + "text": "\\c[27]\\n[1]'s nipples got hard [Libido: Small +]" } ] }, @@ -93680,7 +93680,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\c[27]\\n[1]'s crotch is getting wet [Libido: Medium UP]" + "text": "\\c[27]\\n[1]'s crotch is getting wet [Libido: Medium +]" } ] }, @@ -93936,7 +93936,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\c[27]\\n[1]'s clit is erect [Libido: Big UP]" + "text": "\\c[27]\\n[1]'s clit is erect [Libido: Big +]" } ] }, @@ -96359,7 +96359,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "Pure \\n[1] controls herself and holds back. \\C[27][Lewdness Tendency Unchanged]" + "text": "Pure \\n[1] controls herself and holds back. \\C[27][Lewdness +0%]" } ] }, @@ -96450,7 +96450,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\n[1]'s sense of chastity has loosened. \\C[27][Lewdness Tendency +1%]" + "text": "\\n[1]'s sense of chastity has loosened. \\C[27][Lewdness +1%]" } ] }, @@ -96524,7 +96524,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\C[5]\\C[0] accelerates her lewd desires. \\C[27][Lewdness Tendency +1%]" + "text": "\\C[5]\\C[0] accelerates her lewd desires. \\C[27][Lewdness +1%]" } ] }, @@ -96619,7 +96619,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\C[5]\\C[0] accelerates her lewd desires. \\C[27][Lewdness Tendency +1%]" + "text": "\\C[5]\\C[0] accelerates her lewd desires. \\C[27][Lewdness +1%]" } ] }, @@ -97195,7 +97195,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\n[1] reflected on herself and showed restraint. \\C[1][Chastity Tendency +1%]" + "text": "\\n[1] reflected on herself and showed restraint. \\C[1][Chastity +1%]" } ] }, @@ -97225,7 +97225,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "The pure maiden strongly restrained herself. \\C[1][Chastity Tendency +1%]" + "text": "The pure maiden strongly restrained herself. \\C[1][Chastity +1%]" } ] }, @@ -97715,7 +97715,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\n[1]'s sex skills have improved \\c[27][Sex Skill UP]" + "text": "\\n[1]'s sex skills have improved \\c[27][Service +]" } ] }, @@ -97806,7 +97806,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\n[1]'s erogenous zones have become even more sensitive \\c[27][Erogenous Zone Sensitivity UP]" + "text": "\\n[1]'s erogenous zones have become even more sensitive \\c[27][Sensitivity +]" } ] }, @@ -134553,7 +134553,7 @@ "dText", "文字列ピクチャ準備", { - "text": "\\n[1]\n\n\\v[221]\\v[222]x \\v[223]\\v[224]x\n\\v[229]\\v[230]x \\v[235]\\v[236]x\n\\v[225]\\v[226]x \\v[227]\\v[228]x\n\\v[231]\\v[232]x \\v[239]\\v[240]x\n\\v[233]\\v[234]x \\v[237]\\v[238]x\n\\v[241]\\v[242]x \\v[243]\\v[244]x\n\nPartners:\\v[118]x\n\\c[6]Sex Technique:\\v[245]%\n\\c[27]Ero Development:\\v[246]%\n\\c[2]Pervert Level:\\v[247]%\\c[0]", + "text": "\\n[1]\n\n\\VX[221, ,13]\\v[222,2]x \\VX[223, ,16]\\v[224,2]x\n\\VX[229, ,14]\\v[230,2]x \\VX[235, ,16]\\v[236,2]x\n\\VX[225, ,14]\\v[226,2]x \\VX[227, ,16]\\v[228,2]x\n\\VX[231, ,14]\\v[232,2]x \\VX[239, ,16]\\v[240,2]x\n\\VX[233, ,14]\\v[234,2]x \\VX[237, ,16]\\v[238,2]x\n\\VX[241, ,14]\\v[242,2]x \\VX[243, ,16]\\v[244,2]x\n\nPartners: \\v[118]x\n\\c[6]Service: \\v[245]%\n\\c[27]Sensitivity: \\v[246]%\n\\c[2]Perversion: \\v[247]%\\c[0]", "fontSize": "16" } ] @@ -134655,7 +134655,7 @@ "", 0, 0, - 980, + 920, 75, 100, 100, @@ -190129,7 +190129,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "\\n[1]'s sense of chastity rejected it\n\\C[27][Condition: Lewdness Tendency \\v[406]% or higher]" + "text": "\\n[1]'s sense of chastity rejected it\n\\C[27][Condition: Lewdness >\\v[406]%]" } ] }, @@ -216623,7 +216623,7 @@ "addLog", "テキストをログウィンドウに追加", { - "text": "The pure \\n[1] composed herself and held back. \\C[27][Lewdness unchanged]" + "text": "The pure \\n[1] composed herself and held back. \\C[27][Lewdness +0%]" } ] }, diff --git a/js/plugins/DTextPicture.js b/js/plugins/DTextPicture.js index 9f6e951..7604d19 100644 --- a/js/plugins/DTextPicture.js +++ b/js/plugins/DTextPicture.js @@ -469,6 +469,10 @@ text = _PluginManagerEx_convertEscapeCharactersEx.call(this, text, data); text = text.replace(/\x1bV\[(\d+),\s*(\d+)]/gi, function() { return this.getVariablePadCharacter($gameVariables.value(parseInt(arguments[1], 10)), arguments[2]); + }.bind(this)); + //A custom rule to add padding functionality to strings + text = text.replace(/\x1bVX\[(\d+),(.),(\d+)]/gi, function() { + return this.getVariablePadCharacterExtra($gameVariables.value(parseInt(arguments[1], 10)), arguments[2], arguments[3]); }.bind(this)); text = text.replace(/\x1bITEM\[(\d+)]/gi, function() { const item = $dataItems[parseInt(arguments[1])]; @@ -505,6 +509,16 @@ } return (value < 0 ? '-' : '') + numText; }; + + PluginManagerEx.getVariablePadCharacterExtra = function(string, customPadCharacter, targetLength) { + let curText = String(string); + const pad = String(customPadCharacter) || String(param.padCharacter); + while (curText.length < targetLength) { + curText = curText + pad; + } + return curText; + }; + //============================================================================= // Sprite_Picture