cikl.qsrc 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556
  1. # cikl
  2. !!------------------------------------------------------------------------------------------------------------
  3. !! Masseuse Job (MUST COME BEFORE DAY CHANGES)
  4. !!------------------------------------------------------------------------------------------------------------
  5. if masseuse['jobtype'] < 1:
  6. masseuse['<<week>>_shift_1'] = 0
  7. masseuse['<<week>>_shift_2'] = 0
  8. masseuse['<<week>>_shift_3'] = 0
  9. end
  10. if (masseuse['<<week>>_shift_1'] ! 0 or masseuse['<<week>>_shift_2'] ! 0 or masseuse['<<week>>_shift_3'] ! 0) and masseuse['last_worked_day'] ! daystart:
  11. masseuse['missed_shift2'] = 1
  12. end
  13. !!----------------------------------------------------------------------------
  14. !! Time calculations
  15. day += 1
  16. week += 1
  17. hour -= 24
  18. if day > monthsEnd[month]:
  19. day -= monthsEnd[month]
  20. month += 1
  21. !! Changing the year at new year and making sure February have the correct number of days.
  22. if month > 12:
  23. month = 1
  24. year += 1
  25. if ((year mod 4 = 0) and (year mod 100 ! 0)) or (year mod 400 = 0):
  26. monthsend[2] = 29
  27. else
  28. monthsend[2] = 28
  29. end
  30. end
  31. !!MJ: Dont think that one is needed. But it was in the original loop.
  32. if month < 1: month = 1
  33. $month = $monthName[month]
  34. !! new years party calculation
  35. temp = func('shortgs','dow',year,12,31)
  36. if temp < 6:
  37. nyp_day = 31
  38. elseif temp = 6:
  39. nyp_day = 30
  40. else
  41. nyp_day = 29
  42. end
  43. end
  44. !!MJ: Dont think that one is needed. But it was here already.
  45. if day <= 0:day = 1
  46. ciklNewWeek = 0
  47. if week > 7:
  48. odd_week = iif(odd_week,0,1)
  49. ciklNewWeek = 1
  50. :loopweek
  51. week -= 7
  52. husbandrink = 0
  53. if military = 1:military = 0
  54. if week > 7:jump 'loopweek'
  55. end
  56. gs 'daystart'
  57. gs 'yearstart'
  58. !!----------------------------------------------------------------------------
  59. !!Fame call to update all the fame variables
  60. gs 'fame'
  61. !!Cycle stats for Contacts
  62. gs 'telefon', 'DailyStatRefresh', ciklNewWeek
  63. !!moving the porn schedule ahead a day, flaffing for missed shootings, if it even matters
  64. if (film > 0 or pornstack = 1) and pfilmNO = 0 and pfilmSTOP = 0:
  65. if pfilmday[0] > 0: gs 'pornschedule', 'pornmiss'
  66. gs 'pornschedule', 'schedule'
  67. end
  68. !!------------------------------------------------------------------------------------------------------------
  69. !! Job Stuff
  70. !!------------------------------------------------------------------------------------------------------------
  71. !! masseuse paycheck
  72. if masseuse['weeks_pay'] > 0 and week = 5:masseuse['paycheck'] = 1
  73. if masseuse['jobtype'] > 0 and week = 5 and masseuse['weeks_pay'] > 0:
  74. masseuse['payday'] = 1
  75. end
  76. if week = 7 and masseuse['schedule_update'] ! daystart: gs 'masseuse_schedule','schedule_reset'
  77. !!modelling check
  78. if model_week ! (daystart - week) / 7:model_job_week = 0
  79. !!acting strings to set available jobs
  80. if casting = 1:
  81. acting_string1 = rand(10000000,199999999)
  82. acting_string2 = rand(10000000,199999999)
  83. end
  84. dynamic $hypnoDaychange
  85. !!phone reset for bf
  86. ringA = 0
  87. ringB = 0
  88. ringC = 0
  89. !!Appearance Age
  90. vidageday -= 1
  91. if vidageday <= 0:
  92. vidageday = 360
  93. vidage += 1
  94. end
  95. !!Birthday
  96. age = year - ((pcs_dob - (pcs_dob mod 10000)) / 10000)
  97. if ((month * 100) + day) <= pcs_dob mod 10000: age -= 1
  98. if birthday = day and birthmonth = month and model['age'] > 0:model['age'] += 1
  99. if workDolgDay > 0: workDolgDay -= 1
  100. if QWdogreiqTimer > 0: QWdogreiqTimer -= 1
  101. if husband > 0: husbanday += 1
  102. if husband > 10 and husbanday > 0: husband -= 15
  103. if fingal > 0: fingal -= 1
  104. if husbandMark = 1 and husband <= 10:
  105. husbizvradd = 0
  106. husbharmin = 0
  107. husbandMark = 0
  108. husband = 0
  109. divorced += 1
  110. if KFOnLineReaga > 0:KFOnLineReaga -= 1
  111. '<b><font color="red">Your husband has filed for a divorce.</font></b>'
  112. end
  113. !! after having surgery you will be in recuperation for a few days
  114. if surgeryday ! '':
  115. if daystart - 7 <= surgeryday:
  116. dailyhealthimprov = (daystart - surgeryday) * 50
  117. pcs_health = dailyhealthimprov
  118. recuperation = 1
  119. else
  120. killvar 'recuperation'
  121. killvar 'dailyhealthimprov'
  122. end
  123. end
  124. !!Street events daily reset
  125. streetevent_hour = -2
  126. !!Clothing stock and price randomizers
  127. Clothingstock = rand (0,23)
  128. i = 1
  129. :loopprice
  130. Clothingstock[i] = rand (0,500)
  131. i += 1
  132. if i <= 147:jump 'loopprice'
  133. if dyneval ('RESULT = <<$coatworntype>>_coats_h[<<coatwornnumber>>]') <= 0: $coatworntype = 'none'
  134. !! Abortion and pregnancy recovery resets if finished
  135. if abortionbirthdate ! 0 and daystart - abortionbirthdate > 24: abortionbirthdate = 0
  136. if pregbirthdate ! 0 and daystart - pregbirthdate > 73: pregbirthdate = 0
  137. !!------------------------------------------------------------------------------------------------------------
  138. !! Nympho
  139. !!------------------------------------------------------------------------------------------------------------
  140. !! Reserved for nympho trait
  141. if nymphosex_flag = 1:
  142. end
  143. nymphosex_flag = 0
  144. !!------------------------------------------------------------------------------------------------------------
  145. !! Bimbo
  146. !!------------------------------------------------------------------------------------------------------------
  147. !!bimbo flag set in stat_display if bimbo clothing, shoes and makeup are worn at same time
  148. if succubusflag = 0 or CheatBimbo2 = 1:
  149. if cheatBimbo = 0 and bimbo_flag = 1:
  150. bimbo += 1
  151. end
  152. end
  153. !!Once bimbolevel is set to 1, must use the withdrawal in stat to return to 0
  154. if bimbo > 0 or bimbolevel > 0:
  155. if bimbo < 10:
  156. if bimbo_flag = 0:
  157. bimbo -= 2
  158. end
  159. elseif bimbo < 20:
  160. bimbolevel = 1
  161. elseif bimbo < 30:
  162. bimbolevel = 2
  163. else
  164. bimbolevel = 3
  165. end
  166. end
  167. if bimbo >= 40: bimbo = 40
  168. !!Bimbo levels. They use custom variables so they won''t permanently change character stats
  169. if bimbolevel = 0: supnatvnesh = 0 & bimbostupidity = 0
  170. if CheatBimbo2 = 0:
  171. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 6)
  172. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 4)
  173. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = (pcs_intel / 3)
  174. elseif CheatBimbo2 = 1:
  175. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = 0
  176. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = 0
  177. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = 0
  178. end
  179. !!A Succubus cannot be a Bimbo
  180. if succubusflag = 1 and CheatBimbo3 = 0:
  181. if bimbolevel > 0 and bimbo > 0: bimbowithdrawal = 40
  182. elseif bimbolevel >= 1:
  183. !!Checks flag and adds withdrawal if 0
  184. if bimbo_flag = 0:
  185. bimbowithdrawal += 1
  186. else
  187. bimbowithdrawal = 0
  188. end
  189. end
  190. if bimbo < 0: bimbo = 0
  191. !! flag reset
  192. bimbo_flag = 0
  193. !!------------------------------------------------------------------------------------------------------------
  194. !! Butt slut
  195. !!------------------------------------------------------------------------------------------------------------
  196. if orgasm_anal > orgasm_anal[1]:
  197. if traits['buttslut_lvl'] > 0: traits['buttslut_exp'] += orgasm_anal - orgasm_anal[1]
  198. else
  199. if traits['buttslut_exp'] > 1: traits['buttslut_exp'] -= 1
  200. end
  201. orgasm_anal[1] = orgasm_anal
  202. if orgasm_anal > 10 and traits['buttslut_lvl'] = 0: traits['buttslut_lvl'] = 1
  203. if traits['buttslut_exp'] >= 15 and traits['buttslut_lvl'] = 1: traits['buttslut_lvl'] = 2 & traits['buttslut_exp'] = 0
  204. if traits['buttslut_exp'] >= 50 and traits['buttslut_lvl'] = 2: traits['buttslut_lvl'] = 3
  205. if traits['buttslut_exp'] <= 0 and traits['buttslut_lvl'] = 3: traits['buttslut_lvl'] = 2 & traits['buttslut_exp'] = 0
  206. !!------------------------------------------------------------------------------------------------------------
  207. !! Exhibitionism
  208. !!------------------------------------------------------------------------------------------------------------
  209. if pcs_exhib > 0 or exhibitionist_lvl > 0:
  210. if pcs_exhib < 10:
  211. pcs_exhib -= 1
  212. elseif pcs_exhib < 50:
  213. exhibitionist_lvl = 1
  214. elseif pcs_exhib < 100 or exhibitionQW < 3:
  215. exhibitionist_lvl = 2
  216. elseif exhibitionQW > 2:
  217. exhibitionist_lvl = 3
  218. end
  219. end
  220. !!Inhibition increases from wearing revealing clothing
  221. if exhibition_outdoors > 0:
  222. if pcs_inhib > 90:
  223. exhibition_outdoors = exhibition_outdoors * 3
  224. elseif pcs_inhib > 75:
  225. exhibition_outdoors = exhibition_outdoors * 5 / 2
  226. elseif pcs_inhib > 60:
  227. exhibition_outdoors = exhibition_outdoors * 2
  228. elseif pcs_inhib > 30:
  229. exhibition_outdoors = exhibition_outdoors * 3 / 2
  230. end
  231. if exhibition_outdoors <= 5:
  232. inhib_exp += rand(3,6)
  233. elseif exhibition_outdoors <= 10:
  234. inhib_exp += rand(5,9)
  235. elseif exhibition_outdoors <= 15:
  236. inhib_exp += rand(7,12)
  237. elseif exhibition_outdoors <= 20:
  238. inhib_exp += rand(9,15)
  239. elseif exhibition_outdoors <= 25:
  240. inhib_exp += rand(12,20)
  241. elseif exhibition_outdoors <= 30:
  242. inhib_exp += rand(16,25)
  243. elseif exhibition_outdoors <= 35:
  244. inhib_exp += rand(20,30)
  245. elseif exhibition_outdoors <= 40:
  246. inhib_exp += rand(25,40)
  247. elseif exhibition_outdoors <= 50:
  248. inhib_exp += rand(35,50)
  249. elseif exhibition_outdoors <= 65:
  250. inhib_exp += rand(50,75)
  251. else
  252. inhib_exp += rand(70,100)
  253. end
  254. end
  255. exhibition_outdoors = 0
  256. !!------------------------------------------------------------------------------------------------------------
  257. !! Succubus Level & hunger calcs
  258. !!------------------------------------------------------------------------------------------------------------
  259. if succubusflag = 1: gs 'succubus','cikl'
  260. !!------------------------------------------------------------------------------------------------------------
  261. if defcurly = 0 and curly > 0:curly -= 1
  262. if defcurly = 1:
  263. if straight > 0: straight -= 1
  264. if straight = 0: curly = 2147483647
  265. end
  266. ! WD: Added daily reduction of braids for Maruda Hair Mod
  267. if hbraids > 0: hbraids -= 1
  268. gs 'sweat', 'add', 2
  269. if pcs_tan > 0: pcs_tan -= 1
  270. if prezikmsg = 2: prezikmsg = 3
  271. gs 'fertility', 'birth_control'
  272. !!------------------------------------------------------------------------------------------------------------
  273. if pcs_breath = 1:pcs_breath = 0
  274. if cheatNoEat = 1 and dounspell = 1:fat += 15
  275. !!Trauma decay
  276. if mood_trauma > 0: mood_trauma -= 1
  277. !!STD check
  278. if SifacOnce = 1:Sifilis += 1
  279. if GerpesOnce = 1:Gerpes += 1
  280. if TriperOnce = 1:
  281. if Triper > 0:
  282. Triper += 1
  283. end
  284. if TriperOral > 0:
  285. TriperOral += 1
  286. end
  287. If TriperOral > 14 and TriperNapr = 0:
  288. if rand(TriperOral,100) > 80:
  289. TriperOral = 0
  290. if Triper = 0:TriperOnce = 0
  291. TriperOralSigns = 0
  292. end
  293. end
  294. end
  295. if KandidozOnce = 1:Kandidoz += 1
  296. Venera = 0
  297. if SifacOnce = 1: Venera += 1
  298. if GerpesOnce = 1: Venera += 1
  299. if TriperOnce = 1: Venera += 1
  300. !! Fail safe
  301. if ashrinkdays = 0: ashrinkdays = 6
  302. if vshrinkdays = 0: vshrinkdays = 6
  303. if pcs_ass > 1 and ashrink > 0 and analplugIN = 0:
  304. if daystart mod(ashrinkdays) = 0: pcs_ass -= ashrink
  305. if pcs_ass < 0: pcs_ass = 0
  306. end
  307. if pcs_vag > 10 and vshrink > 0:
  308. if daystart mod(vshrinkdays) = 0: pcs_vag -= vshrink
  309. if pcs_vag < 0: pcs_vag = 0
  310. end
  311. lipkoef -= rand(0,1)
  312. if lipkoef <= 0: lipkoef = 0
  313. if isprok = 1 or isprokp = 1:
  314. isprok_lastday = 1
  315. else
  316. isprok_lastday = 0
  317. end
  318. if Enable_autotampon = 0 and isprok = 1: isprok = 0 & 'You threw away your used tampon.'
  319. if Enable_autotampon = 0 and isprokp = 1:isprokp = 0 & 'You threw away your used sanitary pad.'
  320. if preg = 1:
  321. pregtime = pregchem / 24
  322. if pregtimes = 0:pregtimes = 1
  323. elseif preg = 2 and pregminut < totminut:
  324. if Enable_nogameover = 0 :
  325. cla
  326. *clr
  327. over = 4
  328. MSG '<center><b>A horrible pain shoots through your body.</b></center>'
  329. xgt 'gameover'
  330. exit
  331. else
  332. MSG'<font color=red><B>You should die for giving birth unprepared, but Cheat Mode keeps you Alive.</B></font>'
  333. pregminut = totminut + 1440
  334. end
  335. elseif preg = 0:
  336. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A14'
  337. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A16'
  338. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A23'
  339. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A28'
  340. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A29'
  341. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A33'
  342. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A34'
  343. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A69'
  344. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A131'
  345. !{killvar 'pregTalkFamily' -- Do not kill this (Abortion talk).}
  346. killvar 'pcs_pregtalk'
  347. killvar 'pregTalk'
  348. killvar 'pregtime'
  349. killvar 'knowpreg'
  350. killvar 'denypreg'
  351. killvar '$wombthfath'
  352. end
  353. !!------------------------------------------------------------------------------------------------------------
  354. !! Arousal
  355. !!------------------------------------------------------------------------------------------------------------
  356. if $start_type[1] ! 'nomagic':
  357. if pcs_horny < 100:pcs_horny += pcs_vag
  358. else
  359. if stat['think_virgin'] = 1:
  360. razeba = 0
  361. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 10
  362. if pcs_horny > 50:pcs_horny -= 25
  363. elseif stat['think_virgin'] = 0:
  364. if pregtimes = 0:
  365. if age < 18:
  366. razeba = 1
  367. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 5
  368. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 10
  369. if pcs_horny >= 80:pcs_horny -= 20
  370. elseif age >= 18 and age < 21:
  371. razeba = 2
  372. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 1
  373. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 5
  374. if pcs_horny >= 80:pcs_horny -= 10
  375. elseif age >= 21 and age < 25:
  376. razeba = 3
  377. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 1
  378. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 1
  379. if pcs_horny >= 80:pcs_horny -= 5
  380. elseif age >= 25 and age < 30:
  381. razeba = 4
  382. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 5
  383. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 1
  384. if pcs_horny >= 80:pcs_horny -= 5
  385. elseif age >= 30:
  386. razeba = 5
  387. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  388. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  389. if pcs_horny >= 80:pcs_horny += 1
  390. end
  391. elseif pregtimes > 0:
  392. if preg = 0:
  393. razeba = 5
  394. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  395. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  396. if pcs_horny >= 80:pcs_horny += 1
  397. elseif preg > 0:
  398. razeba = 6
  399. if pcs_horny < 100:pcs_horny += pregchem / 240
  400. end
  401. end
  402. end
  403. end
  404. if pcs_horny < 0:pcs_horny = 0
  405. !!------------------------------------------------------------------------------------------------------------
  406. !reset Natasha Belova''s clothes
  407. if NatbelQW['seethroughwearing'] = 1: NatbelQW['seethroughwearing'] = 0
  408. !!------------------------------------------------------------------------------------------------------------
  409. !counter for Dimka avoidance
  410. if dimaFilm = 1 and dimaRudeBlock = 0:
  411. nodimkaK += 1
  412. DimkaWarnedToday = 0
  413. end
  414. !!------------------------------------------------------------------------------------------------------------
  415. !!Fame degradation
  416. gs 'fame', 'deg'
  417. !!Traits
  418. gs 'traits', 'overnight'
  419. !!------------------------------------------------------------------------------------------------------------
  420. !! Clothing wear and tear
  421. gs 'starenie'
  422. !!cocaine reduction
  423. if nark > 60:
  424. nark = 60
  425. elseif nark > 30:
  426. nark -= 3
  427. elseif nark > 0:
  428. nark -= 1
  429. end
  430. if pregchem > 240:fat += 1
  431. !!------------------------------------------------------------------------------------------------------------
  432. !! Pain
  433. !!------------------------------------------------------------------------------------------------------------
  434. if pain['head'] > 0:pain['head'] -= rand(1,3)
  435. if pain['hair'] > 0:pain['hair'] -= rand(1,3)
  436. if pain['ears'] > 0:pain['ears'] -= rand(1,3)
  437. if pain['eyebrows'] > 0:pain['eyebrows'] -= rand(1,3)
  438. if pain['eyes'] > 0:pain['eyes'] -= rand(1,3)
  439. if pain['cheeks'] > 0:pain['cheeks'] -= rand(1,3)
  440. if pain['nose'] > 0:pain['nose'] -= rand(1,3)
  441. if pain['mouth'] > 0:pain['mouth'] -= rand(1,3)
  442. if pain['lips'] > 0:pain['lips'] -= rand(1,3)
  443. if pain['tongue'] > 0:pain['tongue'] -= rand(1,3)
  444. if pain['throat'] > 0:pain['throat'] -= rand(1,3)
  445. if pain['neck'] > 0:pain['neck'] -= rand(1,3)
  446. if pain['back'] > 0:pain['back'] -= rand(1,3)
  447. if pain['asscheeks'] > 0:pain['asscheeks'] -= rand(1,3)
  448. if pain['asshole'] > 0:pain['asshole'] -= rand(1,3)
  449. if pain['hips'] > 0:pain['hips'] -= rand(1,3)
  450. if pain['thighs'] > 0:pain['thighs'] -= rand(1,3)
  451. if pain['legL'] > 0:pain['legL'] -= rand(1,3)
  452. if pain['legR'] > 0:pain['legR'] -= rand(1,3)
  453. if pain['feet'] > 0:pain['feet'] -= rand(1,3)
  454. if pain['toes'] > 0:pain['toes'] -= rand(1,3)
  455. if pain['shoulders'] > 0:pain['shoulders'] -= rand(1,3)
  456. if pain['armL'] > 0:pain['armL'] -= rand(1,3)
  457. if pain['armR'] > 0:pain['armR'] -= rand(1,3)
  458. if pain['hands'] > 0:pain['hands'] -= rand(1,3)
  459. if pain['fingers'] > 0:pain['fingers'] -= rand(1,3)
  460. if pain['chest'] > 0:pain['chest'] -= rand(1,3)
  461. if pain['breasts'] > 0:pain['breasts'] -= rand(1,3)
  462. if pain['nipples'] > 0:pain['nipples'] -= rand(1,3)
  463. if pain['ribs'] > 0:pain['ribs'] -= rand(1,3)
  464. if pain['tummy'] > 0:pain['tummy'] -= rand(1,3)
  465. if pain['pubic'] > 0:pain['pubic'] -= rand(1,3)
  466. if pain['vaginal'] > 0:pain['vaginal'] -= rand(1,3)
  467. if pain['labia'] > 0:pain['labia'] -= rand(1,3)
  468. if pain['clitoris'] > 0:pain['clitoris'] -= rand(1,3)
  469. if pain['urethra'] > 0:pain['urethra'] -= rand(1,3)
  470. if pain['cervix'] > 0:pain['cervix'] -= rand(1,3)
  471. if painpub = 2:
  472. if painpubday + 5 < daystart:
  473. $painpub = 'Your vulva is painfully sore.'
  474. painpub = 1
  475. painpubday = daystart
  476. elseif painpubday + 5 >= daystart:
  477. $painpub = 'Your vulva is painfully sore.'
  478. end
  479. elseif painpub = 1:
  480. if painpubday + 5 < daystart:
  481. $painpub = ''
  482. painpub = 0
  483. painpubday = daystart
  484. elseif painpubday + 5 >= daystart:
  485. $painpub = 'Your vulva is a little sore.'
  486. end
  487. end
  488. prezikProver += 1
  489. if pirs_pain_ton > 0:pirs_pain_ton -= 1
  490. if shorthair = 1:
  491. shorthairday += 1
  492. if shorthairday >= 45:shorthairday = 0 & shorthair = 0
  493. end
  494. !!------------------------------------------------------------------------------------------------------------
  495. !!Resetting the counter for relationship modifications that are limited in how many time a day they can be applied.
  496. killvar 'npc_rel_daily'
  497. !!Keeping Christina hating Sveta
  498. gs 'Zvereva_events', 'cikl'
  499. !!Updating Katja''s variables.
  500. gs 'katja_procedural', 'cikl'
  501. if npc_rel['A69'] > 60 and rand(0,3) = 0:npc_rel['A69'] -= 1
  502. !!Making Sonia''s fall progress if the player do not see the scenes at the disco, by making it such that if at a Sunday her fall have not advanced this weekend it will automatically advance.
  503. gs 'soniadisco', 'cikl'
  504. dmishaevent = 0
  505. if Gspravka <= 0 and GspravkaT = 1:GspravkaT = 0 & Gspravka = 0
  506. if GspravkaT = 1:Gspravka -= 1
  507. if BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] = 30:BurgerQW['IlyQW'] = 3
  508. if BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] > 0 and BurgerQW['IlyQWPoliceDayCount'] < 30:BurgerQW['IvanQWPoliceDayCount'] += 1
  509. !!remove degradation for inhibition
  510. inhib_flr = inhib_lvl
  511. gs 'stat_sklattrib', 'daycall'
  512. !Update body measurements and base appearnce
  513. gs 'body', 'DailyUpdate'
  514. gs 'AppearanceSystem', 'UpdateBaseAppearnce'
  515. gs 'body_desc'
  516. if husband > 0 and husbandrink ! 11:husbandrink = rand(0, 10)
  517. !!Pussy_Kats job settings
  518. inWorkYoungShop = 0
  519. if week = 1 and young_shop_work = 100: young_shop_work = 1
  520. if week = 5 and young_shop_work1 = 100: young_shop_work1 = 1
  521. if week = 1 and young_shop_work2 = 100: young_shop_work2 = 1
  522. husbandsexday = 0
  523. borsexkol = 0
  524. givisexday = 0
  525. if shantsr > 0:
  526. pay = shantsr * 5000
  527. karta += pay
  528. shantsr = 0
  529. end
  530. if shantbog > 0:
  531. :shantftb
  532. shantftbgrand = rand(0, 10)
  533. if shantftbgrand > 2:
  534. shantpopala += 1
  535. shantbog -= 1
  536. if shantbog > 0:jump 'shantftb'
  537. elseif shantftbgrand <= 2:
  538. karta += 30000
  539. shantbog -= 1
  540. if shantbog > 0:jump 'shantftb'
  541. end
  542. end
  543. petersexday = 0
  544. klismaday1 = 0
  545. !!ugly duckling start becoming a swan
  546. if uglyduck_flag = 1 and hotcat >= 5:
  547. killvar 'uglyduck_flag'
  548. gs 'npc_relationship', 'socialgroup_setting_boys', 10, 10, 10, 10, 0, 0
  549. grupvalue[1] += 100
  550. old_grupvalue[1] += 100
  551. end
  552. !! Resetting relationships that go over the max
  553. :toptemprel
  554. if temprel < aarraynumber:
  555. temprel +=1
  556. if npc_rel['A'+'<<temprel>>'] > 100:npc_rel['A'+'<<temprel>>'] = 100
  557. jump 'toptemprel'
  558. end
  559. killvar 'temprel'
  560. !!------------------------------------------------------------------------------------------------------------
  561. !! Banking
  562. !!------------------------------------------------------------------------------------------------------------
  563. !!MJ: Add some (daily) interest to the bank account.
  564. !!Not very realistic but won''t make anyone too rich.
  565. if bankAccount = 1:
  566. kartatotal = karta
  567. :kartaloop
  568. if kartatotal > 20000000:
  569. kartacount += 1
  570. largekarta[kartacount] = 20000000
  571. kartatotal -= 20000000
  572. jump 'kartaloop'
  573. else
  574. largekarta[0] = kartatotal
  575. end
  576. if karta >= 2000000:
  577. !! yearly interest of 2.3% recalculated into daily interest = 0.006% daily
  578. intrate = 60
  579. elseif karta >= 0:
  580. !! yearly interest of 1.15% recalculated into daily interest = 0.003% daily
  581. intrate = 30
  582. else
  583. !! yearly overdraft interest of 20% recalculated into daily interest = 0.055% daily
  584. intrate = 550
  585. end
  586. :intloop
  587. if kartacount > 0:
  588. smallmoneypos += (largekarta[kartacount] * intrate)
  589. if smallmoneypos >= 1000000 or smallmoneypos <= -1000000: karta += smallmoneypos / 1000000 & smallmoneypos = smallmoneypos mod 1000000
  590. largekarta[kartacount] = 0
  591. kartacount -= 1
  592. jump 'intloop'
  593. else
  594. smallmoneypos += (largekarta[0] * intrate)
  595. largekarta[0] = 0
  596. if kartacount ! 0: kartacount = 0
  597. end
  598. if smallmoneypos >= 1000000 or smallmoneypos <= -1000000:
  599. karta += smallmoneypos / 1000000
  600. smallmoneypos = smallmoneypos mod 1000000
  601. end
  602. if atmDeposit > 0 and atmDepositDate <= daystart:
  603. karta += atmDeposit
  604. atmDeposit = 0
  605. end
  606. end
  607. !!------------------------------------------------------------------------------------------------------------
  608. !! Payments
  609. !!------------------------------------------------------------------------------------------------------------
  610. if day = 25:
  611. !! meynold payment
  612. if mey_vika['mey_vika_qw'] >= 35 and mey_tamara['help_count'] < 10 and mey_tamara['qw_end'] = 0:
  613. karta += 10000
  614. '<b><font color=green>For your efforts aunt Tamara gave you 10,000 rubles</font></b>'
  615. mey_tamara['help_count'] = 0
  616. elseif mey_vika['mey_vika_qw'] >= 35 and mey_tamara['help_count'] >= 10 and mey_tamara['qw_end'] = 0:
  617. karta += 15000
  618. '<b><font color=green>For your efforts aunt Tamara gave you 15,000 rubles</font></b>'
  619. mey_tamara['help_count'] = 0
  620. end
  621. if BurgerQW['Secretary'] = 1 and BurgerQW['SecretaryTimesWorked'] > 0 and paydaybistrosec = 0:
  622. Pay = BurgerQW['SecretaryTimesWorked'] * 1250
  623. BurgerQW['SecretaryTimesWorked'] = 0
  624. karta += Pay
  625. paydaybistrosec = 1
  626. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a secretary.</font></b>'
  627. end
  628. if workKafe['job'] = 1 and paydayKafe = 0:
  629. paydayKafe = 1
  630. pay = smenaKafe * 600
  631. karta += pay
  632. smenaKafe = 0
  633. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a waitress in a cafe.</font></b>'
  634. end
  635. if workhosp = 1 and nopaypoly = 0:
  636. pay = smena * 1000
  637. karta += pay
  638. smena = 0
  639. nopaypoly = 1
  640. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your work in the clinic.</font></b>'
  641. end
  642. if worksalon = 1 and nopaysalon = 0:
  643. pay = smenaSalon * 1560
  644. karta += pay
  645. smenaSalon = 0
  646. nopaysalon = 1
  647. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your work in a beauty salon.</font></b>'
  648. end
  649. if tanwork = 1 and nopaytanwork = 0:
  650. nopaytanwork = 1
  651. karta += 10000
  652. '<b><font color="green">Your salary of 10,000 <b>₽</b> has been paid into your bank account for your work as a house maid.</font></b>'
  653. end
  654. if workSec = 1 and paydaySec = 0:
  655. paydaySec = 1
  656. pay = sekDay * 1500
  657. karta += pay
  658. sekDay = 0
  659. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job as a secretary.</font></b>'
  660. end
  661. if workFabrika = 1:
  662. pay = smenaFabrika * 600
  663. smenaFabrika = 0
  664. karta += pay
  665. '<b><font color="green">Your salary of <<pay>> <b>₽</b> has been paid into your bank account for your job at the garment factory.</font></b>'
  666. end
  667. if husband > 0 and paydayHusb = 0:
  668. paydayHusb = 1
  669. if husbFin = 0:huspay = 20000
  670. if husbFin = 1:huspay = 30000
  671. if husbFin = 2:huspay = 40000
  672. karta += huspay
  673. '<b><font color="green">Your husband has paid <<huspay>> <b>₽</b> into your bank account.</font></b>'
  674. end
  675. if func('uniutil', 'scholarship' , 'is_active') and scholarshipday = 0:
  676. scholarshipday = 1
  677. karta += func('uniutil', 'scholarship', 'get')
  678. '<b><font color="green">You have received '+func('uniutil', 'scholarship', 'get')+' <b>₽</b> from your scholarship.</font></b>'
  679. end
  680. ! Utilities for all apartments.
  681. if (home_owned[1] = 1 or home_owned[1] = 2 or home_owned[4] > 0 or home_owned[5] = 2) and electroday = 0:
  682. gs 'housing', 'util'
  683. if bankAccount = 1 and karta >= elektro:
  684. '<b><font color="green"><<elektro>> <b>₽</b> for utilities, has been automatically deducted from your bank account.</font></b>'
  685. electroday = 1
  686. if elektro >= 2000:
  687. elektro = 2000 + rand(0, 100)
  688. karta -= elektro * hcount_util
  689. end
  690. elseif bankAccount = 1 and karta + bankDebtLimit >= elektro:
  691. '<b><font color="green"><<elektro>> <b>₽</b> for utilities, has been automatically deducted from your bank account and overdraw facility. Please contact your bank.</font></b>'
  692. electroday = 1
  693. if elektro >= 2000:
  694. elektro = 2000 + rand(0, 100)
  695. karta -= elektro * hcount_util
  696. end
  697. elseif bankAccount = 0 and money >= elektro:
  698. '<b><font color="red">You currently do not have a bank account setup for automatic utilities payments. <<elektro>> <b>₽</b> has been deducted from your cash holdings.</font></b>'
  699. electroday = 1
  700. if elektro >= 2000:
  701. elektro = 2000 + rand(0, 100)
  702. money -= elektro * hcount_util
  703. end
  704. else
  705. '<b><font color="red">Your card was declined during automatic debit of <<elektro>> <b>₽</b>, for automatic utilities payment.</font></b>'
  706. end
  707. end
  708. ! Cable for all apartments
  709. if kabel > 0 and kabelday = 0:
  710. gs 'housing', 'cable'
  711. if bankAccount = 1 and karta >= (300 * hcount_cable):
  712. '<b><font color="green">300 <b>₽</b> has been deducted from your bank account, for you cable TV subscription.</font></b>'
  713. kabelday = 1
  714. karta -= 300 * hcount_cable
  715. elseif bankAccount = 1 and karta + bankDebtLimit >= (300 * hcount_cable):
  716. '<b><font color="green">300 <b>₽</b> has been deducted from your bank account and overdraw facility, for you cable TV subscription.</font></b>'
  717. kabelday = 1
  718. karta -= 300 * hcount_cable
  719. elseif bankAccount = 0 and money >= (300 * hcount_cable):
  720. '<b><font color="red">You currently do not have a bank account setup for automatic payment of your cable TV subscription. 300 <b>₽</b> has been deducted from your cash holdings.</font></b>'
  721. kabelday = 1
  722. money -= 300 * hcount_cable
  723. else
  724. '<b><font color="red">Your card was declined during automatic debit of 300 <b>₽</b> for cable TV subscription.</font></b>'
  725. end
  726. end
  727. end
  728. if day ! 25:
  729. if paydayHusb = 1:paydayHusb = 0
  730. if workKafe['job'] = 1 and paydayKafe = 1:paydayKafe = 0
  731. if workSec = 1 and paydaySec = 1:paydaySec = 0
  732. if (home_owned[1] = 1 or home_owned[4] > 0) and haday = 1:haday = 0
  733. if (home_owned[1] > 0 or home_owned[4] > 0 or home_owned[5] = 2) and electroday = 1:electroday = 0
  734. if (home_owned[1] > 0 or home_owned[4] > 0 or home_owned[5] = 3) and kabel > 0 and kabelday = 1:kabelday = 0
  735. if scholarshipday = 1:scholarshipday = 0
  736. if nopaytanwork = 1:nopaytanwork = 0
  737. if nopaypoly = 1:nopaypoly = 0
  738. if nopaysalon = 1:nopaysalon = 0
  739. if paydaybistrosec = 1:paydaybistrosec = 0
  740. end
  741. if sdaday = day and sdamonth = month and home_owned[1] = 3:
  742. home_owned[1] = 2
  743. '<b><font color="red">Your tenants have moved out and your apartment is now vacant.</font></b>'
  744. !msg 'Your tenants have moved out and your apartment is now vacant.'
  745. end
  746. !!----------------------------------------
  747. !! Rent
  748. !!----------------------------------------
  749. if home_owned[1] = 1 or home_owned[4] > 0:
  750. gs 'housing', 'rent'
  751. ! Rent for the city apartment
  752. if home_owned[1] = 1:
  753. if ArendHouseSL <= 2:
  754. !From bank
  755. if bankAccount = 1 and karta >= home_rent[1]:
  756. '<b><font color="green">Your rent payment of <<home_rent[1]>> <b>₽</b> for your city apartment, has automatically been deducted from your bank account.</font></b>'
  757. karta -= home_rent[1]
  758. ArendHouseSL += ArendHouseSL_due
  759. elseif bankAccount = 1 and karta + bankDebtLimit >= home_rent[1]:
  760. '<b><font color="green">Your rent payment of <<home_rent[1]>> <b>₽</b> for your city apartment, has automatically been deducted from your bank account and overdraw facility. Please contact your bank regarding your overdraw repayment.</font></b>'
  761. karta -= home_rent[1]
  762. ArendHouseSL += ArendHouseSL_due
  763. elseif bankAccount = 0:
  764. '<b><font color="red">You currently do not have a bank account setup for automatic rent deduction of <<home_rent[1]>> <b>₽</b> for your city apartment. To avoid eviction, please make manual payment as soon as possible.</font></b>'
  765. else
  766. nl
  767. '<b><b><font color="red">Your card was declined during automatic rent deduction of <<home_rent[1]>> <b>₽</b> for your city apartment. To avoid eviction, please rectify as soon as possible.</font></b>'
  768. end
  769. end
  770. end
  771. ! Rent for the Pushkin apartment
  772. if home_owned[4] > 0:
  773. if ArendHouseSL4 <= 2:
  774. !From bank
  775. if bankAccount = 1 and karta >= home_rent[4]:
  776. '<b><font color="green">Your rent payment of <<home_rent[4]>> <b>₽</b> for your Pushkin apartment, has automatically been deducted from your bank account.</font></b>'
  777. karta -= home_rent[4]
  778. ArendHouseSL4 += ArendHouseSL_due
  779. elseif bankAccount = 1 and karta + bankDebtLimit >= home_rent[4]:
  780. '<b><font color="green">Your rent payment of <<home_rent[4]>> <b>₽</b> for your Pushkin apartment, has automatically been deducted from your bank account and overdraw facility. Please contact your bank regarding your overdraw repayment.</font></b>'
  781. karta -= home_rent[4]
  782. ArendHouseSL4 += ArendHouseSL_due
  783. elseif bankAccount = 0:
  784. '<b><font color="red">You currently do not have a bank account setup for automatic rent deduction of <<home_rent[4]>> <b>₽</b> for your Pushkin apartment. To avoid eviction, please make manual payment as soon as possible.</font></b>'
  785. else
  786. nl
  787. '<b><b><font color="red">Your card was declined during automatic rent deduction of <<home_rent[4]>> <b>₽</b> for your Pushkin apartment. To avoid eviction, please rectify as soon as possible.</font></b>'
  788. end
  789. end
  790. end
  791. end
  792. if home_owned[1] = 1 and ArendHouseSL <= 0: ArendHouseSL = 0 & home_owned[1] = 0
  793. if home_owned[4] > 0 and ArendHouseSL4 <= 0: ArendHouseSL4 = 0 & home_owned[4] = 0
  794. if home_owned[1] = 1: ArendHouseSL -= 1
  795. if home_owned[4] > 0: ArendHouseSL4 -= 1
  796. !!------------------------------------------------------------------------------------------------------------
  797. killvar 'holyday'
  798. killvar 'kanikuli'
  799. killvar 'pcs_ate'
  800. killvar 'pcs_drank'
  801. !! THIS IS THE OLD SYSTEM. Only keeping this in while it''s still in use as reference for the old variables, otherwise THESE VALUES ARE NOT THE CORRECT ONES FOR NEW VARIABLES
  802. !!sisboyparty
  803. !!-1 - don''t go to the party
  804. !!0 - don''t know about parties
  805. !!1 - knows about the parties
  806. !!2 - agreed to go to the party
  807. !!3 - Missed the party
  808. !!suspension ends
  809. if suspended['day'] = daystart: suspended['on'] = 0
  810. if mid($start_type,1,2) = 'sg':
  811. !!Party refresh if you didn''t see sis
  812. if week = 1 and sisboyparty ! 2:
  813. if sisterQW['party'] = -1: sisterQW['party'] = 0
  814. if sisboypartyQW >= 2 and sisboyparty > 0:
  815. sisboyparty_day = daystart + rand(3,5)
  816. end
  817. end
  818. if sisboyparty = 2 and sisboyparty_day + 1 < daystart: sisboyparty = 3
  819. if SchoolAtestat = 0 and SchoolBlock = 0:
  820. if month = 12 and day > 25:
  821. if day < 31:
  822. $holyday = '<b>Winter Break in <<32-day>> days.</b>'
  823. else
  824. $holyday = '<b>Winter Break starts tomorrow.</b>'
  825. end
  826. elseif month = 1 and day <= 15:
  827. kanikuli = 2
  828. if day < 13:
  829. $holyday = '<b>Winter Break.</b>'
  830. elseif day < 15:
  831. $holyday = '<b>Winter Break ends in <<16-day>> days.</b>'
  832. else
  833. $holyday = '<b>Last day of Winter Break.</b>'
  834. end
  835. elseif month = 3 and day > 13:
  836. if day < 19:
  837. $holyday = '<b>Spring Break starts in <<20-day>> days.</b>'
  838. elseif day = 19:
  839. $holyday = '<b>Spring Break starts tomorrow.</b>'
  840. elseif day >= 20 and day <= 26:
  841. kanikuli = 3
  842. if day < 24:
  843. $holyday = '<b>Spring Break.</b>'
  844. elseif day < 26:
  845. $holyday = '<b>Spring Break ends in <<27-day>> days.</b>'
  846. else
  847. $holyday = '<b>Last day of Spring Break.</b>'
  848. end
  849. end
  850. elseif month = 5:
  851. if year = 2017:
  852. if day = 25:
  853. kanikuli = 6
  854. SchoolAtestat = -1
  855. $holyday = '<b>Your graduation is today. Be there by 8:00.</b>'
  856. elseif day = 24:
  857. $holyday = '<b>Your graduation is tomorrow. Be there by 8:00.</b>'
  858. elseif day >= 19:
  859. $holyday = '<b>Your graduation is in <<26-day>> days.</b>'
  860. end
  861. elseif day >= 25:
  862. if day = 31:
  863. $holyday = '<b>Summer Break starts tomorrow.</b>'
  864. else
  865. $holyday = '<b>Summer Break starts in <<32-day>> days.</b>'
  866. end
  867. end
  868. elseif month = 6 or month = 7 or month = 8:
  869. kanikuli = 4
  870. if month = 8 and day >= 25:
  871. if day = 31:
  872. $holyday = '<b>Last day of Summer Break.</b>'
  873. else
  874. $holyday = '<b>Summer Break ends in <<32-day>> days.</b>'
  875. end
  876. else
  877. $holyday = '<b>Summer Break.</b>'
  878. end
  879. !! start inc 'I put it here because I want to reset these variables during the summer, they are related to cheerleading and it is useful just in case that PC will be part of the team for more than one year.'
  880. killvar 'first_time_outside_in_cold_weather'
  881. killvar 'first_time_doing_basketball'
  882. killvar 'first_time_spring_football_match'
  883. !! end inc
  884. elseif month = 10 and day >= 29:
  885. $holyday = '<b>Autumn Break starts in <<35-day>> days.</b>'
  886. elseif month = 11:
  887. if day < 3:
  888. $holyday = '<b>Autumn Break starts in <<4-day>> days.</b>'
  889. elseif day = 3:
  890. $holyday = '<b>Autumn Break starts tomorrow.</b>'
  891. elseif day < 6:
  892. kanikuli = 1
  893. $holyday = '<b>Autumn Break.</b>'
  894. elseif day < 11:
  895. kanikuli = 1
  896. $holyday = '<b>Autumn Break ends in <<12-day>> days.</b>'
  897. elseif day = 11:
  898. kanikuli = 1
  899. $holyday = '<b>Last day of Autumn Break.</b>'
  900. end
  901. end
  902. if kanikuli = 0 and week < 6:
  903. if week = 1:
  904. !!The start and end values for i have to be changed if more female schoolgirl npcs are added to the game
  905. i = 11
  906. :hotcat_calc_jump
  907. i += 1
  908. if hotcat_rating['A<<i>>'] = 0: jump 'hotcat_calc_jump'
  909. switch_rand = rand(1,100)
  910. if hotcat_movement['A<<i>>'] = 0 and switch_rand < 21:
  911. hotcat_rating['A<<i>>'] -= 1
  912. hotcat_movement['A<<i>>'] -= 1
  913. elseif hotcat_movement['A<<i>>'] = 0 and switch_rand > 80:
  914. hotcat_rating['A<<i>>'] += 1
  915. hotcat_movement['A<<i>>'] += 1
  916. elseif hotcat_movement['A<<i>>'] = 1 and switch_rand > 40:
  917. hotcat_rating['A<<i>>'] -= 1
  918. hotcat_movement['A<<i>>'] -= 1
  919. elseif hotcat_movement['A<<i>>'] = -1 and switch_rand > 40:
  920. hotcat_rating['A<<i>>'] += 1
  921. hotcat_movement['A<<i>>'] += 1
  922. end
  923. if i < 145: jump 'hotcat_calc_jump'
  924. killvar 'i'
  925. killvar 'switch_rand'
  926. end
  927. !! Resetting the late flag
  928. if late = 1: late = 0
  929. end
  930. !!Social grup changes
  931. !!Change from relatonship with other students.
  932. gs 'gschool_socialchg', 'group_student_rel_change'
  933. !!Decay for the school groups
  934. if grupvalue[1] > 0:
  935. grupvalue[1] -= rand(0,1)
  936. else
  937. grupvalue[1] = 0
  938. end
  939. if grupvalue[2] > 0:
  940. grupvalue[2] -= rand(0,1)
  941. else
  942. grupvalue[2] = 0
  943. end
  944. if grupvalue[3] > 0:
  945. grupvalue[3] -= rand(0,1)
  946. else
  947. grupvalue[3] = 0
  948. end
  949. if grupvalue[4] > 0:
  950. grupvalue[4] -= rand(0,1)
  951. else
  952. grupvalue[4] = 0
  953. end
  954. !!Maximum increase for grupvalues is 10 and max decay is 30
  955. if oldgrupvalue_set = 0:
  956. oldgrupvalue_set = 1
  957. old_grupvalue[1] = grupvalue[1]
  958. old_grupvalue[2] = grupvalue[2]
  959. old_grupvalue[3] = grupvalue[3]
  960. old_grupvalue[4] = grupvalue[4]
  961. else
  962. if old_grupvalue[1] + 10 < grupvalue[1]: grupvalue[1] = old_grupvalue[1] + 10
  963. if old_grupvalue[2] + 10 < grupvalue[2]: grupvalue[2] = old_grupvalue[2] + 10
  964. if old_grupvalue[3] + 10 < grupvalue[3]: grupvalue[3] = old_grupvalue[3] + 10
  965. if old_grupvalue[4] + 10 < grupvalue[4]: grupvalue[4] = old_grupvalue[4] + 10
  966. if old_grupvalue[1] - 30 > grupvalue[1]: grupvalue[1] = old_grupvalue[1] - 30
  967. if old_grupvalue[2] - 30 > grupvalue[2]: grupvalue[2] = old_grupvalue[2] - 30
  968. if old_grupvalue[3] - 30 > grupvalue[3]: grupvalue[3] = old_grupvalue[3] - 30
  969. if old_grupvalue[4] - 30 > grupvalue[4]: grupvalue[4] = old_grupvalue[4] - 30
  970. end
  971. !!Limit to max school group values
  972. if grupvalue[1] > 1000: grupvalue[1] = 1000
  973. if grupvalue[2] > 1000: grupvalue[2] = 1000
  974. if grupvalue[3] > 1000: grupvalue[3] = 1000
  975. if grupvalue[4] > 1000: grupvalue[4] = 1000
  976. old_grupvalue[1] = grupvalue[1]
  977. old_grupvalue[2] = grupvalue[2]
  978. old_grupvalue[3] = grupvalue[3]
  979. old_grupvalue[4] = grupvalue[4]
  980. elseif SchoolAtestat = -1:
  981. if home_owned[2] = 0:
  982. $holyday = '<b>You missed your graduation. You could pick up your diploma at the school.</b>'
  983. else
  984. $holyday = '<b>You missed your graduation. Maybe your mother picked up your diploma.</b>'
  985. end
  986. end
  987. !!Brother''s dick growth as he gets older
  988. !Commented out till some future time
  989. !if kolka_dick_day + 30 < daystart and npc_dick['A34'] < 26:
  990. ! kolka_dick_day = daystart
  991. ! npc_dick['A34'] += 1
  992. !end
  993. !if npc_dick['A34'] < 20 and npc_dick['A34'] > 16:
  994. ! $npc_thdick['A34'] = 'well proportioned'
  995. !elseif npc_dick['A34'] >= 20 and npc_dick['A34'] <= 26:
  996. ! $npc_thdick['A34'] = 'thick'
  997. !end
  998. !! Calcualting the increase/decreas of the grade each week.
  999. gs 'gschool', 'weekly grade update'
  1000. end
  1001. killvar 'natholi'
  1002. if month = 1 and day >= 1 and day <= 8:
  1003. $natholi = 'New Year holidays'
  1004. natholi = 1
  1005. if day = 1:$natholi += ', New Year'
  1006. if day = 7:$natholi += ', Christmas'
  1007. end
  1008. if month = 2 and day = 23:$natholi = 'Defender of Fatherland Day' & natholi = 1
  1009. if month = 3 and day = 8:$natholi = 'Women''s Day' & natholi = 1
  1010. if month = 5 and day = 1:$natholi = 'Spring and Labor Day' & natholi = 1
  1011. if month = 5 and day = 2:$natholi = 'National holiday' & natholi = 1
  1012. if month = 5 and day = 9:$natholi = 'Victory Day' & natholi = 1
  1013. if month = 6 and day = 12:$natholi = 'Russia Day' & natholi = 1
  1014. if month = 6 and day = 13:$natholi = 'National holiday' & natholi = 1
  1015. if month = 11 and day = 4:$natholi = 'Unity Day' & natholi = 1
  1016. if natholi = 1:
  1017. if $holyday ! '': $holyday += '<br>'
  1018. $holyday += $natholi
  1019. end
  1020. !!------------------------------------------------------------------------------------------------------------------------
  1021. !!Setting the weeks in the university semester and makeing sure that the gades are calculated at the right times
  1022. gs 'uni_lessons', 'cikl'
  1023. !!------------------------------------------------------------------------------------------------------------------------
  1024. !!resetting moisturizer so it can be used in the morning regardless
  1025. item_moisturizer_time = totminut
  1026. if bcream_used >= 1:
  1027. bcream_used = 0
  1028. temp = rand(0,max(nbsize-genbsize+5,5)) / max(nbsize-genbsize,1)
  1029. if temp > 0: temp = 1
  1030. nbsize += temp
  1031. if temp > 0:'Feels like your breasts have grown slightly.'
  1032. end
  1033. if steroid_dose >= 1:
  1034. if lashair < 1:
  1035. pcs_pubes += steroid_dose
  1036. pcs_leghair += steroid_dose
  1037. end
  1038. steroid_dose = 0
  1039. end
  1040. if aphrodisiac_overdose = 1:aphrodisiac_overdose = 0
  1041. if aphrodisiac_timer ! 0:aphrodisiac_timer = 0
  1042. if mentats_dose = 1:
  1043. mentats_dose = 0
  1044. elseif mentats_dose > 1:
  1045. pain['head'] += 20 * mentats_dose
  1046. mentats_dose = 0
  1047. end
  1048. !! vovan, from 1.2.5
  1049. hunters_check = 0
  1050. mushroom_pickers = 0
  1051. mira_go_river = 0
  1052. forestpicnic = 0
  1053. if Mira_no > 0: Mira_no -= 1
  1054. if Mira_no < 0: Mira_no = 0
  1055. !! new grandparent chore stuff, for 0.8.0
  1056. if gadstay = 1 and lost_girl = 0:
  1057. if daystart > (grandmaQW['last_day_helped'] + 3) and daystart > (grandpaQW['last_day_helped'] + 3):
  1058. if (daystart - grandmaQW['last_day_helped']) <= (daystart - grandpaQW['last_day_helped']):
  1059. 'You haven''t helped your grandparents with any chores in <<daystart - grandmaQW[''last_day_helped'']>> days. You should help out more regularly to stay on your grandparents'' good side.'
  1060. else
  1061. 'You haven''t helped your grandparents with any chores in <<daystart - grandpaQW[''last_day_helped'']>> days. You should help out more regularly to stay on your grandparents'' good side.'
  1062. end
  1063. grandmaQW['help_amount'] -= 1
  1064. end
  1065. end
  1066. !! disappointing grandma
  1067. if grandmaQW['chore_clean_floor'] = 1 or grandmaQW['chore_clean_floor'] = 2:
  1068. grandmaQW['chore_clean_floor'] = 0
  1069. grandmaQW['disappointment'] = 1
  1070. elseif grandmaQW['chore_wash_clothes'] = 1 or grandmaQW['chore_wash_clothes'] = 2:
  1071. grandmaQW['chore_wash_clothes'] = 0
  1072. grandmaQW['disappointment'] = 1
  1073. elseif grandmaQW['chore_milk_cow'] = 1 or grandmaQW['chore_milk_cow'] = 2:
  1074. grandmaQW['chore_milk_cow'] = 0
  1075. grandmaQW['disappointment'] = 1
  1076. elseif grandmaQW['chore_groceries'] = 1 or grandmaQW['chore_groceries'] = 2:
  1077. grandmaQW['chore_groceries'] = 0
  1078. grandmaQW['disappointment'] = 1
  1079. elseif grandmaQW['chore_can_mushrooms'] = 1 or grandmaQW['chore_can_mushrooms'] = 2:
  1080. grandmaQW['chore_can_mushrooms'] = 0
  1081. grandmaQW['disappointment'] = 1
  1082. elseif grandmaQW['chore_can_berries'] = 1 or grandmaQW['chore_can_berries'] = 2:
  1083. grandmaQW['chore_can_berries'] = 0
  1084. grandmaQW['disappointment'] = 1
  1085. elseif grandmaQW['chore_can_veggies'] = 1 or grandmaQW['chore_can_veggies'] = 2:
  1086. grandmaQW['chore_can_veggies'] = 0
  1087. grandmaQW['disappointment'] = 1
  1088. elseif grandmaQW['chore_feed_chickens'] = 1 or grandmaQW['chore_feed_chickens'] = 2:
  1089. grandmaQW['chore_feed_chickens'] = 0
  1090. grandmaQW['disappointment'] = 1
  1091. elseif grandmaQW['chore_work_in_garden'] = 1 or grandmaQW['chore_work_in_garden'] = 2:
  1092. grandmaQW['chore_work_in_garden'] = 0
  1093. grandmaQW['disappointment'] = 1
  1094. elseif grandmaQW['chore_water_garden'] = 1 or grandmaQW['chore_water_garden'] = 2:
  1095. grandmaQW['chore_water_garden'] = 0
  1096. grandmaQW['disappointment'] = 1
  1097. elseif grandmaQW['chore_collect_strawberries'] = 1 or grandmaQW['chore_collect_strawberries'] = 2:
  1098. grandmaQW['chore_collect_strawberries'] = 0
  1099. grandmaQW['disappointment'] = 1
  1100. elseif grandmaQW['chore_collect_fruit'] = 1 or grandmaQW['chore_collect_fruit'] = 2:
  1101. grandmaQW['chore_collect_fruit'] = 0
  1102. grandmaQW['disappointment'] = 1
  1103. elseif grandmaQW['chore_harvest_garden'] = 1 or grandmaQW['chore_harvest_garden'] = 2:
  1104. grandmaQW['chore_harvest_garden'] = 0
  1105. grandmaQW['disappointment'] = 1
  1106. elseif grandmaQW['chore_gather_mushrooms'] = 1 or grandmaQW['chore_gather_mushrooms'] = 2:
  1107. grandmaQW['disappointment'] = 2
  1108. elseif grandmaQW['chore_gather_mushrooms'] = 1 or grandmaQW['chore_gather_mushrooms'] = 2 and grandmaQW['disappointment'] = 2:
  1109. grandmaQW['chore_gather_mushrooms'] = 0
  1110. grandmaQW['chore_mushroom_quantity'] = 0
  1111. grandmaQW['disappointment'] = 1
  1112. elseif grandmaQW['chore_gather_berries'] = 1 or grandmaQW['chore_gather_berries'] = 2:
  1113. grandmaQW['disappointment'] = 2
  1114. elseif grandmaQW['chore_gather_berries'] = 1 or grandmaQW['chore_gather_berries'] = 2 and grandmaQW['disappointment'] = 2:
  1115. grandmaQW['chore_gather_berries'] = 0
  1116. grandmaQW['chore_berry_quantity'] = 0
  1117. grandmaQW['disappointment'] = 1
  1118. elseif grandmaQW['chore_gather_both'] = 1 or grandmaQW['chore_gather_both'] = 2:
  1119. grandmaQW['disappointment'] = 2
  1120. elseif grandmaQW['chore_gather_both'] = 1 or grandmaQW['chore_gather_both'] = 2 and grandmaQW['disappointment'] = 2:
  1121. grandmaQW['chore_gather_both'] = 0
  1122. grandmaQW['chore_mushroom_quantity'] = 0
  1123. grandmaQW['chore_berry_quantity'] = 0
  1124. grandmaQW['disappointment'] = 1
  1125. end
  1126. !! disappointing grandpa
  1127. if grandpaQW['chore_fetch_firewood'] = 1 or grandpaQW['chore_fetch_firewood'] = 2:
  1128. grandpaQW['chore_fetch_firewood'] = 0
  1129. grandpaQW['disappointment'] = 1
  1130. elseif grandpaQW['chore_feed_horse'] = 1 or grandpaQW['chore_feed_horse'] = 2:
  1131. grandpaQW['chore_feed_horse'] = 0
  1132. grandpaQW['disappointment'] = 1
  1133. elseif grandpaQW['chore_feed_cow'] = 1 or grandpaQW['chore_feed_cow'] = 2:
  1134. grandpaQW['chore_feed_cow'] = 0
  1135. grandpaQW['disappointment'] = 1
  1136. elseif grandpaQW['chore_clean_yard'] = 1 or grandpaQW['chore_clean_yard'] = 2:
  1137. grandpaQW['chore_clean_yard'] = 0
  1138. grandpaQW['disappointment'] = 1
  1139. elseif grandpaQW['chore_feed_boar'] = 1 or grandpaQW['chore_feed_boar'] = 2:
  1140. grandpaQW['chore_feed_boar'] = 0
  1141. grandpaQW['disappointment'] = 1
  1142. elseif grandpaQW['chore_bathe_horse'] = 1 or grandpaQW['chore_bathe_horse'] = 2:
  1143. grandpaQW['chore_bathe_horse'] = 0
  1144. grandpaQW['chore_bathe_horse_prog'] = 0
  1145. grandpaQW['disappointment'] = 1
  1146. elseif grandpaQW['chore_brush_horse'] = 1 or grandpaQW['chore_brush_horse'] = 2:
  1147. grandpaQW['chore_brush_horse'] = 0
  1148. grandpaQW['disappointment'] = 1
  1149. elseif grandpaQW['chore_lead_horse_to_field'] = 1 or grandpaQW['chore_lead_horse_to_field'] = 2:
  1150. grandpaQW['chore_lead_horse_to_field'] = 0
  1151. grandpaQW['disappointment'] = 1
  1152. elseif grandpaQW['chore_herd_cattle'] = 1 or grandpaQW['chore_herd_cattle'] = 2:
  1153. grandpaQW['chore_herd_cattle'] = 0
  1154. grandpaQW['disappointment'] = 1
  1155. elseif grandpaQW['chore_lead_cow_to_field'] = 1 or grandpaQW['chore_lead_cow_to_field'] = 2:
  1156. grandpaQW['chore_lead_cow_to_field'] = 0
  1157. grandpaQW['disappointment'] = 1
  1158. elseif grandpaQW['chore_gather_mushrooms'] = 1 or grandpaQW['chore_gather_mushrooms'] = 2:
  1159. grandpaQW['disappointment'] = 2
  1160. elseif grandpaQW['chore_gather_mushrooms'] = 1 or grandpaQW['chore_gather_mushrooms'] = 2 and grandpaQW['disappointment'] = 2:
  1161. grandpaQW['chore_gather_mushrooms'] = 0
  1162. grandpaQW['chore_mushroom_quantity'] = 0
  1163. grandpaQW['disappointment'] = 1
  1164. elseif grandpaQW['chore_gather_berries'] = 1 or grandpaQW['chore_gather_berries'] = 2:
  1165. grandpaQW['disappointment'] = 2
  1166. elseif grandpaQW['chore_gather_berries'] = 1 or grandpaQW['chore_gather_berries'] = 2 and grandpaQW['disappointment'] = 2:
  1167. grandpaQW['chore_gather_berries'] = 0
  1168. grandpaQW['chore_berry_quantity'] = 0
  1169. grandpaQW['disappointment'] = 1
  1170. elseif grandpaQW['chore_gather_both'] = 1 or grandpaQW['chore_gather_both'] = 2:
  1171. grandpaQW['disappointment'] = 2
  1172. elseif grandpaQW['chore_gather_both'] = 1 or grandpaQW['chore_gather_both'] = 2 and grandpaQW['disappointment'] = 2:
  1173. grandpaQW['chore_gather_both'] = 0
  1174. grandpaQW['chore_mushroom_quantity'] = 0
  1175. grandpaQW['chore_berry_quantity'] = 0
  1176. grandpaQW['disappointment'] = 1
  1177. elseif grandpaQW['chore_bale_hay'] = 1 or grandpaQW['chore_bale_hay'] = 2:
  1178. grandpaQW['chore_bale_hay'] = 0
  1179. grandpaQW['disappointment'] = 1
  1180. end
  1181. !! grandparents use root cellar
  1182. if boletus_stored > 0: boletus_stored -= rand(0,1)
  1183. if bilberry_stored > 0: bilberry_stored -= rand(0,1)
  1184. if boletus_stored < 0: boletus_stored = 0
  1185. if bilberry_stored < 0: bilberry_stored = 0
  1186. !! end of new grandparent chore stuff, for 0.8.0
  1187. if catout ! 0: catout = 0
  1188. if feedcat ! 0: feedcat = 0
  1189. loc_count = ARRSIZE('$CloLosLoc')
  1190. i = loc_count - 1
  1191. :loopCloLoc
  1192. $CloLoc = $CloLosLoc[i]
  1193. CloLostOn = CloLosDay[$CloLoc]
  1194. if CloLostOn + RAND(7,14) < daystart :
  1195. gs 'clothing', 'recover_lost_clothes', $CloLoc, 2
  1196. end
  1197. i -=1
  1198. if i > -1 :jump 'loopCloLoc'
  1199. if vidageday > 1080: vidageday = 1080
  1200. if blizoruk < 10: blizoruk -= 1
  1201. if blizoruk < 100: blizoruk -= rand(0,1)
  1202. if blizoruk < 0: blizoruk = 0
  1203. !!------------------------------------------------------------------------------------------------------------------------
  1204. !!C and b array cleaning
  1205. if InSleep = 1: gs 'npc','cleanarrays'
  1206. !!------------------------------------------------------------------------------------------------------------
  1207. !!-------------Therapist Route schedule variables----------------------------------------------------------------------
  1208. !! 23 = kitchen
  1209. !! 24 = Living room
  1210. !! 25 = bathroom
  1211. !! 26 = Master''s room
  1212. if therapistWantsSlave > 0:
  1213. annaclean1 = rand(23,26)
  1214. end
  1215. !!------------------------------------------------------------------------------------------------------------
  1216. !!-------------Family Dog----------------------------------------------------------------------
  1217. if $status['dog'] ! 'blocked' and rex['owned'] = 1:
  1218. rex['timer_day'] = daystart
  1219. !!Daily decay
  1220. rex['relationship'] -= 1
  1221. !!Chores
  1222. if cheat['dog_rel'] = 0 and rex['gadukino_day'] ! daystart:
  1223. npc_rel['A29'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  1224. rex['relationship'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  1225. end
  1226. rex['count_run'] = 0
  1227. rex['count_walk'] = rex['count_walk_base']
  1228. rex['timer_walk'] = 0
  1229. rex['count_feed'] = rex['count_feed_base']
  1230. rex['timer_feed'] = 0
  1231. if week = 1:
  1232. if cheat['dog_rel'] = 0:
  1233. npc_rel['A29'] -= rex['count_bath']
  1234. rex['relationship'] -= (rex['count_bath'] * 5)
  1235. end
  1236. rex['count_bath'] = rex['count_bath_base']
  1237. end
  1238. end
  1239. !!------------------------------------------------------------------------------------------------------------
  1240. !!---------- School related schedule -------------------------------------------------------------------------
  1241. starlets_on = iif( ( (week = 5 and odd_week = 0) or (week = 1 or week = 3 or week >= 6) ) and natholi = 0,1,0)
  1242. cheerleaders_on = iif( ( (week = 5 and odd_week = 1) or (week = 2 or week = 4) ) and (natholi = 0 and (month >9 or month <6)) ,1,0)
  1243. if starlets['late_message'] = 1: starlets['late_message'] = 0
  1244. !!------------------------------------------------------------------------------------------------------------
  1245. !!---------- Starlet Content ---------------------------------------------------------------------------------
  1246. if AlbinaQW['StarletsJoined'] > 0 and AlbinaQW['StarletsShutDown'] = 0 and npc_pregtalk['A23'] = 0:
  1247. if starlets_practice = daystart - 1:
  1248. starlets_missed = 1
  1249. starlets_practice = 0
  1250. end
  1251. if starlets_on = 1: starlets_practice = daystart
  1252. end
  1253. if month = 9 and day = 16 and AlbinaQW['ParkRally'] = 0: AlbinaQW['ParkRally'] = 1
  1254. if month = 10 and day = 16 and AlbinaQW['ParkRally'] = 1: AlbinaQW['ParkRally'] = 2
  1255. if month = 11 and day = 19 and (AlbinaQW['StarletsJoined'] <= 0 or (AlbinaQW['StarletsJoined'] = 1 and npc_pregtalk['A23'] = 1)) and AlbinaQW['StarletsShutDown'] = 0: AlbinaQW['StarletsShutDown'] = 1
  1256. !!------------------------------------------------------------------------------------------------------------
  1257. !!-------------Music career related variables and calculations------------------------------------------------
  1258. !! How many hours a day can Sveta perform. It maxes out at 3.
  1259. !! Using the actual skill level, not the one modified by Attributes because that is more realistic for this.
  1260. ml_performance['max_perform_minutes'] = pcs_instrmusic + pcs_vokal
  1261. ml_performance['performed_minutes'] = 0
  1262. !! Checking for missed guitar lesson
  1263. if ml_guitarlesson['nextlesson'] < daystart and ml_guitarlesson['lessonday'] ! 8:
  1264. ml_guitarlesson['lessonday'] = 8
  1265. end
  1266. !! Calculating the fame increase from the uploaded songs and removing ones that do not effect fame anymore to keep the
  1267. !! data at a sane level
  1268. if ml_onlinesongcount > 0:
  1269. i = 0
  1270. j = -1
  1271. :looponlinesongs
  1272. !! this so every song counts only every 7 days and only for a limited number of weeks
  1273. if ml_onlinesong_freshness[i] > 0:
  1274. j += 1
  1275. ml_tempsong_freshness[j] = ml_onlinesong_sfreshness[i]
  1276. ml_tempsong_lastcalcday[j] = ml_onlinesong_lastcalcday[i]
  1277. ml_tempsong_hotcat[j] = ml_onlinesong_hotcat[i]
  1278. ml_tempsong_skilllevel[j] = ml_onlinesong_skilllevel[i]
  1279. ml_tempsong_uploaded[j] = ml_onlinesong_uploaded[i]
  1280. *nl
  1281. if ml_tempsong_lastcalcday[j] <= (daystart - 7) and ml_tempsong_uploaded = 1:
  1282. gs 'fame', 'city', 'music', rand(0, ml_tempsong_freshness[j]/100)
  1283. ml_tempsong_freshness[j] -= 10
  1284. ml_tempsong_lastcalcday[j] = daystart
  1285. end
  1286. end
  1287. i += 1
  1288. if i < ml_onlinesongcount: jump 'looponlinesongs'
  1289. killvar 'ml_onlinesong_freshness'
  1290. killvar 'ml_onlinesong_lastcalcday'
  1291. killvar 'ml_onlinesong_hotcat'
  1292. killvar 'ml_onlinesong_skilllevel'
  1293. killvar 'ml_onlinesong_uploaded'
  1294. i = 0
  1295. if j >= 0:
  1296. :looprebuildsongs
  1297. ml_onlinesong_freshness[i] = ml_tempsong_freshness[i]
  1298. ml_onlinesong_hotcat[i] = ml_tempsong_hotcat[i]
  1299. ml_onlinesong_lastcalcday[i] = ml_tempsong_lastcalcday[i]
  1300. ml_onlinesong_skilllevel[i] = ml_tempsong_skilllevel[i]
  1301. ml_onlinesong_uploaded[i] = ml_tempsong_uploaded[i]
  1302. i += 1
  1303. if i <= j: jump 'looprebuildsongs'
  1304. end
  1305. killvar 'ml_tempsong_freshness'
  1306. killvar 'ml_tempsong_lastcalcday'
  1307. killvar 'ml_tempsong_hotcat'
  1308. killvar 'ml_tempsong_skilllevel'
  1309. killvar 'ml_tempsong_uploaded'
  1310. end
  1311. !! Repertoire quality decay if no practice is done
  1312. if ml_performance['set_lastpracticeday'] ! (daystart-1): repertoire_quality -= 2
  1313. !!------------- Prostitution - WLife integration related stuff ------------------------------------------------
  1314. !! Check if people will start to seek Sveta randomly for services, based on her reputation
  1315. if prostitute['blocked'] = 0: gs 'prostitution_functions', 'set_pav_prost'
  1316. --- cikl ---------------------------------