18-49Is there age limit in pregnancy? Like 1 -60 to get pregnant?
Thank for real life but is this include in game?18-49
Based it on quick reading of this :
You must be registered to see the links
In fact I was a little bit too quick to answer (I had proposed the change a while back).Thank for real life but is this include in game?
Okay wish it increase to 60 instead in matureIn fact I was a little bit too quick to answer (I had proposed the change a while back).
v0.26 : X=55
v0.27 : X=49
0% : chance over or equal to X
100% : chance under X, with breeder trait
50% : chance under X, if mc takes fertility potion
10% : chance under X
This may change in the future
I'll keep that in mind if I rework the system completely.Okay wish it increase to 60 instead in mature
SugarCube.Engine.play('Event: Common capital')
in the browser console and that does cause the game to freeze. Also I looked at the code of the event and there seems to be an issue with this:<<set _randomPersons = setup.getRandomPersons(_persons, 2)>>
<<set
_randomPerson1Id = _randomPersons[0],
_randomPerson2Id = _randomPersons[1]
>>
...
$guests[_randomPerson1Id].name
setup.getRandomPersons
returns an array of objects, which means _randomPerson1Id
is an object, so $guests[_randomPerson1Id].name
shouldn't really work, but the problem is that I can sometimes get the event to fire and it works properly.Add your save fileAnyone else had the error in the current save?
"Cannot read properties of undefined (reading 'id')." This error appeared in my save that I have been using since the beginning of the game
Thx. Sounds like an infinity loop. Will check it outI ran into an issue when playing v0.26c on mopoga. Sometimes when I go back to the cabin, the game freezes and I have to kill the page. This is how it looks like when it happens:
View attachment 3119719
At first I assumed that this is a problem from getting redirected to 'Event: Common capital' which I had never seen before, but I was able to get that event to show properly after numerous refreshes. I'm not sure what exactly is the problem.
I have tried usingSugarCube.Engine.play('Event: Common capital')
in the browser console and that does cause the game to freeze. Also I looked at the code of the event and there seems to be an issue with this:
Code:<<set _randomPersons = setup.getRandomPersons(_persons, 2)>> <<set _randomPerson1Id = _randomPersons[0], _randomPerson2Id = _randomPersons[1] >> ... $guests[_randomPerson1Id].name
setup.getRandomPersons
returns an array of objects, which means_randomPerson1Id
is an object, s$guests[_randomPerson1Id].name
shouldn't really work, but the problem is that I can sometimes get the event to fire and it works properly.
I'm confused . I've attached my save but I don't think that it'll be any help at all.
Thx. Will.fix in next patch
Right now added chance to find it in police car where you find ammo. Later will add more optionsWhats happening about the gas mask ?
I realized thatThx. Sounds like an infinity loop. Will check it out
_persons
in the code I quoted is actually an array of integers and not objects, so my point about your code is invalid and that's not the reason for the game freezing.setup.getRandomPersonIds = function(persons, limit = 2) {
var randomIds = [];
var randomPersonList = clone(persons);
while (randomIds.length < limit && randomPersonList.length) {
var randomIndex = Math.floor(Math.random() * randomPersonList.length);
if (!randomIds.includes(randomIndex)) {
randomIds.push(randomIndex);
randomPersonList.splice(randomIndex, 1);
}
}
return randomIds;
};
SugarCube.setup.getRandomPersonIds([3, 5], 2)
can cause an infinite loop. In the code, randomIndex
is an integer that's either 0 or 1 (since persons
is a 2 element array here). So randomIds
is going to be filled with either 0 or 1 (which is not what you want, since you actually want it to be 3 or 5 in this example, but that's a separate issue).randomIndex
is 0. Now randomPersonList
has a length of 1 and so afterwards, randomIndex
will always be 0 and thus doesn't get pushed into randomIds
. So randomIds
stays with length 1 and the loop repeats.setup.getRandomPersonIds = function(persons, limit = 2) {
return [].concatUnique(persons).randomMany(limit);
}
you can if you have enough moniesNeed to be able to buy more then 1 axe at a time.
i have the money but still can only buy 1 axe at a time from the farmyou can if you have enough monies