Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

And while reviewing this post I realised that I didn't account for if you give away the baby or babies so you could either set it up in one of two ways first:

func _on_giveaway_pressed():
     birthingMother.preg.unborn_baby = []
     birthingMother.preg.baby_count = 0
     birthingMother.metrics.birth += 1
     birthingMother.preg.is_preg = false
     birthingMother.preg.duration = 0
     birthingMother.preg.ovulation_stage = 2
     birthingMother.preg.ovulation_day = -5
     birthingMother = null
     get_node("birthpanel").hide()

That should just delete all of the mother's remaining children when you can't or don't want to keep them, but won't allow you to pass on one and keep a later child

func _on_giveaway_pressed():
     birthingMother.preg.unborn_baby.erase(birthingMother.preg.unborn_baby[0])
     birthingMother.preg.baby_count -= 1
     if birthingMother.preg.baby_count > 0:
          childbirth(birthingMother, birthingMother.preg.unborn_baby[0].id)
     else:
          birthingMother.metrics.birth += 1
          birthingMother.preg.is_preg = false
          birthingMother.preg.duration = 0
          birthingMother.preg.ovulation_stage = 2
          birthingMother.preg.ovulation_day = -5
          birthingMother = null
          get_node("birthpanel").hide()

That should remove the baby being shown, then reload the panel for the next baby, but requires you to manually pass on every child

Love the fix and appreciate it! I'll work on integrating and testing it!

Well, I have tried to implement this myself. However, I do not see it ever working as it conflicts with the slave_tab.gd (atleast mine) Maybe I'll have to wait for Aric next update. I'll keep trying to see if I can get it through, maybe you can help put a guide where goes where because at least I tried to put it where it suppose to be it, the first time it conflicted with the actual Aric Script than it conflicted with slave_tab.gd. For the mean time, I'll just have to find the gad dang ghost babies ( ͡° ͜ʖ ͡°)

Could you provide a Mansion.gd file with this in effect? i've tried adding it in the places listed but it bricks my save