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
0ddcbdfe
Commit
0ddcbdfe
authored
6 years ago
by
Pregmodder
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'upstream/pregmod-newcontent1_0' into pregmod-master
parents
5cee8347
9feb453c
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/storyJS.tw
+13
-0
13 additions, 0 deletions
src/js/storyJS.tw
src/js/wombJS.tw
+13
-1
13 additions, 1 deletion
src/js/wombJS.tw
with
26 additions
and
1 deletion
src/js/storyJS.tw
+
13
−
0
View file @
0ddcbdfe
...
@@ -983,3 +983,16 @@ window.SoftenSexualFlaw = function SoftenSexualFlaw(slave) {
...
@@ -983,3 +983,16 @@ window.SoftenSexualFlaw = function SoftenSexualFlaw(slave) {
}
}
slave.sexualFlaw = "none";
slave.sexualFlaw = "none";
};
};
window.genUUID = function() {
var d = new Date().getTime();
if(Date.now){
d = Date.now(); //high-precision timer
}
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (d + Math.random()*16)%16 | 0;
d = Math.floor(d/16);
return (c=='x' ? r : (r&0x3|0x8)).toString(16);
});
return uuid;
};
This diff is collapsed.
Click to expand it.
src/js/wombJS.tw
+
13
−
1
View file @
0ddcbdfe
...
@@ -87,6 +87,7 @@ window.WombImpregnate = function(actor, fCount, fatherID, age) {
...
@@ -87,6 +87,7 @@ window.WombImpregnate = function(actor, fCount, fatherID, age) {
tf.identical = 0; //Initial, to create property. Updated with actual data during fetalSplit call.
tf.identical = 0; //Initial, to create property. Updated with actual data during fetalSplit call.
tf.splitted = 0; //marker for already splitted fetus.
tf.splitted = 0; //marker for already splitted fetus.
tf.genetics = generateGenetics(actor, fatherID, i+1); //Stored genetic information.
tf.genetics = generateGenetics(actor, fatherID, i+1); //Stored genetic information.
tf.ID = genUUID();
try {
try {
if (actor.womb.length == 0) {
if (actor.womb.length == 0) {
...
@@ -359,7 +360,14 @@ window.fetalSplit = function(actor, chance) {
...
@@ -359,7 +360,14 @@ window.fetalSplit = function(actor, chance) {
s.splitted = 1; //this is marker that this is already splitted fetus (to not split second time in loop), only source fetus needed it.
s.splitted = 1; //this is marker that this is already splitted fetus (to not split second time in loop), only source fetus needed it.
nft.identical = 1; //this is marker that this fetus has at least one twin.
nft.identical = 1; //this is marker that this fetus has at least one twin.
s.identical = 1; //this is marker that this fetus has at least one twin.
s.identical = 1; //this is marker that this fetus has at least one twin.
actor.womb.push(nft);
if (s.twinID == "" || s.twinID == undefined)
s.twinID = genUUID();
nft.twinID = s.twinID;
actor.womb.push(nft);
}
}
});
});
WombNormalizePreg(actor);
WombNormalizePreg(actor);
...
@@ -603,6 +611,10 @@ window.BCReserveInit = function()
...
@@ -603,6 +611,10 @@ window.BCReserveInit = function()
ft.reserve = "";
ft.reserve = "";
if (typeof ft.motherID != 'number') //setting missing biological mother ID for fetus.
if (typeof ft.motherID != 'number') //setting missing biological mother ID for fetus.
ft.motherID = slave.ID;
ft.motherID = slave.ID;
if (ft.ID == undefined)
ft.ID = genUUID();
try {
try {
if (slave.reservedChildren > 0)
if (slave.reservedChildren > 0)
WombSetGenericReserve(slave, "incubator", reservedChildren);
WombSetGenericReserve(slave, "incubator", reservedChildren);
...
...
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