From cfd842010bcba910cf773ae438a24c6303f22f48 Mon Sep 17 00:00:00 2001 From: Sinflower Date: Sat, 8 Nov 2025 15:15:17 +0100 Subject: [PATCH] Fixed pregnancy display in the menu - Added intermediate "Early Stage" - Added missing sources - Translated pregnancy status message (slightly modified to fit the available space) - Fixed wrong variable used by the developer --- js/plugins/CBR_menu.js | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/js/plugins/CBR_menu.js b/js/plugins/CBR_menu.js index 78d75df..e4e85d6 100644 --- a/js/plugins/CBR_menu.js +++ b/js/plugins/CBR_menu.js @@ -1251,24 +1251,31 @@ this.placeGauge(ac, "mp", x, y + 100); this.placeGauge(ac, "exp", x, y + 150); + // "人間", "魔物", etc., are set in common events with a 122 for variable 71 so these would also have to be translated, therefore, leave them as is var temp = [ - ["人間", "人の子を妊娠中"], - ["魔物", "魔物の子を妊娠中"], - ["ゴブリン", "ゴブリンの子を妊娠中"], - ["魔犬", "魔犬の子を妊娠中"], - ["魔豚", "魔豚の子を妊娠中"], - ["妖馬", "妖馬の子を妊娠中"], - ["卵", "胎内に卵がある"], - ["触手", "触手の子を妊娠中"] + ["人間", "Pregnant: Human"], + ["魔物", "Pregnant: Monster"], + ["ゴブリン", "Pregnant: Goblin"], + ["魔犬", "Pregnant: Demon Dog"], + ["魔豚", "Pregnant: Demon Pig"], + ["妖馬", "Pregnant: Demon Horse"], + ["卵", "Pregnant: Egg"], + ["触手", "Pregnant: Tentacle"], + ["犬", "Pregnant: Dog"], + ["豚", "Pregnant: Pig"], + ["馬", "Pregnant: Horse"], + ["オーク", "Pregnant: Orc"], ]; var st_text = ""; var ac_var = [ - [102, 65, 184], - [103, 66, 185] + [182, 65, 184], + [183, 66, 185] ]; var a = ac.name() == "Shirayuki" ? 0 : 1; - if ($gameVariables.value(ac_var[a][0]) < 3) { + var preg_state = $gameVariables.value(ac_var[a][0]); + + if (preg_state < 2) { if (ac.isStateAffected(4)) { st_text += "On the pill"; } else if ($gameVariables.value(ac_var[a][1]) == 0) { @@ -1278,6 +1285,8 @@ } else { st_text += "Cycle: Risky day"; } + } else if (preg_state == 2) { + st_text += "Pregnant: Early stage"; } else { var idx = temp.findIndex((e) => e[0] == $gameVariables.value(ac_var[a][2])); if (idx !== -1) {