From 708b001f88aad5308ac9cf319ad079227452530a Mon Sep 17 00:00:00 2001 From: Pregmodder <pregmodder@gmail.com> Date: Sat, 6 Oct 2018 00:02:34 -0400 Subject: [PATCH] skill gain tweaks --- devNotes/twine JS.txt | 2 +- src/endWeek/saServant.tw | 2 +- src/uncategorized/brothelReport.tw | 2 +- src/uncategorized/cellblockReport.tw | 2 +- src/uncategorized/clinicReport.tw | 2 +- src/uncategorized/clubReport.tw | 2 +- src/uncategorized/dairyReport.tw | 2 +- src/uncategorized/saBeYourHeadGirl.tw | 2 +- src/uncategorized/saGuardsYou.tw | 2 +- src/uncategorized/saRecruitGirls.tw | 2 +- src/uncategorized/saServeThePublic.tw | 2 +- src/uncategorized/saWhore.tw | 2 +- src/uncategorized/schoolroomReport.tw | 2 +- src/uncategorized/servantsQuartersReport.tw | 2 +- src/uncategorized/spaReport.tw | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index 6826d2ed2aa..65fb889bfd3 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -11297,7 +11297,7 @@ window.saServant = function saServant(slave) { } else if (slave.skillS >= V.masteredXP) { t += ` ${He} has experience with house keeping from working for you, making ${him} more effective.`; } else { - slave.skillS += jsRandom(1, ((slave.intelligence+slave.intelligenceImplant) / 10)); + slave.skillS += jsRandom(1,Math.ceil((slave.intelligence+slave.intelligenceImplant)/15) + 8); } if (slave.fetishStrength > 60) { diff --git a/src/endWeek/saServant.tw b/src/endWeek/saServant.tw index 72499caedac..5718e528e0e 100644 --- a/src/endWeek/saServant.tw +++ b/src/endWeek/saServant.tw @@ -75,7 +75,7 @@ window.saServant = function saServant(slave) { } else if (slave.skillS >= V.masteredXP) { t += ` ${He} has experience with house keeping from working for you, making ${him} more effective.`; } else { - slave.skillS += jsRandom(1, ((slave.intelligence+slave.intelligenceImplant) / 10)); + slave.skillS += jsRandom(1,Math.ceil((slave.intelligence+slave.intelligenceImplant)/15) + 8); } if (slave.fetishStrength > 60) { diff --git a/src/uncategorized/brothelReport.tw b/src/uncategorized/brothelReport.tw index 02a7e9d3223..d7dc5a1df3d 100644 --- a/src/uncategorized/brothelReport.tw +++ b/src/uncategorized/brothelReport.tw @@ -84,7 +84,7 @@ She has experience from working for you that helps her in the seedy business of selling other people's bodies for sex. <<set $madamCashBonus += 0.05>> <<else>> - <<set $slaves[_FLs].skillMD += random(1,($Madam.intelligence+$Madam.intelligenceImplant)/10)>> + <<set $slaves[_FLs].skillMD += random(1,Math.ceil(($Madam.intelligence+$Madam.intelligenceImplant)/15) + 8)>> <</if>> <<if ($Madam.intelligence+$Madam.intelligenceImplant > 15)>> She is a clever manager. diff --git a/src/uncategorized/cellblockReport.tw b/src/uncategorized/cellblockReport.tw index fe286c49522..45f29855436 100644 --- a/src/uncategorized/cellblockReport.tw +++ b/src/uncategorized/cellblockReport.tw @@ -63,7 +63,7 @@ <<set _devBonus++, _trustMalus++, _idleBonus++>> She has experience with detecting security issues and grinding down potential miscreants from working for you, making her more effective. <<else>> - <<set $slaves[_FLs].skillWA += random(1,($Wardeness.intelligence+$Wardeness.intelligenceImplant)/10)>> + <<set $slaves[_FLs].skillWA += random(1,Math.ceil(($Wardeness.intelligence+$Wardeness.intelligenceImplant)/15) + 8)>> <</if>> <<if $Wardeness.fetish == "sadist">> She uses the prisoners to gratify her sadism, terrifying them and quickly breaking their resistance. diff --git a/src/uncategorized/clinicReport.tw b/src/uncategorized/clinicReport.tw index 761f9f1df5c..754f86b6470 100644 --- a/src/uncategorized/clinicReport.tw +++ b/src/uncategorized/clinicReport.tw @@ -56,7 +56,7 @@ She has experience with medicine from working for you, and can often recognize conditions before even the medical scanners can. <<set _idleBonus++, _healthBonus++>> <<else>> - <<set $slaves[_FLs].skillNU += random(1,($Nurse.intelligence+$Nurse.intelligenceImplant)/10)>> + <<set $slaves[_FLs].skillNU += random(1,Math.ceil(($Nurse.intelligence+$Nurse.intelligenceImplant)/15) + 8)>> <</if>> <<if ($Nurse.fetish == "dom")>> She raps out commands with the confidence of long and partly sexual experience, so patients are inclined to follow even unpleasant medical instructions. diff --git a/src/uncategorized/clubReport.tw b/src/uncategorized/clubReport.tw index 83f4167cdb4..35580c91c68 100644 --- a/src/uncategorized/clubReport.tw +++ b/src/uncategorized/clubReport.tw @@ -94,7 +94,7 @@ She has musical experience from working for you, giving her tracks actual depth. <<set $DJRepBonus += 0.05>> <<else>> - <<set $slaves[_FLs].skillDJ += random(1,($DJ.intelligence+$DJ.intelligenceImplant)/10)>> + <<set $slaves[_FLs].skillDJ += random(1,Math.ceil(($DJ.intelligence+$DJ.intelligenceImplant)/15) + 8)>> <</if>> <<if (_DL < 10)>> <<set $slavesGettingHelp = 0>> diff --git a/src/uncategorized/dairyReport.tw b/src/uncategorized/dairyReport.tw index 989bfa1ae26..39eaded1d45 100644 --- a/src/uncategorized/dairyReport.tw +++ b/src/uncategorized/dairyReport.tw @@ -161,7 +161,7 @@ <<set $milkmaidHealthBonus++>> She has experience dealing with milk animals from working for you. <<else>> - <<set $slaves[_FLs].skillMM += random(1,($Milkmaid.intelligence+$Milkmaid.intelligenceImplant)/10)>> + <<set $slaves[_FLs].skillMM += random(1,Math.ceil(($Milkmaid.intelligence+$Milkmaid.intelligenceImplant)/15) + 8)>> <</if>> <<if ($dairyStimulatorsSetting < 2) && ($Milkmaid.dick > 4) && (canPenetrate($Milkmaid))>> <<for _dI = 0; _dI < _DL; _dI++>> diff --git a/src/uncategorized/saBeYourHeadGirl.tw b/src/uncategorized/saBeYourHeadGirl.tw index a18fd46af5d..44916cef0c5 100644 --- a/src/uncategorized/saBeYourHeadGirl.tw +++ b/src/uncategorized/saBeYourHeadGirl.tw @@ -168,5 +168,5 @@ <</if>> <<if !setup.HGCareers.includes($slaves[$i].career) && $slaves[$i].skillWA < $masteredXP>> - <<set $slaves[$i].skillHG += random(1,($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/10)>> + <<set $slaves[$i].skillHG += random(1,Math.ceil(($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/15) + 8)>> <</if>> diff --git a/src/uncategorized/saGuardsYou.tw b/src/uncategorized/saGuardsYou.tw index 4a266666b0e..3ee0279454a 100644 --- a/src/uncategorized/saGuardsYou.tw +++ b/src/uncategorized/saGuardsYou.tw @@ -17,7 +17,7 @@ carries arms in your defense. <<elseif $slaves[$i].skillBG >= $masteredXP>> $He has experience in personal defense from working for you. <<else>> - <<set $slaves[$i].skillBG += random(1,($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/10)>> + <<set $slaves[$i].skillBG += random(1,Math.ceil(($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/15) + 8)>> <</if>> <<if ($slaves[$i].muscles > 30) && ($slaves[$i].muscles <= 95)>> diff --git a/src/uncategorized/saRecruitGirls.tw b/src/uncategorized/saRecruitGirls.tw index eacac89482b..0950d9ed17b 100644 --- a/src/uncategorized/saRecruitGirls.tw +++ b/src/uncategorized/saRecruitGirls.tw @@ -266,7 +266,7 @@ $He has experience in recruitment from working for you. <<set $recruiterProgress += 2>> <<else>> - <<set $slaves[$i].skillRC += random(1,($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/10)>> + <<set $slaves[$i].skillRC += random(1,Math.ceil(($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/15) + 8)>> <</if>> <<if $slaves[$i].intelligence+$slaves[$i].intelligenceImplant > 50>> diff --git a/src/uncategorized/saServeThePublic.tw b/src/uncategorized/saServeThePublic.tw index 55160c67807..66934dc3b52 100644 --- a/src/uncategorized/saServeThePublic.tw +++ b/src/uncategorized/saServeThePublic.tw @@ -394,7 +394,7 @@ $His appearance attracted $beauty members of the public (<<print Math.trunc($bea <</if>> <<if !setup.entertainmentCareers.includes($slaves[$i].career) && $slaves[$i].skillE < $masteredXP>> - <<set $slaves[$i].skillE += random(1,($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/10)>> + <<set $slaves[$i].skillE += random(1,Math.ceil(($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/15) + 8)>> <</if>> <<if setup.entertainmentCareers.includes($slaves[$i].career)>> $He has experience with entertainment from $his life before $he was a slave, making $him more effective. diff --git a/src/uncategorized/saWhore.tw b/src/uncategorized/saWhore.tw index c7b32bb7a15..d9ae28d1653 100644 --- a/src/uncategorized/saWhore.tw +++ b/src/uncategorized/saWhore.tw @@ -379,7 +379,7 @@ $His appearance attracted $beauty customers (<<print Math.trunc($beauty/7)>> a d <</if>> <<if !setup.whoreCareers.includes($slaves[$i].career) && $slaves[$i].skillW < $masteredXP>> - <<set $slaves[$i].skillW += random(1,($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/10)>> + <<set $slaves[$i].skillW += random(1,Math.ceil(($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/15) + 8)>> <</if>> <<if setup.whoreCareers.includes($slaves[$i].career)>> $He has sex work experience from $his life before $he was a slave, making $him more effective. diff --git a/src/uncategorized/schoolroomReport.tw b/src/uncategorized/schoolroomReport.tw index cbd5f686c2f..2df38e4a63a 100644 --- a/src/uncategorized/schoolroomReport.tw +++ b/src/uncategorized/schoolroomReport.tw @@ -56,7 +56,7 @@ She has experience with students and learning from working for you, making her more effective. <<set _idleBonus++>> <<else>> - <<set $slaves[_FLs].skillTE += random(1,($Schoolteacher.intelligence+$Schoolteacher.intelligenceImplant)/10)>> + <<set $slaves[_FLs].skillTE += random(1,Math.ceil(($Schoolteacher.intelligence+$Schoolteacher.intelligenceImplant)/15) + 8)>> <</if>> <<if ($Schoolteacher.visualAge > 35)>> Her age earns her the respect of her students. diff --git a/src/uncategorized/servantsQuartersReport.tw b/src/uncategorized/servantsQuartersReport.tw index c7647790de3..a22031f0ffe 100644 --- a/src/uncategorized/servantsQuartersReport.tw +++ b/src/uncategorized/servantsQuartersReport.tw @@ -92,7 +92,7 @@ <<set $stewardessBonus += 25>> She has applicable experience with daily sums and organizational trifles from working for you. <<else>> - <<set $slaves[_FLs].skillST += random(1,($Stewardess.intelligence+$Stewardess.intelligenceImplant)/10)>> + <<set $slaves[_FLs].skillST += random(1,Math.ceil(($Stewardess.intelligence+$Stewardess.intelligenceImplant)/15) + 8)>> <</if>> <<if ($Stewardess.actualAge > 35)>> <<set $stewardessBonus += 25>> diff --git a/src/uncategorized/spaReport.tw b/src/uncategorized/spaReport.tw index 5be287b0f09..0c4dae3efe4 100644 --- a/src/uncategorized/spaReport.tw +++ b/src/uncategorized/spaReport.tw @@ -53,7 +53,7 @@ She has experience with counseling from working for you, making her better at building a rapport with troubled slaves, and giving her a better chance of softening flaws into beneficial quirks. <<set _bonusToggle = 1, _idleBonus++>> <<else>> - <<set $slaves[_FLs].skillAT += random(1,($Attendant.intelligence+$Attendant.intelligenceImplant)/10)>> + <<set $slaves[_FLs].skillAT += random(1,Math.ceil(($Attendant.intelligence+$Attendant.intelligenceImplant)/15) + 8)>> <</if>> <<if ($Attendant.eyes == -2)>> Her blindness allows her to deeply connect with her girls. -- GitLab