Skip to content
Snippets Groups Projects
Commit 53d22242 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

fix bad conversion

parent 9e44bc32
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ globalThis.removeSlave = function(slave) {
if (s.pregSource === V.missingParentID) {
missing = true;
}
if (s.daughters > 0) {
if (slave.daughters > 0) {
if (s.mother === AS_ID) {
s.mother = V.missingParentID;
}
......@@ -75,24 +75,24 @@ globalThis.removeSlave = function(slave) {
}
missing = true;
}
if (s.mother > 0 || s.father > 0) {
if (s.mother === s.ID || s.father === s.ID) {
if (slave.mother > 0 || slave.father > 0) {
if (slave.mother === s.ID || slave.father === s.ID) {
s.daughters--;
}
}
if (s.sisters > 0) {
if (areSisters(s, s) > 0) {
if (slave.sisters > 0) {
if (areSisters(slave, s) > 0) {
s.sisters--;
}
}
if (s.cumSource === AS_ID || s.milkSource === AS_ID) {
deflate(s);
}
if (s.ID === s.relationshipTarget) {
if (s.ID === slave.relationshipTarget) {
s.relationship = 0;
s.relationshipTarget = 0;
}
if (s.ID === s.rivalryTarget) {
if (s.ID === slave.rivalryTarget) {
s.rivalry = 0;
s.rivalryTarget = 0;
}
......@@ -101,8 +101,8 @@ globalThis.removeSlave = function(slave) {
s.origBodyOwnerID = 0;
}
*/
if (s.ID === s.subTarget || s.subTarget === s.ID) {
s.subTarget = 0; s.subTarget = 0;
if (s.ID === slave.subTarget || slave.subTarget === s.ID) {
slave.subTarget = 0; s.subTarget = 0;
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment