From 775228ef4bf958720b4d0d3ee23f301f163b3cb0 Mon Sep 17 00:00:00 2001 From: lifeAnime <21907-lifeAnime@users.noreply.gitgud.io> Date: Sun, 6 Feb 2022 18:51:49 +0000 Subject: [PATCH] bug/typo fix --- game/03-JavaScript/bedroomPills.js | 4 +-- .../04-Variables/variables-versionUpdate.twee | 28 +++++++++---------- game/base-system/physicalAdjustments.twee | 8 ++++-- 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/game/03-JavaScript/bedroomPills.js b/game/03-JavaScript/bedroomPills.js index 8bb0a27232..1db8dc69c2 100644 --- a/game/03-JavaScript/bedroomPills.js +++ b/game/03-JavaScript/bedroomPills.js @@ -60,7 +60,7 @@ setup.pills = [ }, { name:'breast reduction', - description: 'Each pill contains 500mg of Praberrhol-NG2, a derived molecule crafted specifically to attach to the triglyceride present in your breast and dissolve them over time.', + description: 'Each pill contains 500mg of Praberrhol (NG2), a derived molecule crafted specifically to attach to the triglyceride present in your breast and dissolve them over time.', onTakeMessage: 'You take the pills intended to reduce your breasts\' size. You hope it will be as effective as advertised.', warning_label: 'Warning: Severe side effects upon exceeding the maximum doses per day. Refer to your doctor if in doubts. Not to be associated with any other hormonal treatment.', autoTake: function(){return V.sexStats.pills["pills"][this.name].autoTake}, @@ -77,7 +77,7 @@ setup.pills = [ }, { name:'breast growth', - description: 'An estrogen therapy-pill containing 1mg of estradiol. Aiming at increasing the growth rate of breast', + description: 'An estrogen therapy-pill. The 5mg of Dipardyn present in it will help your body naturally start secreting the hormones in cause of breasts growth.', onTakeMessage: 'You take the pills intended to boost your breasts\' growth. You hope it will be as effective as advertised.', warning_label: 'Warning: Severe side effects upon exceeding the maximum doses per day. Refer to your doctor if in doubts. Not to be associated with any other hormonal treatment.', autoTake: function(){return V.sexStats.pills["pills"][this.name].autoTake}, diff --git a/game/04-Variables/variables-versionUpdate.twee b/game/04-Variables/variables-versionUpdate.twee index 29b2837f6d..509e89b34b 100644 --- a/game/04-Variables/variables-versionUpdate.twee +++ b/game/04-Variables/variables-versionUpdate.twee @@ -2606,14 +2606,6 @@ <</widget>> <<widget "backComp">> - <<if _version lte 30704>> - <<if ndef $pillsTakenOn)>> - <<set $pillsTakenOn to (V.monthday.toString() + V.month + V.year.toString())>> - <</if>> - <</if>> - <<if _version lte 30701>> /* custom contact lenses fix corrupt colours */ - <<run window.patchCorruptLensesColors()>> - <</if>> <<if _version lte 30408>>/* DO NOT INCREMENT */ /* 0.3.4.8 is the last version that should need the old vvu */ /* for versions <= 0.3.4.8, run old version handler */ @@ -2652,7 +2644,7 @@ <<set $nectar_addiction to 0>> <<set $nectar_timer to 0>> <</if>> - + <<if $hypnotised is undefined>> <<set $hypnotised to 0>> <<set $famemodel to 0>> @@ -2995,10 +2987,18 @@ <<set $npcVirginityChance to 50>> <<set $npcVirginityChanceAdult to 10>> <</if>> - - <!-- v0.3.7.4 Robindaily update --> - <<if $robinDaily is undefined>> - <<set $robinDaily to {}>> + <<if _version lte 30701>> <!-- for v0.3.7.1 and earlier versions --> + <<run window.patchCorruptLensesColors()>> /* custom contact lenses fix corrupt colours */ + <</if>> + <<if _version lte 30704>> <!-- for v0.3.7.4 and earlier versions --> + <<if ndef $pillsTakenOn>> + <<set $pillsTakenOn to (V.monthday.toString() + V.month + V.year.toString())>> + <</if>> + <<if ndef $famemodel>> + <<set $famemodel to 0>> + <</if>> + <<if $robinDaily is undefined>> <!-- v0.3.7.4 Robindaily update --> + <<set $robinDaily to {}>> + <</if>> <</if>> - <</widget>> diff --git a/game/base-system/physicalAdjustments.twee b/game/base-system/physicalAdjustments.twee index 76575e1950..7881b51c0f 100644 --- a/game/base-system/physicalAdjustments.twee +++ b/game/base-system/physicalAdjustments.twee @@ -455,15 +455,19 @@ <<set $sexStats.breasts.playedWith to 0>> <<set $workouts to 0>> +/* pills related */ + <<autoTakePillCheck>> +<<run window.resetAllDoseTaken()>> + +/************************************/ <</widget>> <<widget "autoTakePillCheck">> -<<if $pillsTakenOn != (V.monthday.toString() + V.month + V.year.toString())>> +<<if $sexStats && $sexStats.pills && $pillsTakenOn != (V.monthday.toString() + V.month + V.year.toString())>> <<set _pills to $sexStats.pills>> - <<run window.resetAllDoseTaken()>> <<if $location is "home" or $location is "alex_cottage" or $location is "cabin">> <<set _keys to Object.keys(_pills.lastTaken)>> /* "lastTaken" will induce you in error here, it's only to retrieve the pills type list*/ <<for _i, _key range _keys>> -- GitLab