Skip to content
Snippets Groups Projects
Commit 2cdf1201 authored by Pregmodder's avatar Pregmodder
Browse files

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

Pregmod v1017-20

See merge request !451
parents f300c5fe e9db524a
No related branches found
No related tags found
No related merge requests found
......@@ -944,7 +944,7 @@ __I do not give credit without explicit permission to do so.__ If you have contr
''anon'' for putting up with my javascript incompetence.
''anon'' for player family listing.
''anon'' for interchangeable prosthetics, advanced facial surgeries, custom nationality distribution and corporation assets overhaul.
''FCGudder'' for advanced economy reports, image improvements, cleaning and fixing extended-extended family mode and likely one to two of these other anon credits.
''FCGudder'' for advanced economy reports, image improvements, cleaning and fixing extended-extended family mode, extending building widgets, name cleaning and likely one to two of these other anon credits.
''anon'' for filter by assgnment.
''anon'' for forcing dicks onto slavegirls.
''anon'' for forcing dicks into slavegirls and forced slave riding.
......@@ -956,6 +956,7 @@ __I do not give credit without explicit permission to do so.__ If you have contr
''anon'' for writing forced marriages, extra escape outcomes and more player refreshment types.
''anon'' for global realism stave trade setting.
''anon'' for new recruit events.
''anon'' for expanding the cheat edit menu for slaves.
''thaumx'' for bigger player balls, cum production, self-impregnation and FCTV.
''Bane70'' optimized huge swaths of code with notable professionalism.
''Circle Tritagonist'' provided several new collars and outfits.
......
......@@ -193,7 +193,9 @@ __''MAIN MENU''__    //[[Summary Options]]//
<<if $sortSlavesBy != "name">>[[Name|Main][$sortSlavesBy = "name"]]<<else>>Name<</if>> |
<<if $sortSlavesBy != "assignment">>[[Assignment|Main][$sortSlavesBy = "assignment"]]<<else>>Assignment<</if>> |
<<if $sortSlavesBy != "seniority">>[[Seniority purchased|Main][$sortSlavesBy = "seniority"]]<<else>>Seniority<</if>> |
<<if $sortSlavesBy != "age">>[[Age|Main][$sortSlavesBy = "age"]]<<else>>Age<</if>>
<<if $sortSlavesBy != "actualAge">>[[Age|Main][$sortSlavesBy = "actualAge"]]<<else>>Age<</if>> |
<<if $sortSlavesBy != "visualAge">>[[Apparent Age|Main][$sortSlavesBy = "visualAge"]]<<else>>Apparent Age<</if>> |
<<if $sortSlavesBy != "physicalAge">>[[Bodily Age|Main][$sortSlavesBy = "physicalAge"]]<<else>>Bodily Age<</if>>
&nbsp;&nbsp;&nbsp;&nbsp;
Sort: <<if $sortSlavesOrder != "descending">>[[Descending|Main][$sortSlavesOrder = "descending"]]<<else>>Descending<</if>> |
<<if $sortSlavesOrder != "ascending">>[[Ascending|Main][$sortSlavesOrder = "ascending"]]<<else>>Ascending<</if>>
......
......@@ -19,15 +19,19 @@
Slaves are sorted on the main menu by @@.yellow;NAME.@@
<<elseif $sortSlavesBy == "seniority">>
Slaves are sorted on the main menu by @@.yellow;SENIORITY.@@
<<elseif $sortSlavesBy == "age">>
Slaves are sorted on the main menu by @@.yellow;AGE.@@
<<elseif $sortSlavesBy == "actualAge">>
Slaves are sorted on the main menu by @@.yellow;TRUE AGE.@@
<<elseif $sortSlavesBy == "visualAge">>
Slaves are sorted on the main menu by @@.yellow;APPARENT AGE.@@
<<elseif $sortSlavesBy == "physicalAge">>
Slaves are sorted on the main menu by @@.yellow;BODILY AGE.@@
<<elseif $sortSlavesBy == "assignment">>
Slaves are sorted on the main menu by @@.yellow;ASSIGNMENT.@@
<<else>>
Slaves are sorted on the main menu by @@.yellow;DEVOTION.@@
<</if>>
//[[Devotion|Summary Options][$sortSlavesBy = "devotion"]] | [[Name|Summary Options][$sortSlavesBy = "name"]] | [[Assignment|Summary Options][$sortSlavesBy = "assignment"]] | [[Date purchased|Summary Options][$sortSlavesBy = "seniority"]] | [[Age|Summary Options][$sortSlavesBy = "age"]]//
//[[Devotion|Summary Options][$sortSlavesBy = "devotion"]] | [[Name|Summary Options][$sortSlavesBy = "name"]] | [[Assignment|Summary Options][$sortSlavesBy = "assignment"]] | [[Date purchased|Summary Options][$sortSlavesBy = "seniority"]] | [[Age|Summary Options][$sortSlavesBy = "actualAge"]] | [[How old they look|Summary Options][$sortSlavesBy = "visualAge"]] | [[Age of their body|Summary Options][$sortSlavesBy = "physicalAge"]]//
<br>
......
......@@ -1661,11 +1661,23 @@ Call as <<SlaveSort [$slaves]>>
<<else>>
<<set $args[0] = $args[0].sort(function(a, b){return a.weekAcquired-b.weekAcquired})>>
<</if>>
<<case "age">>
<<case "actualAge">>
<<if ($sortSlavesOrder == "ascending")>>
<<set $args[0] = $args[0].sort(function(a, b){return a.age-b.age})>>
<<set $args[0] = $args[0].sort(function(a, b){return a.actualAge-b.actualAge})>>
<<else>>
<<set $args[0] = $args[0].sort(function(a, b){return b.age-a.age})>>
<<set $args[0] = $args[0].sort(function(a, b){return b.actualAge-a.actualAge})>>
<</if>>
<<case "visualAge">>
<<if ($sortSlavesOrder == "ascending")>>
<<set $args[0] = $args[0].sort(function(a, b){return a.visualAge-b.visualAge})>>
<<else>>
<<set $args[0] = $args[0].sort(function(a, b){return b.visualAge-a.visualAge})>>
<</if>>
<<case "physicalAge">>
<<if ($sortSlavesOrder == "physicalAge")>>
<<set $args[0] = $args[0].sort(function(a, b){return a.physicalAge-b.physicalAge})>>
<<else>>
<<set $args[0] = $args[0].sort(function(a, b){return b.physicalAge-a.physicalAge})>>
<</if>>
<<default>>
<<if ($sortSlavesOrder == "ascending")>>
......
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