(hopefully) fixed SexTxtSet running out of the box

This commit is contained in:
onms 2026-01-22 15:50:21 -06:00
parent dd22671226
commit bb220a8730
2 changed files with 25 additions and 12 deletions

View file

@ -13390,21 +13390,28 @@
"code": 655,
"indent": 1,
"parameters": [
"\"She wears provocative clothes so she won't be underestimated,\","
"\"She wears provocative clothes so she won't be\","
]
},
{
"code": 655,
"indent": 1,
"parameters": [
"\"but in reality, she has almost no sexual experience. Deep\","
"\"underestimated, but in reality, she has almost\","
]
},
{
"code": 655,
"indent": 1,
"parameters": [
"\"down, she's actually a romantic and a bit of a maiden.\""
"\"no sexual experience. Deep down, she's actually\","
]
},
{
"code": 655,
"indent": 1,
"parameters": [
"\"a romantic and a bit of a maiden.\""
]
},
{
@ -13603,21 +13610,21 @@
"code": 655,
"indent": 4,
"parameters": [
"\"Sex addict. If she goes even a day without sex, she\","
"\"Sex addict. After even a day without sex, she'll get\","
]
},
{
"code": 655,
"indent": 4,
"parameters": [
"\"gets horribly stressed. On days when there are no\","
"\"horribly stressed. On days when there are no 'buyers,'\","
]
},
{
"code": 655,
"indent": 4,
"parameters": [
"\"'buyers,' she goes out to the back alleys to pick up men.\""
"\"she goes out to the back alleys to pick up men.\""
]
},
{

View file

@ -1,7 +1,7 @@
let _メニュー_保存変数 = Game_System.prototype.initialize;
Game_System.prototype.initialize = function () {
_メニュー_保存変数.call(this);
this.SexTxt = ["", "", ""];
this.SexTxt = ["", "", "", ""];
};
const MenuPic = "pictures/Menu/";
let MenuOpen = false;
@ -1399,11 +1399,16 @@ Game_Interpreter.prototype.MSklLayerL1_Update = function () {
}
}
const M_Sex_Pic = MenuPic + "Sex/";
Game_Interpreter.prototype.Menu_SexTxtSet = function (_TxtA, _TxtB, _TxtC) {
$gameSystem.SexTxt = ["", "", ""];
Game_Interpreter.prototype.Menu_SexTxtSet = function (_TxtA, _TxtB, _TxtC, _TxtD) {
_TxtA = typeof _TxtA !== 'undefined' ? _TxtA : "";
_TxtB = typeof _TxtB !== 'undefined' ? _TxtB : "";
_TxtC = typeof _TxtC !== 'undefined' ? _TxtC : "";
_TxtD = typeof _TxtD !== 'undefined' ? _TxtD : "";
$gameSystem.SexTxt = ["", "", "", ""];
$gameSystem.SexTxt[0] = _TxtA;
$gameSystem.SexTxt[1] = _TxtB;
$gameSystem.SexTxt[2] = _TxtC;
$gameSystem.SexTxt[3] = _TxtD;
}
const VN_淫乱度 = 3;
const VN_経験人数 = 136;
@ -1449,9 +1454,10 @@ Game_Interpreter.prototype.Menu_L1Sex_OpnView2 = function () {
this.SpriteStrR(PN_mSxSumTxt + 0, $gameVariables.value(VN_経験人数) + "", 30, 381, 231 + (58 * 0), 0);
this.SpriteStrR(PN_mSxSumTxt + 1, $gameVariables.value(VN_絶頂人数) + "", 30, 381, 231 + (58 * 1), 0);
this.SpriteStrR(PN_mSxSumTxt + 2, $gameVariables.value(VN_射精人数) + "", 30, 381, 231 + (58 * 2), 0);
this.SpriteStr(PN_mSxIrnTxt + 1, $gameSystem.SexTxt[0], 17, 93, 584 + (32 * 0), 0);
this.SpriteStr(PN_mSxIrnTxt + 2, $gameSystem.SexTxt[1], 17, 93, 584 + (32 * 1), 0);
this.SpriteStr(PN_mSxIrnTxt + 3, $gameSystem.SexTxt[2], 17, 93, 584 + (32 * 2), 0);
this.SpriteStr(PN_mSxIrnTxt + 1, $gameSystem.SexTxt[0] || "", 17, 93, 584 + (32 * 0), 0);
this.SpriteStr(PN_mSxIrnTxt + 2, $gameSystem.SexTxt[1] || "", 17, 93, 584 + (32 * 1), 0);
this.SpriteStr(PN_mSxIrnTxt + 3, $gameSystem.SexTxt[2] || "", 17, 93, 584 + (32 * 2), 0);
this.SpriteStr(PN_mSxIrnTxt + 0, $gameSystem.SexTxt[3] || "", 17, 93, 584 + (32 * 3), 0);
let _OCStr = "\\oc[rgba(255,255,255,1)]";
let _KaisuSize = 28;
let _KaisuYZure = -8;