cikl.qsrc 51 KB

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