diff --git a/game/04-Variables/variables-versionUpdate.twee b/game/04-Variables/variables-versionUpdate.twee index a9e1f5e458588f59634c280df20f3c4126cfbcb7..ea7f351a17f01b699c3d6409364219a261b716db 100644 --- a/game/04-Variables/variables-versionUpdate.twee +++ b/game/04-Variables/variables-versionUpdate.twee @@ -906,6 +906,26 @@ <<set $brothel_basement_price to 1000>> <</if>> +<<if $brothelshowdata is undefined>> + <<set $brothelshowdata to { counts:{ agreed:0, done:0 }, type:"none", intro:false, done:false, missed:false }>> + <<if $brothelshow isnot undefined>> + <<set $brothelshowdata.type to $brothelshow>> + <<unset $brothelshow>> + <</if>> + <<if $brothelshowintro isnot undefined>> + <<set $brothelshowdata.intro to !!$brothelshowintro>> + <<unset $brothelshowintro>> + <</if>> + <<if $brothelshowdone isnot undefined>> + <<set $brothelshowdata.done to !!$brothelshowdone>> + <<unset $brothelshowdone>> + <</if>> + <<if $brothelshowmissed isnot undefined>> + <<set $brothelshowdata.missed to !!$brothelshowmissed>> + <<unset $brothelshowmissed>> + <</if>> +<</if>> + <<if $money is undefined>> <<set $money to 0>> <</if>> @@ -2162,26 +2182,6 @@ <</for>> <</if>> -<<if $brothelshowdata is undefined>> - <<set $brothelshowdata to { counts:{ agreed:0, done:0 }, type:"none", intro:false, done:false, missed:false }>> - <<if $brothelshow isnot undefined>> - <<set $brothelshowdata.type to $brothelshow>> - <<unset $brothelshow>> - <</if>> - <<if $brothelshowintro isnot undefined>> - <<set $brothelshowdata.intro to !!$brothelshowintro>> - <<unset $brothelshowintro>> - <</if>> - <<if $brothelshowdone isnot undefined>> - <<set $brothelshowdata.done to !!$brothelshowdone>> - <<unset $brothelshowdone>> - <</if>> - <<if $brothelshowmissed isnot undefined>> - <<set $brothelshowdata.missed to !!$brothelshowmissed>> - <<unset $brothelshowmissed>> - <</if>> -<</if>> - <<if $npcdescription isnot undefined>> <<unset $npcdescription>> <</if>>