Skip to content
Snippets Groups Projects
Commit 48094502 authored by pregmodfan's avatar pregmodfan
Browse files

BC for fetus reserve, now actually set

parent e2768351
No related branches found
No related tags found
No related merge requests found
......@@ -459,14 +459,23 @@ window.BCReserveInit = function()
{
var SV = State.variables;
SV.slaves.forEach(function(slave){
slave.womb.forEach(function(ft){
SV.slaves.forEach(function(slave)
{
slave.womb.forEach(function(ft)
{
if (typeof ft.reserved != 'string')
ft.reserved = "";
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;
});
if (slave.reservedChildren > 0)
WombSetGenericReserve(slave, "incubator", reservedChildren);
if (slave.reservedChildrenNursery > 0)
WombSetGenericReserve(slave, "nursery", reservedChildren);
});
});
SV.PC.womb.forEach(function(ft){
if (typeof ft.reserved != 'string')
......
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