Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
macaronideath
fc-pregmod
Commits
8f918327
Commit
8f918327
authored
6 years ago
by
Pregmodder
Browse files
Options
Downloads
Patches
Plain Diff
fix to generateGenetics.tw
parent
ac4a736a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/js/generateGenetics.tw
+6
-3
6 additions, 3 deletions
src/js/generateGenetics.tw
src/pregmod/sePlayerBirth.tw
+3
-10
3 additions, 10 deletions
src/pregmod/sePlayerBirth.tw
with
9 additions
and
13 deletions
src/js/generateGenetics.tw
+
6
−
3
View file @
8f918327
...
@@ -8,7 +8,7 @@ window.generateGenetics = (function() {
...
@@ -8,7 +8,7 @@ window.generateGenetics = (function() {
let activeMother;
let activeMother;
let father;
let father;
let activeFather;
let activeFather;
let V
let V
;
function generateGenetics(actor1, actor2, x) {
function generateGenetics(actor1, actor2, x) {
V = State.variables;
V = State.variables;
...
@@ -41,6 +41,8 @@ window.generateGenetics = (function() {
...
@@ -41,6 +41,8 @@ window.generateGenetics = (function() {
genes.sexualFlaw = setSexualFlaw(father, mother);
genes.sexualFlaw = setSexualFlaw(father, mother);
genes.behavioralFlaw = setBehavioralFlaw(father, mother);
genes.behavioralFlaw = setBehavioralFlaw(father, mother);
genes.fetish = setFetish(father, mother);
genes.fetish = setFetish(father, mother);
return genes;
}
}
// gender
// gender
...
@@ -446,6 +448,7 @@ window.generateGenetics = (function() {
...
@@ -446,6 +448,7 @@ window.generateGenetics = (function() {
return Math.clamp(face, -100, 100);
return Math.clamp(face, -100, 100);
}
}
return genes;
return gene
rateGenetic
s;
})();
})();
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/pregmod/sePlayerBirth.tw
+
3
−
10
View file @
8f918327
...
@@ -426,12 +426,8 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
...
@@ -426,12 +426,8 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
<<if _curBabies == 1>>
<<if _curBabies == 1>>
<<if $PC.pregSource < 1 && $PC.pregSource != -1 && $PC.reservedChildren > 0>>
$PC.curBabies[0]
<<set $missingParent = $missingParentID>>
<<set $activeSlave = applyGenetics($PC, $PC.curBabies[0])
<<set $missingParentID-->>
<</if>>
<<include "Generate Child">>
<<if $activeSlave.race == $PC.race>>
<<if $activeSlave.race == $PC.race>>
<<set _PCDegree++>>
<<set _PCDegree++>>
...
@@ -476,10 +472,7 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
...
@@ -476,10 +472,7 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
<<elseif _curBabies > 1>>
<<elseif _curBabies > 1>>
<<set _identicalChildGen = 0, _shiftDegree = 0>>
<<set _identicalChildGen = 0, _shiftDegree = 0>>
<<if $PC.pregSource < 1 && $PC.pregSource != -1 && $PC.reservedChildren > 0>>
<<set $missingParent = $missingParentID>>
<<set $missingParentID-->>
<</if>>
<<for _p = 0; _p < _curBabies; _p++>>
<<for _p = 0; _p < _curBabies; _p++>>
<<if _identicalChildGen == 0>>
<<if _identicalChildGen == 0>>
<<if _p == $PC.curBabies.length-1 && $PC.curBabies.length > 1 && $PC.curBabies[_p].identical == 1>> /* catch for improperly placed identical twin flag to still generate*/
<<if _p == $PC.curBabies.length-1 && $PC.curBabies.length > 1 && $PC.curBabies[_p].identical == 1>> /* catch for improperly placed identical twin flag to still generate*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment