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

.birthCount for birthing scene

parent 751a6cc2
No related branches found
No related tags found
2 merge requests!2047RA rework,!1673.birthCount for birthing scene
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<<elseif $slaves[$i].physicalAge < 13>> <<elseif $slaves[$i].physicalAge < 13>>
<<set $birthDamage += 1>> <<set $birthDamage += 1>>
<</if>> <</if>>
<<if $slaves[$i].birthsTotal == 0>> <<if $slaves[$i].laborCount == 0>>
<<set $birthDamage += 2>> <<set $birthDamage += 2>>
<</if>> <</if>>
<<if $slaves[$i].mpreg != 1>> <<if $slaves[$i].mpreg != 1>>
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<<if $slaves[$i].intelligenceImplant > 0>> <<if $slaves[$i].intelligenceImplant > 0>>
<<set $birthDamage -= 2>> <<set $birthDamage -= 2>>
<</if>> <</if>>
<<if $slaves[$i].birthsTotal > 0>> <<if $slaves[$i].laborCount > 0>>
<<set $birthDamage -= 3>> <<set $birthDamage -= 3>>
<</if>> <</if>>
<<if $slaves[$i].mpreg != 1>> <<if $slaves[$i].mpreg != 1>>
...@@ -557,7 +557,7 @@ This decriptions can be expanded with more outcomes later. But it's not practica ...@@ -557,7 +557,7 @@ This decriptions can be expanded with more outcomes later. But it's not practica
/* I think all this reactions should be showed only if no c'section used too. Setting it up for just in case: */ /* I think all this reactions should be showed only if no c'section used too. Setting it up for just in case: */
<<if $csec == 0 && $slaves[$i].assignment != "work in the dairy">> /*if not desired, this check can be easily removed or deactevated with condition set to true.*/ <<if $csec == 0 && $slaves[$i].assignment != "work in the dairy">> /*if not desired, this check can be easily removed or deactevated with condition set to true.*/
<br> <br>
<<if $slaves[$i].birthsTotal == 0>> <<if $slaves[$i].laborCount == 0>>
<br> <br>
$possessiveCap inexperience @@.red;complicated $possessive first birth@@. $possessiveCap inexperience @@.red;complicated $possessive first birth@@.
<<set _compoundCondition = 1>> <<set _compoundCondition = 1>>
...@@ -644,7 +644,7 @@ This decriptions can be expanded with more outcomes later. But it's not practica ...@@ -644,7 +644,7 @@ This decriptions can be expanded with more outcomes later. But it's not practica
$possessiveCap @@.green;moist vagina@@ hastened $possessive <<if _curBabies >1>>children's<<else>>child's<</if>> birth. $possessiveCap @@.green;moist vagina@@ hastened $possessive <<if _curBabies >1>>children's<<else>>child's<</if>> birth.
<</if>> <</if>>
<</if>> <</if>>
<<if $slaves[$i].birthsTotal > 0>> <<if $slaves[$i].laborCount > 0>>
<br> <br>
$pronounCap has @@.green;given birth before@@, so $pronoun knows just what to do. $pronounCap has @@.green;given birth before@@, so $pronoun knows just what to do.
<</if>> <</if>>
......
...@@ -23,6 +23,12 @@ I need to break single passage to several widgets, as it's been overcomplicated ...@@ -23,6 +23,12 @@ I need to break single passage to several widgets, as it's been overcomplicated
<<for $i to 0; $i < $slaves.length; $i++>> <<for $i to 0; $i < $slaves.length; $i++>>
<<if $slaves[$i].labor == 1>> <<if $slaves[$i].labor == 1>>
<<if undef $slaves[$i].laborCount>>
<<set $slaves[$i].laborCount = 0>>
<<if $slaves[$i].birthsTotal > 0 && $slaves[$i].laborCount == 0>>
<<set $slaves[$i].laborCount = $slaves[$i].birthsTotal>> /*we do not have a way to know multiples birth count for backward compatibility code. :( */
<</if>>
<</if>>
<<set $dispositionId = _.uniqueId('babyDisposition-')>> <<set $dispositionId = _.uniqueId('babyDisposition-')>>
Birth report: @@.coral;$slaves[$i].slaveName <<if $slaves[$i].slaveSurname != 0>>$slaves[$i].slaveSurname<</if>>@@ Birth report: @@.coral;$slaves[$i].slaveName <<if $slaves[$i].slaveSurname != 0>>$slaves[$i].slaveSurname<</if>>@@
<br> <br>
...@@ -41,7 +47,7 @@ I need to break single passage to several widgets, as it's been overcomplicated ...@@ -41,7 +47,7 @@ I need to break single passage to several widgets, as it's been overcomplicated
<<seBirthCritical>> <<seBirthCritical>>
<br><br><hr style="margin:0"><br> <br><br><hr style="margin:0"><br>
<<set $slaves[$i].laborCount++>>
<</if>> <</if>>
<</for>> <</for>>
......
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