If NaN ever happens reset variables

This commit is contained in:
DazedAnon 2024-08-01 10:32:55 -05:00
parent d2928ae828
commit c02c8c3fb5
2 changed files with 248 additions and 243 deletions

View file

@ -1445,183 +1445,183 @@
"Academic Ability",
"Debt",
"Invasion Level",
"Repayment Deadline (Remaining Days)",
"Time Zone Variable [0 Noon: 1 After School: 2 Night]",
"Day Variable [0=Monday]",
"Standing Picture x Coordinate (During Fade)",
"Standing Picture x Coordinate",
"Standing Picture Y Coordinate",
"Standing Picture Hairstyle ID",
"Standing Portrait Upper Body ID",
"Standing Pose Lower Body ID",
"Standing Picture Accessories ID",
"Standing Pose ID",
"Face Color ID",
"Expression ID",
"Standing Picture Option ID",
"Standing Picture Base Variable",
"Exposed Boobs",
"Exposed Pussy",
"Stripped in Front of Others",
"Used as Fap Material by Peers",
"Boobs Fondled",
"Pussy Played With",
"Made to Cum by Others",
"Made Out with People",
"Sucked Dick",
"Ate Dudes Out",
"Had Sex",
"Got Creampied",
"Stayed Over At Guys' Places",
"Had Anal Sex",
"Partners",
"Number of Children",
"Random Variable",
"This Time's Debt Amount",
"*Erotic Function Variable Reservation Area",
"##H Event Stage",
"#### Parameter Related",
"Academic Decline Value",
"Invasion Amplification Value",
"Alert Threshold: Morality",
"Alert Threshold: Academic Ability",
"Alert Threshold: Invasion Level",
"Alert Threshold: Repayment Due Date",
"Number of Suppression Attempts",
"##Invasion Suppression Magic Power Limit",
"## Suppression Consumption Magic Power",
"##Recommended Morals",
"##Acquired Magic Power Standard Value",
"## Corrected Magic Power Acquisition",
"## Increase in Debt Amount",
"### Invasion Phase",
"Academic Improvement Value",
"Specify Generation Rarity",
"Generate Enchant ID",
"Subtitle (When Saving)",
"Elapsed Days",
"Res Count: Archive",
"Res Count: Eroste",
"Res Count: Ayase-san Erotic",
"Res Count: Breasty",
"Res Count: Masturbation Material",
"Res Count: Chat",
"Res Count: Career Counseling",
"Number of Responses: Question",
"Number of Responses: Past Questions",
"Number of Responses: Club Activities",
"◆Breasty Slave ID",
"◆Masturbation Material Slave ID",
"◆Ayase-san Exclusive Event ID",
"X Coordinate upon Recollection Return",
"Y Coordinate Upon Recollection Return",
"Map ID upon Recollection Return",
"Direction upon Recollection Return",
"## Recommended Ero Stage",
"Specify X Coordinate for Warp",
"Specify Y Coordinate for Warp",
"Common Reward Rate",
"Uncommon Reward Rate",
"Rare Reward Probability",
"Epic Reward Probability (Unused)",
"Reward Reroll Cost",
"Generate Enchant ID",
"◆Shame Level During Battle",
"◆Game Difficulty",
"#First Experience Partner ID",
"#Field Maintenance Variables",
"##General Variables",
"##Event Enemy",
"Substitute Enemy",
"Number of Battle Turns",
"##Battle Map Animation ID",
"##Enemy Event ID",
"##Battle Enemy Event",
"##Enemy During Battle",
"##Skills Applied During Battle",
"Max AP",
"##Generic Loop Variable",
"#Special State Values",
"Class Option 1",
"Class Choices 2",
"Class Choices 3",
"Class 1 ID",
"Class 2 ID",
"Execution Class ID",
"Trembling Coordinates",
"② Days Left for Boob Donation",
"③ Art Club Award Remaining Days",
"Repayment Option 1",
"Repayment Option 2",
"Repayment Options 3",
"Repayment 1 ID",
"Repayment 2 ID",
"Repayment 3ID",
"#Event Phase",
"③ Mixed Bathing Fundraising Remaining Days",
"④ Days Left at the Cat Cafe",
"##Acquired Academic Ability",
"## Amount Earned",
"##Elapsed Time",
"Recommended Level",
"Number of Reward Jewels",
"Number of Rare Jewels Acquired",
"##For Magic Preservation [Before Boss Battle]",
"##For Magic Preservation [During Deployment]",
"##Skill Tree Save",
"##Owned Items",
"##Weapon Element",
"Costume Element",
"##Accessory Element",
"Loop Variable",
"Temporary Save of Debt Amount",
"Boss Count Record",
"Movement Distance Limit",
"Summon Enemy ID",
"Identity Exposure Range",
"##Friendly Fire Attack Focus",
"1 Attack Debt Accumulation",
"Skill Use Target Coordinates [x,y]",
"##Obstacle ID",
"##Explosion Effect ID",
"##Gluttony Revival Counter",
"##Enemy Generation Counter",
"## Enchant Generation Count",
"□Strip Points",
"Save Costume State: Top",
"Save Outfit State: Bottoms",
"Save Costume State: Decoration",
"Total Accumulated Debt",
"◆T-shirt Pattern Identifier",
"Temporary Debt Storage",
"Temporary HP Save",
"#X during overall map movement",
"#Y during overall map movement",
"Arousal Level",
"Difficulty Save Variable",
"★Reaction When Undressing",
"Save Debt Amount Before Battle",
"Five-Stage Defeat Return Point",
"☆Explosive Enemy Information",
"★Recommended Combat Strength for Boss Battle",
"Generic Variable 2",
"Concealment Magic Level",
"Number of Pots Broken",
"Knockback Distance",
"★Healing Magic Power",
"Choice 1",
"Choice 2",
"Choice 3",
"Choice 4",
"Choice 5",
"Choice 6",
"Summon Limit",
"Maximum Weapon Tree Acquisition",
"Maximum Costume Tree Acquisition",
"Maximum Ornament Tree Acquisition",
"★Moaning Volume Adjustment",
"Moaning Voice Determination Variable",
"Temporary Save Variable",
"返済期限(残日数)",
"時間帯変数[0昼:1放課後:2夜]",
"曜日変数[0=月]",
"立絵x座標(フェード時)",
"立絵x座標",
"立絵y座標",
"立絵髪型ID",
"立絵上半身ID",
"立絵下半身ID",
"立絵装飾品ID",
"立絵ポーズID",
"顔色ID",
"表情ID",
"立絵オプションID",
"立絵ベース変数",
" Exposed Boobs ",
" Exposed Pussy ",
" Stripped in Front of Others ",
" Used as Fap Material by Peers ",
" Boobs Fondled ",
" Pussy Played With ",
" Made to Cum by Others ",
" Made Out with People ",
" Sucked Dick ",
" Ate Dudes Out ",
" Had Sex ",
" Got Creampied ",
" Stayed Over At Guys' Places ",
" Had Anal Sex ",
" Partners ",
" Number of Children ",
"ランダム変数",
"今回負債額",
"※エロ関数変数予約領域",
"##Hイベント段階",
"####パラメータ関連",
"学力減少値",
"侵攻度増幅値",
"アラート閾値:モラル",
"アラート閾値:学力",
"アラート閾値:侵攻度",
"アラート閾値:返済期日",
"##侵攻度抑圧回数",
"##侵攻度抑圧魔力上限",
"##侵攻度抑圧消費魔力",
"##推奨モラル",
"##入手魔力基準値",
"##補正後入手魔力量",
"##負債増加額",
"###侵攻段階",
"##学力上昇値",
"生成レアリティ指定",
"生成エンチャントID",
"サブタイトル(セーブ時)",
"経過日数",
"レス数:アーカイブ",
"レス数:エロステ",
"レス数:綾瀬さんエロ",
"レス数:ブレスティ",
"レス数:オナネタ",
"レス数:雑談",
"レス数:進路相談",
"レス数:質問",
"レス数:過去問",
"レス数:部活関連",
"◆ブレスティスレイベID",
"◆オナネタスレイベID",
"◆綾瀬さん専スレイベID",
"回想帰還時x座標",
"回想帰還時y座標",
"回想帰還時マップID",
"回想帰還時向き",
"##推奨エロ段階",
"ワープ用X座標指定",
"ワープ用Y座標指定",
"報酬コモン確率",
"報酬アンコモン確率",
"報酬レア確率",
"報酬エピック確率(未使用)",
"報酬リロールコスト",
"生成エンチャントID",
"◆戦闘中羞恥レベル",
"◆ゲーム難易度",
"#初体験相手ID",
"#フィールド維持変数",
"##汎用変数",
"##イベントエネミー",
"##身代わりエネミー",
"##戦闘ターン数",
"##戦闘マップアニメID",
"##エネミーイベントID",
"##戦闘エネミーイベント",
"##戦闘時エネミー",
"##戦闘時適用スキル",
"##最大AP",
"##汎用ループ変数",
"#特殊ステート数値",
"授業選択肢1",
"授業選択肢2",
"授業選択肢3",
"授業1ID",
"授業2ID",
"実行授業ID",
"震え座標",
"②おっぱい募金残日数",
"③美術部表彰残日数",
"返済選択肢1",
"返済選択肢2",
"返済選択肢3",
"返済1ID",
"返済2ID",
"返済3ID",
"#イベントフェーズ",
"③混浴募金残日数",
"④猫カフェ残日数",
"##獲得学力",
"##獲得金額",
"##経過時間",
"推奨レベル",
"報酬ジュエル数",
"レアジュエル獲得数",
"##魔力保存用[ボス戦前]",
"##魔力保存用[出陣時]",
"##スキルツリー保存用",
"##保持アイテム",
"##武器エレメント",
"##衣装エレメント",
"##装飾品エレメント",
"ループ変数",
"負債額一時保存",
"ボス数記録用",
"移動距離上限",
"召喚エネミーID",
"正体暴露レンジ",
"##同士討ち攻撃主体",
"1攻撃負債累計",
"スキル使用対象座標[x,y]",
"##障害物ID",
"##爆破エフェクトID",
"##グラトニー復活カウンタ",
"##エネミー生成カウンタ",
"##エンチャント生成数",
"□脱衣ポイント",
"衣装状態保存:トップ",
"衣装状態保存:ボトム",
"衣装状態保存:装飾",
"#発生負債累計",
"◆Tシャツ柄識別子",
"負債一時保存用",
"HP一時保存",
"#全体マップ移動時X",
"#全体マップ移動時Y",
"発情レベル",
"難易度保存用変数",
"★脱衣時リアクション",
"戦闘前負債額保存",
"5段階敗北帰還先",
"☆爆発エネミー情報",
"★ボス戦闘推奨戦力",
"汎用変数2",
"隠蔽魔法レベル",
"壺破壊回数",
"吹き飛ばし距離",
"★回復魔力量",
"選択肢1",
"選択肢2",
"選択肢3",
"選択肢4",
"選択肢5",
"選択肢6",
"召喚数上限",
"武器ツリー最大修得",
"衣装ツリー最大修得",
"装飾ツリー最大修得",
"★喘ぎ声音量補正",
"喘ぎ声決定変数",
"一時保存変数",
"",
"",
"",
@ -1637,69 +1637,69 @@
"",
"",
"",
"For Magic Preservation [Upon Waking]",
"Multiple Pregnancies",
"Home Destruction Variable",
"Age: Introduction Child 1",
"Age: Introduction Child 2",
"Age: Introduction Child 3",
"Age: Introduction Child 4",
"Age: Art Club 1",
"Age: Art Club 2",
"Age: Photography Club 1",
"Age: Photography Club 2",
"Age: Photography Club 3",
"Age: Photography Club 4",
"Age: Swim Club 1",
"Age: Swim Club 2",
"Age: Swim Club 3",
"Age: Swim Club 4",
"Age: Soccer Club 1st Year",
"Age: Soccer Club 2s",
"Age: Mahjong Match 1",
"Age: Mahjong Battle 2",
"Age: Mahjong Battle 3",
"Age: Hot Springs Club 1",
"Age: Hot Springs Club 2",
"Age: Hot Springs Club 3",
"Age: Beach",
"Age: Evening Shower Sex Friend 1",
"Age: Evening Shower FWB 2",
"Age: Evening Shower Sex Friend 3",
"Age: Evening Shower FWB 4",
"Age: Evening Shower Sex Friend 5",
"Age: Shoplifting 1",
"Age: Shoplifting 2",
"Age: PE Teacher 1",
"Age: School Junior",
"Age: Newborn Child",
"Age: Master Child 1",
"Age: Master Child 2",
"Age: Master Child 3",
"Age: Mixed Bathing Hot Spring 1",
"Age: Mixed Bathing Hot Springs 2",
"Age: Neighbor",
"Age: Homeless 1",
"Age: Homeless 2",
"Age: Three Shota",
"Age: Cosplay Event 1",
"Age: Cosplay Event 2",
"Age: Cosplay Event 3",
"Age: Live Broadcast 1",
"Age: Live Broadcast 2-4",
"Age: Police 1",
"Age: Police 2",
"Age: Kyuhara-sensei",
"Age: General Bookstore Customer",
"Age: First Neighbor",
"Age: Second Neighbor",
"Child Age Reservation",
"Child Age Reservation",
"Child Age Reservation",
"Child Age Reservation",
"Child Age Reservation",
"Child Age Reservation",
"Child Age Reservation"
"魔力保存用[起床時]",
"多胎妊娠数",
"自宅焼失変数",
"年齢:導入子供1",
"年齢:導入子供2",
"年齢:導入子供3",
"年齢:導入子供4",
"年齢:美術部1",
"年齢:美術部2",
"年齢:写真部1",
"年齢:写真部2",
"年齢:写真部3",
"年齢:写真部4",
"年齢:水泳部1",
"年齢:水泳部2",
"年齢:水泳部3",
"年齢:水泳部4",
"年齢:サッカー部1s",
"年齢:サッカー部2s",
"年齢:麻雀勝負1",
"年齢:麻雀勝負2",
"年齢:麻雀勝負3",
"年齢:温泉部1",
"年齢:温泉部2",
"年齢:温泉部3",
"年齢:ビーチ",
"年齢:夕立セフレ1",
"年齢:夕立セフレ2",
"年齢:夕立セフレ3",
"年齢:夕立セフレ4",
"年齢:夕立セフレ5",
"年齢:万引き1",
"年齢:万引き2",
"年齢:体育教師1",
"年齢:学校後輩",
"年齢:ニュウル子供",
"年齢:ご主人様子供1",
"年齢:ご主人様子供2",
"年齢:ご主人様子供3",
"年齢:混浴温泉1",
"年齢:混浴温泉2",
"年齢:ご近所さん",
"年齢:ホームレス1",
"年齢:ホームレス2",
"年齢:ショタ3人",
"年齢:コスイベ1",
"年齢:コスイベ2",
"年齢:コスイベ3",
"年齢:生配信1",
"年齢:生配信2-4",
"年齢:警察1",
"年齢:警察2",
"年齢:急原先生",
"年齢:書店一般客",
"年齢:隣人1人目",
"年齢:隣人2人目",
"子供年齢予約",
"子供年齢予約",
"子供年齢予約",
"子供年齢予約",
"子供年齢予約",
"子供年齢予約",
"子供年齢予約"
],
"versionId": 28324783,
"victoryMe": {

View file

@ -1652,7 +1652,12 @@ Scene_Map.prototype.drawFrameDigits = function () {
//侵攻度値を変数セット
x = startX - 2;
y += 136;
param = Math.ceil(parseFloat($gameVariables.value(5)));
param = Math.floor($gameVariables.value(5));
if(param.toString() == 'NaN') {
$gameVariables.setValue(5, 0);
$gameVariables.setValue(43, 10);
param = 0;
}
if (this._lastAttack == param) {
//値に変更がない場合は処理なし
} else {
@ -10084,7 +10089,7 @@ Scene_Suppress.prototype.drawMana = function () {
this._valueSprite.visible = true;
//侵攻度表示
this._valueBitmap.drawText(
Math.ceil(parseFloat($gameVariables.value(5))),
Math.floor($gameVariables.value(5)),
960 - 180,
561,
140,
@ -10179,7 +10184,7 @@ Scene_Suppress.prototype.decideOk = function () {
this._inputNumberWindow._number * $gameVariables.value(50);
$gameVariables.setValue(2, nextValue);
nextValue =
Math.ceil(parseFloat($gameVariables.value(5))) - this._inputNumberWindow._number;
Math.floor($gameVariables.value(5)) - this._inputNumberWindow._number;
$gameVariables.setValue(5, nextValue);
//抑圧進行度を保存しておく
$gameVariables.setValue(