|
@@ -201,59 +201,84 @@ if $ARGS[0] = 'start':
|
|
|
|
|
|
if katjob > 0:act 'Visit the chief doctor': gt 'city_clinic', 'glavdoc'
|
|
|
|
|
|
- if pcs_teeth > -1:
|
|
|
+ if (pcs_teeth > -1 and dentistday + 90 < daystart) or (pcs_missing_teeth > 0 and pcs_brace = 0):
|
|
|
act 'Go to the dentist':
|
|
|
*clr & cla
|
|
|
menu_off = 1
|
|
|
- zubpay = pcs_teeth * 30000
|
|
|
+ minut += 15
|
|
|
gs 'stat'
|
|
|
- if pcs_teeth = 0:
|
|
|
- zubpay = 30000
|
|
|
- 'The dentist examines you and says, it will cost you <<zubpay>> <b>₽</b> to straighten and polish your teeth.'
|
|
|
- elseif pcs_teeth = 1:
|
|
|
- 'The dentist examines you and says, it will cost you <<zubpay>> <b>₽</b> to replace your tooth'
|
|
|
+
|
|
|
+ if pcs_brace = 1:
|
|
|
+ pcs_brace = 0
|
|
|
+ pcs_teeth -= 1
|
|
|
+ dentistday = daystart
|
|
|
+ 'The dentist spends 15 minutes to take of you brace and clean up. You look at the mirror afterward and you teeth are '+iif(pcs_teeth = 0, 'now straight', 'straighter, but can still use some more work.')
|
|
|
+ gs 'AppearanceSystem', 'UpdateBaseAppearnce'
|
|
|
+ gs 'stat'
|
|
|
else
|
|
|
- 'The dentist examines you and says, it will cost you <<zubpay>> <b>₽</b> to fill the gaps'
|
|
|
- end
|
|
|
+ if pcs_missing_teeth * 30000 = 1:
|
|
|
+ zubpay = = 3000
|
|
|
+ 'The dentist examines you and says, it will cost you <<3000>> <b>₽</b> to replace your tooth'
|
|
|
+ elseif
|
|
|
+ zubpay = pcs_missing_teeth * 30000
|
|
|
+ 'The dentist examines you and says, it will cost you <<pcs_missing_teeth * 30000>> <b>₽</b> to fill the gaps'
|
|
|
+ elseif pcs_teeth = 0:
|
|
|
+ zubpay = = 3000
|
|
|
+ 'The dentist examines you and says, it will cost you <<3000>> <b>₽</b> to brighten and polish your teeth.'
|
|
|
+ elseif pcs_teeth > 0:
|
|
|
+ zubpay = = 45000
|
|
|
+ 'The dentist examinees you and says, it will cost you <<4500>><b>₽</b> to straighten your teeth and you will have to wear a brace for three months and he can''t promise they will be completely straight after one treatment.'
|
|
|
+ end
|
|
|
|
|
|
- if money < zubpay and karta < zubpay:
|
|
|
- *nl
|
|
|
- 'You do not have enough money to fix your teeth.'
|
|
|
- else
|
|
|
- if money >= zubpay:
|
|
|
- act 'Sort out your teeth (cash)':
|
|
|
- *clr & cla
|
|
|
- money -= zubpay
|
|
|
- minut += 60
|
|
|
- gs 'AppearanceSystem', 'UpdateBaseAppearnce'
|
|
|
- gs 'stat'
|
|
|
- if pcs_teeth > 0:
|
|
|
- pcs_teeth = 0
|
|
|
- 'You pay the dentist to fix your teeth, within an hour he has restored your winning smile.'
|
|
|
- else
|
|
|
- pcs_teeth = -1
|
|
|
- 'You pay the dentist to straighten and polish your teeth, an hour later your smile is much brighter and more attractive.'
|
|
|
- end
|
|
|
+ if money < zubpay and karta < zubpay:
|
|
|
+ *nl
|
|
|
+ 'You do not have enough money to fix your teeth.'
|
|
|
+ else
|
|
|
+ if money >= zubpay:
|
|
|
+ act 'Sort out your teeth (cash)':
|
|
|
+ *clr & cla
|
|
|
+ money -= zubpay
|
|
|
+ minut += 60
|
|
|
+ if pcs_missing_teeth > 0:
|
|
|
+ pcs_missing_teeth = 0
|
|
|
+ 'You pay the dentist to fix your teeth, within an hour he has restored your winning smile.'
|
|
|
+ elseif pcs_teeth > 0
|
|
|
+ dentistday = daystart
|
|
|
+ pcs_brace = 1
|
|
|
+ 'You pay the dentist to straighten your teeth. After and hour of work he have attached a brace to teeth and tells you to comeback it three months to have it taken of.'
|
|
|
+ else
|
|
|
+ dentistday = daystart
|
|
|
+ pcs_teeth = -1
|
|
|
+ 'You pay the dentist to brighten and polish your teeth, an hour later your smile is much brighter and more attractive.'
|
|
|
+ end
|
|
|
+ gs 'AppearanceSystem', 'UpdateBaseAppearnce'
|
|
|
+ gs 'stat'
|
|
|
|
|
|
- act 'Leave the clinic': minut += 5 & gt 'city_residential'
|
|
|
- end
|
|
|
- end
|
|
|
- if karta >= zubpay:
|
|
|
- act 'Sort out your teeth (card)':
|
|
|
- *clr & cla
|
|
|
- karta -= zubpay
|
|
|
- minut += 60
|
|
|
- gs 'AppearanceSystem', 'UpdateBaseAppearnce'
|
|
|
- gs 'stat'
|
|
|
- if pcs_teeth > 0:
|
|
|
- pcs_teeth = 0
|
|
|
- 'You pay the dentist to fix your teeth, within an hour he has restored your winning smile.'
|
|
|
- else
|
|
|
- pcs_teeth = -1
|
|
|
- 'You pay the dentist to straighten and polish your teeth, an hour later your smile is much brighter and more attractive.'
|
|
|
+ act 'Leave the clinic': minut += 5 & gt 'city_residential'
|
|
|
end
|
|
|
+ end
|
|
|
+ if karta >= zubpay:
|
|
|
+ act 'Sort out your teeth (card)':
|
|
|
+ *clr & cla
|
|
|
+ money -= zubpay
|
|
|
+ minut += 60
|
|
|
+ if pcs_missing_teeth > 0:
|
|
|
+ pcs_missing_teeth = 0
|
|
|
+ 'You pay the dentist to fix your teeth, within an hour he has restored your winning smile.'
|
|
|
+ elseif pcs_teeth > 0
|
|
|
+ dentistday = daystart
|
|
|
+ pcs_brace = 1
|
|
|
+ 'You pay the dentist to straighten your teeth. After and hour of work he have attached a brace to teeth and tells you to comeback it three months to have it taken of.'
|
|
|
+ else
|
|
|
+ pcs_teeth = -1
|
|
|
+ dentistday = daystart
|
|
|
+ 'You pay the dentist to brighten and polish your teeth, an hour later your smile is much brighter and more attractive.'
|
|
|
+ end
|
|
|
+ gs 'AppearanceSystem', 'UpdateBaseAppearnce'
|
|
|
+ gs 'stat'
|
|
|
|
|
|
- act 'Leave the clinic': minut += 5 & gt 'city_residential'
|
|
|
+ act 'Leave the clinic': minut += 5 & gt 'city_residential'
|
|
|
+ end
|
|
|
end
|
|
|
end
|
|
|
end
|