NokiMo
dedagames
dedagames

patreon


Pregnancy calculation

Pregnacy calculation improved and almost final.

Pregnancy calculation

Comments

I think you're doing well with coding. I cannot invest a lot of time in this, but I will like to help you with bugs as I did in previous releases. :-) Pregnancy chance by sperm count could be calculated like: if pregnancy_chancebyyou > 0: if "f_zerocount" in charactermainflags: $pregnancy_chancebyyou = 0 if "f_lowcount" in charactermainflags: $pregnancy_chancebyyou = int( pregnancy_chancebyyou * 0.25 ) if "f_highcount" in charactermainflags: $pregnancy_chancebyyou = int( pregnancy_chancebyyou * 1.2 ) It should work if you copy it above $ schancetobefather = 0.0.

Now I realized what you mean. if pregnancy_chancebyall > 99: will solve my problem

Delasoto. One more thing. If you are a programmer you can code. Maximum you have to learn a new syntax. Renpy is killing me. it forces me to code organised. My Java code looks awful.

I think no other game game has a calculation method like this.

I did that on purpose. pregnancy is not always 100%. Even when she fucked unprotected all month. But thx for review.

I am a programmer, but not in Ren'Py. :-) I think there should be higher or equal conditional, so it never returns pregnancy_chancebyall = 1.00. if pregnancy_chancebyall > 100: // There should be if pregnancy_chancebyall >= 100 $pregnancy_chancebyall = 0.99 else: $pregnancy_chancebyall = pregnancy_chancebyall / 100 // If pregnancy_chancebyall is 100, it returns 1.00 in your implementation.


Related Creators