Trying to figure out the logic in NextDayEvents()
if player.preg.duration > variables.pregduration && player.preg.baby != null: childbirth(player) checkforevents = true return for i in globals.slaves: if i.preg.baby != null && (i.preg.duration > variables.pregduration || (i.race == 'Goblin' && i.preg.duration > variables.pregduration/2)): if i.race == 'Goblin': i.away.duration = 2 else: i.away.duration = 3 i.away.at = 'in labor' childbirth(i) checkforevents = true return
Given that these checks end in Return, does that mean that the game only allows one birth per day, and the player's birth takes precedence?
Also, does this mean that if a birth happens, no other events happen? Or what does checkforevents do? (I'm getting a little overwhelmed by all the code lately.)
Also, the next section that's not commented out says "#Old scheduled event system" -- is it still functional, or am I looking at code that never activates, or...?