cikl.qsrc 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177
  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. !! set the time when the SMS will be send
  69. gs 'booty_call', 'scheduler'
  70. !!------------------------------------------------------------------------------------------------------------
  71. !! Job Stuff
  72. !!------------------------------------------------------------------------------------------------------------
  73. !! masseuse paycheck
  74. if masseuse['weeks_pay'] > 0 and week = 5:masseuse['paycheck'] = 1
  75. if masseuse['jobtype'] > 0 and week = 5 and masseuse['weeks_pay'] > 0:
  76. masseuse['payday'] = 1
  77. end
  78. if week = 7 and masseuse['schedule_update'] ! daystart: gs 'masseuse_schedule','schedule_reset'
  79. !!modelling check
  80. if model_week ! (daystart - week) / 7:model_job_week = 0
  81. !!acting strings to set available jobs
  82. if casting = 1:
  83. acting_string1 = rand(10000000,199999999)
  84. acting_string2 = rand(10000000,199999999)
  85. end
  86. dynamic $hypnoDaychange
  87. !!phone reset for bf
  88. ringA = 0
  89. ringB = 0
  90. ringC = 0
  91. !!Appearance Age
  92. vidageday -= 1
  93. if vidageday <= 0:
  94. vidageday = 360
  95. vidage += 1
  96. end
  97. !!Birthday
  98. age = year - ((pcs_dob - (pcs_dob mod 10000)) / 10000)
  99. if ((month * 100) + day) <= pcs_dob mod 10000: age -= 1
  100. if birthday = day and birthmonth = month and model['age'] > 0:model['age'] += 1
  101. if workDolgDay > 0: workDolgDay -= 1
  102. if QWdogreiqTimer > 0: QWdogreiqTimer -= 1
  103. if husband > 0: husbanday += 1
  104. if husband > 10 and husbanday > 0: husband -= 15
  105. if fingal > 0: fingal -= 1
  106. if husbandMark = 1 and husband <= 10:
  107. husbizvradd = 0
  108. husbharmin = 0
  109. husbandMark = 0
  110. husband = 0
  111. divorced += 1
  112. if KFOnLineReaga > 0:KFOnLineReaga -= 1
  113. '<b><font color="red">Your husband has filed for a divorce.</font></b>'
  114. end
  115. !! after having surgery you will be in recuperation for a few days
  116. if surgeryday ! '':
  117. if daystart - 7 <= surgeryday:
  118. dailyhealthimprov = (daystart - surgeryday) * 50
  119. pcs_health = dailyhealthimprov
  120. recuperation = 1
  121. else
  122. killvar 'recuperation'
  123. killvar 'dailyhealthimprov'
  124. end
  125. end
  126. !!Street events daily reset
  127. streetevent_hour = -2
  128. !!Clothing stock and price randomizers
  129. Clothingstock = rand (0,23)
  130. i = 1
  131. :loopprice
  132. Clothingstock[i] = rand (0,500)
  133. i += 1
  134. if i <= 147:jump 'loopprice'
  135. if dyneval ('RESULT = <<$coatworntype>>_coats_h[<<coatwornnumber>>]') <= 0: $coatworntype = 'none'
  136. !! Abortion and pregnancy recovery resets if finished
  137. if abortionbirthdate ! 0 and daystart - abortionbirthdate > 24: abortionbirthdate = 0
  138. if pregbirthdate ! 0 and daystart - pregbirthdate > 73: pregbirthdate = 0
  139. !!------------------------------------------------------------------------------------------------------------
  140. !! Nympho
  141. !!------------------------------------------------------------------------------------------------------------
  142. !! Reserved for nympho trait
  143. if nymphosex_flag = 1:
  144. end
  145. nymphosex_flag = 0
  146. !!------------------------------------------------------------------------------------------------------------
  147. !! Bimbo
  148. !!------------------------------------------------------------------------------------------------------------
  149. !!bimbo flag set in stat_display if bimbo clothing, shoes and makeup are worn at same time
  150. if succubusflag = 0 or CheatBimbo2 = 1:
  151. if cheatBimbo = 0 and bimbo_flag = 1:
  152. bimbo += 1
  153. end
  154. end
  155. !!Once bimbolevel is set to 1, must use the withdrawal in stat to return to 0
  156. if bimbo > 0 or bimbolevel > 0:
  157. if bimbo < 10:
  158. if bimbo_flag = 0:
  159. bimbo -= 2
  160. end
  161. elseif bimbo < 20:
  162. bimbolevel = 1
  163. elseif bimbo < 30:
  164. bimbolevel = 2
  165. else
  166. bimbolevel = 3
  167. end
  168. end
  169. if bimbo >= 40: bimbo = 40
  170. !!Bimbo levels. They use custom variables so they won''t permanently change character stats
  171. if bimbolevel = 0: supnatvnesh = 0 & bimbostupidity = 0
  172. if CheatBimbo2 = 0:
  173. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 6)
  174. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = (pcs_intel / 4)
  175. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = (pcs_intel / 3)
  176. elseif CheatBimbo2 = 1:
  177. if bimbolevel = 1: supnatvnesh = 2 & bimbostupidity = 0
  178. if bimbolevel = 2: supnatvnesh = 2 & bimbostupidity = 0
  179. if bimbolevel = 3: supnatvnesh = 4 & bimbostupidity = 0
  180. end
  181. !!A Succubus cannot be a Bimbo
  182. if succubusflag = 1 and CheatBimbo3 = 0:
  183. if bimbolevel > 0 and bimbo > 0: bimbowithdrawal = 40
  184. elseif bimbolevel >= 1:
  185. !!Checks flag and adds withdrawal if 0
  186. if bimbo_flag = 0:
  187. bimbowithdrawal += 1
  188. else
  189. bimbowithdrawal = 0
  190. end
  191. end
  192. if bimbo < 0: bimbo = 0
  193. !! flag reset
  194. bimbo_flag = 0
  195. !!------------------------------------------------------------------------------------------------------------
  196. !! Butt slut
  197. !!------------------------------------------------------------------------------------------------------------
  198. if orgasm_anal > orgasm_anal[1]:
  199. if traits['buttslut_lvl'] > 0: traits['buttslut_exp'] += orgasm_anal - orgasm_anal[1]
  200. else
  201. if traits['buttslut_exp'] > 1: traits['buttslut_exp'] -= 1
  202. end
  203. orgasm_anal[1] = orgasm_anal
  204. if orgasm_anal > 10 and traits['buttslut_lvl'] = 0: traits['buttslut_lvl'] = 1
  205. if traits['buttslut_exp'] >= 15 and traits['buttslut_lvl'] = 1: traits['buttslut_lvl'] = 2 & traits['buttslut_exp'] = 0
  206. if traits['buttslut_exp'] >= 50 and traits['buttslut_lvl'] = 2: traits['buttslut_lvl'] = 3
  207. if traits['buttslut_exp'] <= 0 and traits['buttslut_lvl'] = 3: traits['buttslut_lvl'] = 2 & traits['buttslut_exp'] = 0
  208. !!------------------------------------------------------------------------------------------------------------
  209. !! Exhibitionism
  210. !!------------------------------------------------------------------------------------------------------------
  211. if pcs_exhib > 0 or exhibitionist_lvl > 0:
  212. if pcs_exhib < 10:
  213. pcs_exhib -= 1
  214. elseif pcs_exhib < 50:
  215. exhibitionist_lvl = 1
  216. elseif pcs_exhib < 100 or exhibitionQW < 3:
  217. exhibitionist_lvl = 2
  218. elseif exhibitionQW > 2:
  219. exhibitionist_lvl = 3
  220. end
  221. end
  222. !!Inhibition increases from wearing revealing clothing
  223. if exhibition_outdoors > 0:
  224. if pcs_inhib > 90:
  225. exhibition_outdoors = exhibition_outdoors * 3
  226. elseif pcs_inhib > 75:
  227. exhibition_outdoors = exhibition_outdoors * 5 / 2
  228. elseif pcs_inhib > 60:
  229. exhibition_outdoors = exhibition_outdoors * 2
  230. elseif pcs_inhib > 30:
  231. exhibition_outdoors = exhibition_outdoors * 3 / 2
  232. end
  233. if exhibition_outdoors <= 5:
  234. inhib_exp += rand(3,6)
  235. elseif exhibition_outdoors <= 10:
  236. inhib_exp += rand(5,9)
  237. elseif exhibition_outdoors <= 15:
  238. inhib_exp += rand(7,12)
  239. elseif exhibition_outdoors <= 20:
  240. inhib_exp += rand(9,15)
  241. elseif exhibition_outdoors <= 25:
  242. inhib_exp += rand(12,20)
  243. elseif exhibition_outdoors <= 30:
  244. inhib_exp += rand(16,25)
  245. elseif exhibition_outdoors <= 35:
  246. inhib_exp += rand(20,30)
  247. elseif exhibition_outdoors <= 40:
  248. inhib_exp += rand(25,40)
  249. elseif exhibition_outdoors <= 50:
  250. inhib_exp += rand(35,50)
  251. elseif exhibition_outdoors <= 65:
  252. inhib_exp += rand(50,75)
  253. else
  254. inhib_exp += rand(70,100)
  255. end
  256. end
  257. exhibition_outdoors = 0
  258. !!------------------------------------------------------------------------------------------------------------
  259. !! Succubus Level & hunger calcs
  260. !!------------------------------------------------------------------------------------------------------------
  261. if succubusflag = 1: gs 'succubus','cikl'
  262. !!------------------------------------------------------------------------------------------------------------
  263. if defcurly = 0 and curly > 0:curly -= 1
  264. if defcurly = 1:
  265. if straight > 0: straight -= 1
  266. if straight = 0: curly = 2147483647
  267. end
  268. ! WD: Added daily reduction of braids for Maruda Hair Mod
  269. if hbraids > 0: hbraids -= 1
  270. gs 'sweat', 'add', 2
  271. if pcs_tan > 0: pcs_tan -= 1
  272. if prezikmsg = 2: prezikmsg = 3
  273. gs 'fertility', 'birth_control'
  274. if birth_control['think_safe'] ! 1:
  275. stat['safe_day'] = 0
  276. stat['probably_safe_day'] = 0
  277. stat['dangerous_day'] = 0
  278. if cycle > 3:
  279. stat['safe_day'] = 1
  280. elseif cycle = 0 or cycle = 3:
  281. stat['probably_safe_day'] = 1
  282. else
  283. stat['dangerous_day'] = 1
  284. end
  285. end
  286. !!------------------------------------------------------------------------------------------------------------
  287. if pcs_breath = 1:pcs_breath = 0
  288. if cheatNoEat = 1 and dounspell = 1:fat += 15
  289. !!Trauma decay
  290. if mood_trauma > 0: mood_trauma -= 1
  291. !!STD check
  292. if SifacOnce = 1:Sifilis += 1
  293. if GerpesOnce = 1:Gerpes += 1
  294. if TriperOnce = 1:
  295. if Triper > 0:
  296. Triper += 1
  297. end
  298. if TriperOral > 0:
  299. TriperOral += 1
  300. end
  301. If TriperOral > 14 and TriperNapr = 0:
  302. if rand(TriperOral,100) > 80:
  303. TriperOral = 0
  304. if Triper = 0:TriperOnce = 0
  305. TriperOralSigns = 0
  306. end
  307. end
  308. end
  309. if KandidozOnce = 1:Kandidoz += 1
  310. Venera = 0
  311. if SifacOnce = 1: Venera += 1
  312. if GerpesOnce = 1: Venera += 1
  313. if TriperOnce = 1: Venera += 1
  314. !! Fail safe
  315. if ashrinkdays = 0: ashrinkdays = 6
  316. if vshrinkdays = 0: vshrinkdays = 6
  317. if pcs_ass > 1 and ashrink > 0 and analplugIN = 0:
  318. if daystart mod(ashrinkdays) = 0: pcs_ass -= ashrink
  319. if pcs_ass < 0: pcs_ass = 0
  320. end
  321. if pcs_vag > 10 and vshrink > 0:
  322. if daystart mod(vshrinkdays) = 0: pcs_vag -= vshrink
  323. if pcs_vag < 0: pcs_vag = 0
  324. end
  325. lipkoef -= rand(0,1)
  326. if lipkoef <= 0: lipkoef = 0
  327. if isprok = 1 or isprokp = 1:
  328. isprok_lastday = 1
  329. else
  330. isprok_lastday = 0
  331. end
  332. if Enable_autotampon = 0 and isprok = 1: isprok = 0 & 'You threw away your used tampon.'
  333. if Enable_autotampon = 0 and isprokp = 1:isprokp = 0 & 'You threw away your used sanitary pad.'
  334. if preg = 1:
  335. pregtime = pregchem / 24
  336. if pregtimes = 0:pregtimes = 1
  337. elseif preg = 2 and pregminut < totminut:
  338. if Enable_nogameover = 0 :
  339. cla
  340. *clr
  341. over = 4
  342. MSG '<center><b>A horrible pain shoots through your body.</b></center>'
  343. xgt 'gameover'
  344. exit
  345. else
  346. MSG'<font color=red><B>You should die for giving birth unprepared, but Cheat Mode keeps you Alive.</B></font>'
  347. pregminut = totminut + 1440
  348. end
  349. elseif preg = 0:
  350. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A14'
  351. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A16'
  352. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A23'
  353. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A28'
  354. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A29'
  355. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A33'
  356. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A34'
  357. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A69'
  358. gs 'shortgs', 'remove_array_element', 'npc_pregtalk','A131'
  359. !{killvar 'pregTalkFamily' -- Do not kill this (Abortion talk).}
  360. killvar 'pcs_pregtalk'
  361. killvar 'pregTalk'
  362. killvar 'pregtime'
  363. killvar 'knowpreg'
  364. killvar 'denypreg'
  365. killvar '$wombthfath'
  366. end
  367. !!------------------------------------------------------------------------------------------------------------
  368. !! Arousal
  369. !!------------------------------------------------------------------------------------------------------------
  370. if $start_type[1] ! 'nomagic':
  371. if pcs_horny < 100:pcs_horny += pcs_vag
  372. else
  373. if stat['think_virgin'] = 1:
  374. razeba = 0
  375. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 10
  376. if pcs_horny > 50:pcs_horny -= 25
  377. elseif stat['think_virgin'] = 0:
  378. if pregtimes = 0:
  379. if age < 18:
  380. razeba = 1
  381. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 5
  382. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 10
  383. if pcs_horny >= 80:pcs_horny -= 20
  384. elseif age >= 18 and age < 21:
  385. razeba = 2
  386. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny -= 1
  387. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 5
  388. if pcs_horny >= 80:pcs_horny -= 10
  389. elseif age >= 21 and age < 25:
  390. razeba = 3
  391. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 1
  392. if pcs_horny > 50 and pcs_horny < 80:pcs_horny -= 1
  393. if pcs_horny >= 80:pcs_horny -= 5
  394. elseif age >= 25 and age < 30:
  395. razeba = 4
  396. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 5
  397. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 1
  398. if pcs_horny >= 80:pcs_horny -= 5
  399. elseif age >= 30:
  400. razeba = 5
  401. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  402. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  403. if pcs_horny >= 80:pcs_horny += 1
  404. end
  405. elseif pregtimes > 0:
  406. if preg = 0:
  407. razeba = 5
  408. if pcs_horny > 0 and pcs_horny <= 50:pcs_horny += 10
  409. if pcs_horny > 50 and pcs_horny < 80:pcs_horny += 5
  410. if pcs_horny >= 80:pcs_horny += 1
  411. elseif preg > 0:
  412. razeba = 6
  413. if pcs_horny < 100:pcs_horny += pregchem / 240
  414. end
  415. end
  416. end
  417. end
  418. if pcs_horny < 0:pcs_horny = 0
  419. !!------------------------------------------------------------------------------------------------------------
  420. !reset Natasha Belova''s clothes
  421. if NatbelQW['seethroughwearing'] = 1: NatbelQW['seethroughwearing'] = 0
  422. !!------------------------------------------------------------------------------------------------------------
  423. !counter for Dimka avoidance
  424. if dimaFilm = 1 and dimaRudeBlock = 0:
  425. nodimkaK += 1
  426. DimkaWarnedToday = 0
  427. end
  428. !!------------------------------------------------------------------------------------------------------------
  429. !!Fame degradation
  430. gs 'fame', 'deg'
  431. !!Traits
  432. gs 'traits', 'overnight'
  433. !!------------------------------------------------------------------------------------------------------------
  434. !! Clothing wear and tear
  435. gs 'starenie'
  436. !!cocaine reduction
  437. if nark > 60:
  438. nark = 60
  439. elseif nark > 30:
  440. nark -= 3
  441. elseif nark > 0:
  442. nark -= 1
  443. end
  444. if pregchem > 240:fat += 1
  445. !!------------------------------------------------------------------------------------------------------------
  446. !! Pain
  447. !!------------------------------------------------------------------------------------------------------------
  448. if pain['head'] > 0:pain['head'] -= rand(1,3)
  449. if pain['hair'] > 0:pain['hair'] -= rand(1,3)
  450. if pain['ears'] > 0:pain['ears'] -= rand(1,3)
  451. if pain['eyebrows'] > 0:pain['eyebrows'] -= rand(1,3)
  452. if pain['eyes'] > 0:pain['eyes'] -= rand(1,3)
  453. if pain['cheeks'] > 0:pain['cheeks'] -= rand(1,3)
  454. if pain['nose'] > 0:pain['nose'] -= rand(1,3)
  455. if pain['mouth'] > 0:pain['mouth'] -= rand(1,3)
  456. if pain['lips'] > 0:pain['lips'] -= rand(1,3)
  457. if pain['tongue'] > 0:pain['tongue'] -= rand(1,3)
  458. if pain['throat'] > 0:pain['throat'] -= rand(1,3)
  459. if pain['neck'] > 0:pain['neck'] -= rand(1,3)
  460. if pain['back'] > 0:pain['back'] -= rand(1,3)
  461. if pain['asscheeks'] > 0:pain['asscheeks'] -= rand(1,3)
  462. if pain['asshole'] > 0:pain['asshole'] -= rand(1,3)
  463. if pain['hips'] > 0:pain['hips'] -= rand(1,3)
  464. if pain['thighs'] > 0:pain['thighs'] -= rand(1,3)
  465. if pain['legL'] > 0:pain['legL'] -= rand(1,3)
  466. if pain['legR'] > 0:pain['legR'] -= rand(1,3)
  467. if pain['feet'] > 0:pain['feet'] -= rand(1,3)
  468. if pain['toes'] > 0:pain['toes'] -= rand(1,3)
  469. if pain['shoulders'] > 0:pain['shoulders'] -= rand(1,3)
  470. if pain['armL'] > 0:pain['armL'] -= rand(1,3)
  471. if pain['armR'] > 0:pain['armR'] -= rand(1,3)
  472. if pain['hands'] > 0:pain['hands'] -= rand(1,3)
  473. if pain['fingers'] > 0:pain['fingers'] -= rand(1,3)
  474. if pain['chest'] > 0:pain['chest'] -= rand(1,3)
  475. if pain['breasts'] > 0:pain['breasts'] -= rand(1,3)
  476. if pain['nipples'] > 0:pain['nipples'] -= rand(1,3)
  477. if pain['ribs'] > 0:pain['ribs'] -= rand(1,3)
  478. if pain['tummy'] > 0:pain['tummy'] -= rand(1,3)
  479. if pain['pubic'] > 0:pain['pubic'] -= rand(1,3)
  480. if pain['vaginal'] > 0:pain['vaginal'] -= rand(1,3)
  481. if pain['labia'] > 0:pain['labia'] -= rand(1,3)
  482. if pain['clitoris'] > 0:pain['clitoris'] -= rand(1,3)
  483. if pain['urethra'] > 0:pain['urethra'] -= rand(1,3)
  484. if pain['cervix'] > 0:pain['cervix'] -= rand(1,3)
  485. if painpub = 2:
  486. if painpubday + 5 < daystart:
  487. $painpub = 'Your vulva is painfully sore.'
  488. painpub = 1
  489. painpubday = daystart
  490. elseif painpubday + 5 >= daystart:
  491. $painpub = 'Your vulva is painfully sore.'
  492. end
  493. elseif painpub = 1:
  494. if painpubday + 5 < daystart:
  495. $painpub = ''
  496. painpub = 0
  497. painpubday = daystart
  498. elseif painpubday + 5 >= daystart:
  499. $painpub = 'Your vulva is a little sore.'
  500. end
  501. end
  502. prezikProver += 1
  503. if pirs_pain_ton > 0:pirs_pain_ton -= 1
  504. if shorthair = 1:
  505. shorthairday += 1
  506. if shorthairday >= 45:shorthairday = 0 & shorthair = 0
  507. end
  508. !!------------------------------------------------------------------------------------------------------------
  509. !!Resetting the counter for relationship modifications that are limited in how many time a day they can be applied.
  510. killvar 'npc_rel_daily'
  511. !!Keeping Christina hating Sveta
  512. gs 'Zvereva_events', 'cikl'
  513. !!if Vitek''s ex he never forgives her
  514. if kotovLoveQW = -1:
  515. gs 'npc_relationship', 'set', 'A9', '0'
  516. end
  517. !!Updating Katja''s variables.
  518. gs 'katja_procedural', 'cikl'
  519. if npc_rel['A69'] > 60 and rand(0,3) = 0:npc_rel['A69'] -= 1
  520. !!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.
  521. gs 'soniadisco', 'cikl'
  522. dmishaevent = 0
  523. if Gspravka <= 0 and GspravkaT = 1:GspravkaT = 0 & Gspravka = 0
  524. if GspravkaT = 1:Gspravka -= 1
  525. if BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] = 30:BurgerQW['IlyQW'] = 3
  526. if BurgerQW['IlyQW'] = 2 and BurgerQW['IlyQWPoliceDayCount'] > 0 and BurgerQW['IlyQWPoliceDayCount'] < 30:BurgerQW['IvanQWPoliceDayCount'] += 1
  527. !!remove degradation for inhibition
  528. inhib_flr = inhib_lvl
  529. gs 'stat_sklattrib', 'daycall'
  530. !Update body measurements and base appearnce
  531. gs 'body', 'DailyUpdate'
  532. gs 'AppearanceSystem', 'UpdateBaseAppearnce'
  533. gs 'body_desc'
  534. if husband > 0 and husbandrink ! 11:husbandrink = rand(0, 10)
  535. !!Pussy_Kats job settings
  536. inWorkYoungShop = 0
  537. if week = 1 and young_shop_work = 100: young_shop_work = 1
  538. if week = 5 and young_shop_work1 = 100: young_shop_work1 = 1
  539. if week = 1 and young_shop_work2 = 100: young_shop_work2 = 1
  540. husbandsexday = 0
  541. borsexkol = 0
  542. givisexday = 0
  543. if shantsr > 0:
  544. pay = shantsr * 5000
  545. karta += pay
  546. shantsr = 0
  547. end
  548. if shantbog > 0:
  549. :shantftb
  550. shantftbgrand = rand(0, 10)
  551. if shantftbgrand > 2:
  552. shantpopala += 1
  553. shantbog -= 1
  554. if shantbog > 0:jump 'shantftb'
  555. elseif shantftbgrand <= 2:
  556. karta += 30000
  557. shantbog -= 1
  558. if shantbog > 0:jump 'shantftb'
  559. end
  560. end
  561. petersexday = 0
  562. klismaday1 = 0
  563. !!ugly duckling start becoming a swan
  564. if uglyduck_flag = 1 and hotcat >= 5:
  565. killvar 'uglyduck_flag'
  566. gs 'npc_relationship', 'socialgroup_setting_boys', 10, 10, 10, 10, 0, 0
  567. grupvalue[1] += 100
  568. old_grupvalue[1] += 100
  569. end
  570. !! Resetting relationships that go over the max
  571. :toptemprel
  572. if temprel < aarraynumber:
  573. temprel +=1
  574. if npc_rel['A'+'<<temprel>>'] > 100:npc_rel['A'+'<<temprel>>'] = 100
  575. jump 'toptemprel'
  576. end
  577. killvar 'temprel'
  578. gs 'bank', 'cikl'
  579. killvar 'holyday'
  580. killvar 'kanikuli'
  581. killvar 'pcs_ate'
  582. killvar 'pcs_drank'
  583. !! 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
  584. !!sisboyparty
  585. !!-1 - don''t go to the party
  586. !!0 - don''t know about parties
  587. !!1 - knows about the parties
  588. !!2 - agreed to go to the party
  589. !!3 - Missed the party
  590. !!suspension ends
  591. if suspended['day'] = daystart: suspended['on'] = 0
  592. if mid($start_type,1,2) = 'sg':
  593. !!Party refresh if you didn''t see sis
  594. if week = 1 and sisboyparty ! 2:
  595. if sisterQW['party'] = -1: sisterQW['party'] = 0
  596. if sisboypartyQW >= 2 and sisboyparty > 0:
  597. sisboyparty_day = daystart + rand(3,5)
  598. end
  599. end
  600. if sisboyparty = 2 and sisboyparty_day + 1 < daystart: sisboyparty = 3
  601. if SchoolAtestat = 0 and SchoolBlock = 0:
  602. if month = 12 and day > 25:
  603. if day < 31:
  604. $holyday = '<b>Winter Break in <<32-day>> days.</b>'
  605. else
  606. $holyday = '<b>Winter Break starts tomorrow.</b>'
  607. end
  608. elseif month = 1 and day <= 15:
  609. kanikuli = 2
  610. if day < 13:
  611. $holyday = '<b>Winter Break.</b>'
  612. elseif day < 15:
  613. $holyday = '<b>Winter Break ends in <<16-day>> days.</b>'
  614. else
  615. $holyday = '<b>Last day of Winter Break.</b>'
  616. end
  617. elseif month = 3 and day > 13:
  618. if day < 19:
  619. $holyday = '<b>Spring Break starts in <<20-day>> days.</b>'
  620. elseif day = 19:
  621. $holyday = '<b>Spring Break starts tomorrow.</b>'
  622. elseif day >= 20 and day <= 26:
  623. kanikuli = 3
  624. if day < 24:
  625. $holyday = '<b>Spring Break.</b>'
  626. elseif day < 26:
  627. $holyday = '<b>Spring Break ends in <<27-day>> days.</b>'
  628. else
  629. $holyday = '<b>Last day of Spring Break.</b>'
  630. end
  631. end
  632. elseif month = 5:
  633. if year = 2017:
  634. if day = 25:
  635. kanikuli = 6
  636. SchoolAtestat = -1
  637. $holyday = '<b>Your graduation is today. Be there by 8:00.</b>'
  638. elseif day = 24:
  639. $holyday = '<b>Your graduation is tomorrow. Be there by 8:00.</b>'
  640. elseif day >= 19:
  641. $holyday = '<b>Your graduation is in <<26-day>> days.</b>'
  642. end
  643. elseif day >= 25:
  644. if day = 31:
  645. $holyday = '<b>Summer Break starts tomorrow.</b>'
  646. else
  647. $holyday = '<b>Summer Break starts in <<32-day>> days.</b>'
  648. end
  649. end
  650. elseif month = 6 or month = 7 or month = 8:
  651. kanikuli = 4
  652. if month = 8 and day >= 25:
  653. if day = 31:
  654. $holyday = '<b>Last day of Summer Break.</b>'
  655. else
  656. $holyday = '<b>Summer Break ends in <<32-day>> days.</b>'
  657. end
  658. else
  659. $holyday = '<b>Summer Break.</b>'
  660. end
  661. !! 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.'
  662. killvar 'first_time_outside_in_cold_weather'
  663. killvar 'first_time_doing_basketball'
  664. killvar 'first_time_spring_football_match'
  665. !! end inc
  666. elseif month = 10 and day >= 29:
  667. $holyday = '<b>Autumn Break starts in <<35-day>> days.</b>'
  668. elseif month = 11:
  669. if day < 3:
  670. $holyday = '<b>Autumn Break starts in <<4-day>> days.</b>'
  671. elseif day = 3:
  672. $holyday = '<b>Autumn Break starts tomorrow.</b>'
  673. elseif day < 6:
  674. kanikuli = 1
  675. $holyday = '<b>Autumn Break.</b>'
  676. elseif day < 11:
  677. kanikuli = 1
  678. $holyday = '<b>Autumn Break ends in <<12-day>> days.</b>'
  679. elseif day = 11:
  680. kanikuli = 1
  681. $holyday = '<b>Last day of Autumn Break.</b>'
  682. end
  683. end
  684. if kanikuli = 0 and week < 6:
  685. if week = 1:
  686. !!The start and end values for i have to be changed if more female schoolgirl npcs are added to the game
  687. i = 11
  688. :hotcat_calc_jump
  689. i += 1
  690. if hotcat_rating['A<<i>>'] = 0: jump 'hotcat_calc_jump'
  691. switch_rand = rand(1,100)
  692. if hotcat_movement['A<<i>>'] = 0 and switch_rand < 21:
  693. hotcat_rating['A<<i>>'] -= 1
  694. hotcat_movement['A<<i>>'] -= 1
  695. elseif hotcat_movement['A<<i>>'] = 0 and switch_rand > 80:
  696. hotcat_rating['A<<i>>'] += 1
  697. hotcat_movement['A<<i>>'] += 1
  698. elseif hotcat_movement['A<<i>>'] = 1 and switch_rand > 40:
  699. hotcat_rating['A<<i>>'] -= 1
  700. hotcat_movement['A<<i>>'] -= 1
  701. elseif hotcat_movement['A<<i>>'] = -1 and switch_rand > 40:
  702. hotcat_rating['A<<i>>'] += 1
  703. hotcat_movement['A<<i>>'] += 1
  704. end
  705. if i < 145: jump 'hotcat_calc_jump'
  706. killvar 'i'
  707. killvar 'switch_rand'
  708. end
  709. !! Resetting the late flag
  710. if late = 1: late = 0
  711. end
  712. !!Social grup changes
  713. !!Change from relatonship with other students.
  714. gs 'gschool_socialchg', 'group_student_rel_change'
  715. !!Decay for the school groups
  716. if grupvalue[1] > 0:
  717. grupvalue[1] -= rand(0,1)
  718. else
  719. grupvalue[1] = 0
  720. end
  721. if grupvalue[2] > 0:
  722. grupvalue[2] -= rand(0,1)
  723. else
  724. grupvalue[2] = 0
  725. end
  726. if grupvalue[3] > 0:
  727. grupvalue[3] -= rand(0,1)
  728. else
  729. grupvalue[3] = 0
  730. end
  731. if grupvalue[4] > 0:
  732. grupvalue[4] -= rand(0,1)
  733. else
  734. grupvalue[4] = 0
  735. end
  736. !!Maximum increase for grupvalues is 10 and max decay is 30
  737. if oldgrupvalue_set = 0:
  738. oldgrupvalue_set = 1
  739. old_grupvalue[1] = grupvalue[1]
  740. old_grupvalue[2] = grupvalue[2]
  741. old_grupvalue[3] = grupvalue[3]
  742. old_grupvalue[4] = grupvalue[4]
  743. else
  744. if old_grupvalue[1] + 10 < grupvalue[1]: grupvalue[1] = old_grupvalue[1] + 10
  745. if old_grupvalue[2] + 10 < grupvalue[2]: grupvalue[2] = old_grupvalue[2] + 10
  746. if old_grupvalue[3] + 10 < grupvalue[3]: grupvalue[3] = old_grupvalue[3] + 10
  747. if old_grupvalue[4] + 10 < grupvalue[4]: grupvalue[4] = old_grupvalue[4] + 10
  748. if old_grupvalue[1] - 30 > grupvalue[1]: grupvalue[1] = old_grupvalue[1] - 30
  749. if old_grupvalue[2] - 30 > grupvalue[2]: grupvalue[2] = old_grupvalue[2] - 30
  750. if old_grupvalue[3] - 30 > grupvalue[3]: grupvalue[3] = old_grupvalue[3] - 30
  751. if old_grupvalue[4] - 30 > grupvalue[4]: grupvalue[4] = old_grupvalue[4] - 30
  752. end
  753. !!Limit to max school group values
  754. if grupvalue[1] > 1000: grupvalue[1] = 1000
  755. if grupvalue[2] > 1000: grupvalue[2] = 1000
  756. if grupvalue[3] > 1000: grupvalue[3] = 1000
  757. if grupvalue[4] > 1000: grupvalue[4] = 1000
  758. old_grupvalue[1] = grupvalue[1]
  759. old_grupvalue[2] = grupvalue[2]
  760. old_grupvalue[3] = grupvalue[3]
  761. old_grupvalue[4] = grupvalue[4]
  762. elseif SchoolAtestat = -1:
  763. if owned_property['parents_home'] = 0:
  764. $holyday = '<b>You missed your graduation. You could pick up your diploma at the school.</b>'
  765. else
  766. $holyday = '<b>You missed your graduation. Maybe your mother picked up your diploma.</b>'
  767. end
  768. end
  769. !!Brother''s dick growth as he gets older
  770. !Commented out till some future time
  771. !if kolka_dick_day + 30 < daystart and npc_dick['A34'] < 26:
  772. ! kolka_dick_day = daystart
  773. ! npc_dick['A34'] += 1
  774. !end
  775. !if npc_dick['A34'] < 20 and npc_dick['A34'] > 16:
  776. ! $npc_thdick['A34'] = 'well proportioned'
  777. !elseif npc_dick['A34'] >= 20 and npc_dick['A34'] <= 26:
  778. ! $npc_thdick['A34'] = 'thick'
  779. !end
  780. !! Calcualting the increase/decreas of the grade each week.
  781. gs 'gschool', 'weekly grade update'
  782. end
  783. killvar 'natholi'
  784. if month = 1 and day >= 1 and day <= 8:
  785. $natholi = 'New Year holidays'
  786. natholi = 1
  787. if day = 1:$natholi += ', New Year'
  788. if day = 7:$natholi += ', Christmas'
  789. end
  790. if month = 2 and day = 23:$natholi = 'Defender of Fatherland Day' & natholi = 1
  791. if month = 3 and day = 8:$natholi = 'Women''s Day' & natholi = 1
  792. if month = 5 and day = 1:$natholi = 'Spring and Labor Day' & natholi = 1
  793. if month = 5 and day = 2:$natholi = 'National holiday' & natholi = 1
  794. if month = 5 and day = 9:$natholi = 'Victory Day' & natholi = 1
  795. if month = 6 and day = 12:$natholi = 'Russia Day' & natholi = 1
  796. if month = 6 and day = 13:$natholi = 'National holiday' & natholi = 1
  797. if month = 11 and day = 4:$natholi = 'Unity Day' & natholi = 1
  798. if natholi = 1:
  799. if $holyday ! '': $holyday += '<br>'
  800. $holyday += $natholi
  801. end
  802. !!------------------------------------------------------------------------------------------------------------------------
  803. !!Setting the weeks in the university semester and makeing sure that the gades are calculated at the right times
  804. gs 'uni_lessons', 'cikl'
  805. !!------------------------------------------------------------------------------------------------------------------------
  806. !!resetting moisturizer so it can be used in the morning regardless
  807. item_moisturizer_time = totminut
  808. if bcream_used >= 1:
  809. bcream_used = 0
  810. temp = rand(0,max(nbsize-genbsize+5,5)) / max(nbsize-genbsize,1)
  811. if temp > 0: temp = 1
  812. nbsize += temp
  813. if temp > 0:'Feels like your breasts have grown slightly.'
  814. end
  815. if steroid_dose >= 1:
  816. if lashair < 1:
  817. pcs_pubes += steroid_dose
  818. pcs_leghair += steroid_dose
  819. end
  820. steroid_dose = 0
  821. end
  822. if aphrodisiac_overdose = 1:aphrodisiac_overdose = 0
  823. if aphrodisiac_timer ! 0:aphrodisiac_timer = 0
  824. if mentats_dose = 1:
  825. mentats_dose = 0
  826. elseif mentats_dose > 1:
  827. pain['head'] += 20 * mentats_dose
  828. mentats_dose = 0
  829. end
  830. gs 'gaddvor','cikl'
  831. loc_count = ARRSIZE('$CloLosLoc')
  832. i = loc_count - 1
  833. :loopCloLoc
  834. $CloLoc = $CloLosLoc[i]
  835. CloLostOn = CloLosDay[$CloLoc]
  836. if CloLostOn + RAND(7,14) < daystart :
  837. gs 'clothing', 'recover_lost_clothes', $CloLoc, 2
  838. end
  839. i -=1
  840. if i > -1 :jump 'loopCloLoc'
  841. if vidageday > 1080: vidageday = 1080
  842. if blizoruk < 10: blizoruk -= 1
  843. if blizoruk < 100: blizoruk -= rand(0,1)
  844. if blizoruk < 0: blizoruk = 0
  845. !!------------------------------------------------------------------------------------------------------------------------
  846. !!C and b array cleaning
  847. if InSleep = 1: gs 'npc','cleanarrays'
  848. !!------------------------------------------------------------------------------------------------------------
  849. !!-------------Therapist Route schedule variables----------------------------------------------------------------------
  850. !! 23 = kitchen
  851. !! 24 = Living room
  852. !! 25 = bathroom
  853. !! 26 = Master''s room
  854. if therapistWantsSlave > 0:
  855. annaclean1 = rand(23,26)
  856. end
  857. !!------------------------------------------------------------------------------------------------------------
  858. !!-------------Family Dog----------------------------------------------------------------------
  859. if $status['dog'] ! 'blocked' and rex['owned'] = 1:
  860. rex['timer_day'] = daystart
  861. !!Daily decay
  862. rex['relationship'] -= 1
  863. !!Chores
  864. if cheat['dog_rel'] = 0 and rex['gadukino_day'] ! daystart:
  865. npc_rel['A29'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  866. rex['relationship'] -= iif(rex['count_walk'] + rex['count_feed'] = 0, -1, (rex['count_walk'] + rex['count_feed']))
  867. end
  868. rex['count_run'] = 0
  869. rex['count_walk'] = rex['count_walk_base']
  870. rex['timer_walk'] = 0
  871. rex['count_feed'] = rex['count_feed_base']
  872. rex['timer_feed'] = 0
  873. if week = 1:
  874. if cheat['dog_rel'] = 0:
  875. npc_rel['A29'] -= rex['count_bath']
  876. rex['relationship'] -= (rex['count_bath'] * 5)
  877. end
  878. rex['count_bath'] = rex['count_bath_base']
  879. end
  880. end
  881. !!------------------------------------------------------------------------------------------------------------
  882. !!---------- School related schedule -------------------------------------------------------------------------
  883. starlets_on = iif( ( (week = 5 and odd_week = 0) or (week = 1 or week = 3 or week >= 6) ) and natholi = 0,1,0)
  884. 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)
  885. if starlets['late_message'] = 1: starlets['late_message'] = 0
  886. !!------------------------------------------------------------------------------------------------------------
  887. !!---------- Starlet Content ---------------------------------------------------------------------------------
  888. if AlbinaQW['StarletsJoined'] > 0 and AlbinaQW['StarletsShutDown'] = 0 and npc_pregtalk['A23'] = 0:
  889. if starlets_practice = daystart - 1:
  890. starlets_missed = 1
  891. starlets_practice = 0
  892. end
  893. if starlets_on = 1: starlets_practice = daystart
  894. end
  895. if month = 9 and day = 16 and AlbinaQW['ParkRally'] = 0: AlbinaQW['ParkRally'] = 1
  896. if month = 10 and day = 16 and AlbinaQW['ParkRally'] = 1: AlbinaQW['ParkRally'] = 2
  897. 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
  898. !!------------------------------------------------------------------------------------------------------------
  899. !!-------------Music career related variables and calculations------------------------------------------------
  900. !! Setting Del Parco initial variables
  901. if daystart < 2:
  902. ml_delparcoQW['Stage'] = 0
  903. ml_delparcoQW['Zariyah Trust'] = 50
  904. end
  905. !! How many hours a day can Sveta perform. It maxes out at 3.
  906. !! Using the actual skill level, not the one modified by Attributes because that is more realistic for this.
  907. ml_performance['max_perform_minutes'] = pcs_instrmusic + pcs_vokal
  908. ml_performance['performed_minutes'] = 0
  909. !! Checking for missed guitar lesson
  910. if ml_guitarlesson['nextlesson'] < daystart and ml_guitarlesson['lessonday'] ! 8:
  911. ml_guitarlesson['lessonday'] = 8
  912. end
  913. !! Calculating the fame increase from the uploaded songs and removing ones that do not effect fame anymore to keep the
  914. !! data at a sane level
  915. if ml_onlinesongcount > 0:
  916. i = 0
  917. j = -1
  918. :looponlinesongs
  919. !! this so every song counts only every 7 days and only for a limited number of weeks
  920. if ml_onlinesong_freshness[i] > 0:
  921. j += 1
  922. ml_tempsong_freshness[j] = ml_onlinesong_sfreshness[i]
  923. ml_tempsong_lastcalcday[j] = ml_onlinesong_lastcalcday[i]
  924. ml_tempsong_hotcat[j] = ml_onlinesong_hotcat[i]
  925. ml_tempsong_skilllevel[j] = ml_onlinesong_skilllevel[i]
  926. ml_tempsong_uploaded[j] = ml_onlinesong_uploaded[i]
  927. *nl
  928. if ml_tempsong_lastcalcday[j] <= (daystart - 7) and ml_tempsong_uploaded = 1:
  929. gs 'fame', 'city', 'music', rand(0, ml_tempsong_freshness[j]/100)
  930. ml_tempsong_freshness[j] -= 10
  931. ml_tempsong_lastcalcday[j] = daystart
  932. end
  933. end
  934. i += 1
  935. if i < ml_onlinesongcount: jump 'looponlinesongs'
  936. killvar 'ml_onlinesong_freshness'
  937. killvar 'ml_onlinesong_lastcalcday'
  938. killvar 'ml_onlinesong_hotcat'
  939. killvar 'ml_onlinesong_skilllevel'
  940. killvar 'ml_onlinesong_uploaded'
  941. i = 0
  942. if j >= 0:
  943. :looprebuildsongs
  944. ml_onlinesong_freshness[i] = ml_tempsong_freshness[i]
  945. ml_onlinesong_hotcat[i] = ml_tempsong_hotcat[i]
  946. ml_onlinesong_lastcalcday[i] = ml_tempsong_lastcalcday[i]
  947. ml_onlinesong_skilllevel[i] = ml_tempsong_skilllevel[i]
  948. ml_onlinesong_uploaded[i] = ml_tempsong_uploaded[i]
  949. i += 1
  950. if i <= j: jump 'looprebuildsongs'
  951. end
  952. killvar 'ml_tempsong_freshness'
  953. killvar 'ml_tempsong_lastcalcday'
  954. killvar 'ml_tempsong_hotcat'
  955. killvar 'ml_tempsong_skilllevel'
  956. killvar 'ml_tempsong_uploaded'
  957. end
  958. !! Repertoire quality decay if no practice is done
  959. if ml_performance['set_lastpracticeday'] ! (daystart-1): repertoire_quality -= 2
  960. !!------------- Prostitution - WLife integration related stuff ------------------------------------------------
  961. !! Check if people will start to seek Sveta randomly for services, based on her reputation
  962. gs 'prostitution_functions', 'check_for_wlife'
  963. if prostitute['blocked'] = 0: gs 'prostitution_functions', 'set_pavlovsk_prostitute'
  964. --- cikl ---------------------------------