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

Merge branch 'pregmod-master' into 'pregmod-master'

Pregmod v1003-110

See merge request !181
parents 220e6bd2 dc26428f
Branches
Tags
4 merge requests!843Delete Please.,!833Pregmod master,!758Pregmod master,!181Pregmod v1003-110
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<<if ($slaves[$i].daughters > 0)>> <<if ($slaves[$i].daughters > 0)>>
<<if ($slaves[$i].devotion > 50)>> <<if ($slaves[$i].devotion > 50)>>
<<set $mother = $slaves[$i]>> <<set $mother = $slaves[$i]>>
<<set $daughter = RandomDaughter($slaves[$i])>> <<set $daughter = randomDaughter($slaves[$i])>>
<<if ($daughter.devotion > 50)>> <<if ($daughter.devotion > 50)>>
<<if canWalk($daughter)>> <<if canWalk($daughter)>>
<<if canWalk($mother)>> <<if canWalk($mother)>>
......
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
/% use .toLowerCase() to get rid of a few dupe conditions. %/ /% use .toLowerCase() to get rid of a few dupe conditions. %/
<<switch $args[1].toLowerCase()>> <<switch $args[1].toLowerCase()>>
<<case "clinic" "get treatment in the clinic">> <<case "clinic" "get treatment in the clinic">>
<<if _wID == $Nurse.ID>><<set $Nurse = 0>><</if>>
<<set _Tcount = $CliniciIDs.length>> <<set _Tcount = $CliniciIDs.length>>
<<for _wi = 0; _wi < _Tcount; _wi++>> <<for _wi = 0; _wi < _Tcount; _wi++>>
<<if _wID == $CliniciIDs[_wi].ID>> <<if _wID == $CliniciIDs[_wi].ID>>
...@@ -100,6 +101,7 @@ ...@@ -100,6 +101,7 @@
<</if>> <</if>>
<</for>> <</for>>
<<case "schoolroom" "learn in the schoolroom">> <<case "schoolroom" "learn in the schoolroom">>
<<if _wID == $Schoolteacher.ID>><<set $Schoolteacher = 0>><</if>>
<<set _Tcount = $SchlRiIDs.length>> <<set _Tcount = $SchlRiIDs.length>>
<<for _wi = 0; _wi < _Tcount; _wi++>> <<for _wi = 0; _wi < _Tcount; _wi++>>
<<if _wID == $SchlRiIDs[_wi].ID>> <<if _wID == $SchlRiIDs[_wi].ID>>
...@@ -108,6 +110,7 @@ ...@@ -108,6 +110,7 @@
<</if>> <</if>>
<</for>> <</for>>
<<case "spa" "rest in the spa">> <<case "spa" "rest in the spa">>
<<if _wID == $Attendant.ID>><<set $Attendant = 0>><</if>>
<<set _Tcount = $SpaiIDs.length>> <<set _Tcount = $SpaiIDs.length>>
<<for _wi = 0; _wi < _Tcount; _wi++>> <<for _wi = 0; _wi < _Tcount; _wi++>>
<<if _wID == $SpaiIDs[_wi].ID>> <<if _wID == $SpaiIDs[_wi].ID>>
...@@ -116,6 +119,7 @@ ...@@ -116,6 +119,7 @@
<</if>> <</if>>
<</for>> <</for>>
<<case "cellblock" "be confined in the cellblock">> <<case "cellblock" "be confined in the cellblock">>
<<if _wID == $Wardeness.ID>><<set $Wardeness = 0>><</if>>
<<set _Tcount = $CellBiIDs.length>> <<set _Tcount = $CellBiIDs.length>>
<<for _wi = 0; _wi < _Tcount; _wi++>> <<for _wi = 0; _wi < _Tcount; _wi++>>
<<if _wID == $CellBiIDs[_wi].ID>> <<if _wID == $CellBiIDs[_wi].ID>>
...@@ -132,6 +136,7 @@ ...@@ -132,6 +136,7 @@
<</if>> <</if>>
<</for>> <</for>>
<<case "brothel" "work in the brothel">> <<case "brothel" "work in the brothel">>
<<if _wID == $Madam.ID>><<set $Madam = 0>><</if>>
<<set _Tcount = $BrothiIDs.length>> <<set _Tcount = $BrothiIDs.length>>
<<for _wi = 0; _wi < _Tcount; _wi++>> <<for _wi = 0; _wi < _Tcount; _wi++>>
<<if _wID == $BrothiIDs[_wi].ID>> <<if _wID == $BrothiIDs[_wi].ID>>
...@@ -140,6 +145,7 @@ ...@@ -140,6 +145,7 @@
<</if>> <</if>>
<</for>> <</for>>
<<case "club" "serve in the club">> <<case "club" "serve in the club">>
<<if _wID == $DJ.ID>><<set $DJ = 0>><</if>>
<<set _Tcount = $ClubiIDs.length>> <<set _Tcount = $ClubiIDs.length>>
<<for _wi = 0; _wi < _Tcount; _wi++>> <<for _wi = 0; _wi < _Tcount; _wi++>>
<<if _wID == $ClubiIDs[_wi].ID>> <<if _wID == $ClubiIDs[_wi].ID>>
...@@ -148,6 +154,7 @@ ...@@ -148,6 +154,7 @@
<</if>> <</if>>
<</for>> <</for>>
<<case "dairy" "work in the dairy">> <<case "dairy" "work in the dairy">>
<<if _wID == $Milkmaid.ID>><<set $Milkmaid = 0>><</if>>
<<set _Tcount = $DairyiIDs.length>> <<set _Tcount = $DairyiIDs.length>>
<<for _wi = 0; _wi < _Tcount; _wi++>> <<for _wi = 0; _wi < _Tcount; _wi++>>
<<if _wID == $DairyiIDs[_wi].ID>> <<if _wID == $DairyiIDs[_wi].ID>>
...@@ -164,6 +171,7 @@ ...@@ -164,6 +171,7 @@
<</if>> <</if>>
<</for>> <</for>>
<<case "servantsquarters" "servants' quarters" "work as a servant">> <<case "servantsquarters" "servants' quarters" "work as a servant">>
<<if _wID == $Stewardess.ID>><<set $Stewardess = 0>><</if>>
<<set _Tcount = $ServQiIDs.length>> <<set _Tcount = $ServQiIDs.length>>
<<for _wi = 0; _wi < _Tcount; _wi++>> <<for _wi = 0; _wi < _Tcount; _wi++>>
<<if _wID == $ServQiIDs[_wi].ID>> <<if _wID == $ServQiIDs[_wi].ID>>
...@@ -172,6 +180,7 @@ ...@@ -172,6 +180,7 @@
<</if>> <</if>>
<</for>> <</for>>
<<case "mastersuite" "master suite" "serve in the master suite">> <<case "mastersuite" "master suite" "serve in the master suite">>
<<if _wID == $Concubine.ID>><<set $Concubine = 0>><</if>>
<<set _Tcount = $MastSiIDs.length>> <<set _Tcount = $MastSiIDs.length>>
<<for _wi = 0; _wi < _Tcount; _wi++>> <<for _wi = 0; _wi < _Tcount; _wi++>>
<<if _wID == $MastSiIDs[_wi].ID>> <<if _wID == $MastSiIDs[_wi].ID>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment