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

pUndergroundRailroad.tw fixes

parent 98f21868
Branches
Tags
No related merge requests found
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
<<set $nextButton = " ", $nextLink = "Random Nonindividual Event">> /* hide button until user makes a selection */ <<set $nextButton = " ", $nextLink = "Random Nonindividual Event">> /* hide button until user makes a selection */
<<set $activeSlave = $slaves.find(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && s.devotion < 75 && s.trust < 75 && s.indenture == -1 && canWalk(s) && canTalk(s) && canSee($activeSlave) && ["serve in the club", "serve the public", "whore", "work in the brothel"].includes(s.assignment); })>> <<set $activeSlave = $slaves.filter(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && s.devotion < 75 && s.trust < 75 && s.indenture == -1 && canWalk(s) && canTalk(s) && canSee(s) && ["serve in the club", "serve the public", "whore", "work in the brothel"].includes(s.assignment); }).random()>>
<<if (ndef $activeSlave)>> /* search again without assignments limitation */ <<if (ndef $activeSlave)>> /* search again without assignments limitation */
<<set $activeSlave = $slaves.find(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && s.indenture == -1 && canSee($activeSlave) && ["serve in the club", "serve the public", "whore", "work in the brothel"].includes(s.assignment); })>> <<set $activeSlave = $slaves.filter(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && s.indenture == -1 && canSee(s) && ["serve in the club", "serve the public", "whore", "work in the brothel"].includes(s.assignment); }).random()>>
<<if (ndef $activeSlave)>> /* we will find one */ <<if (ndef $activeSlave)>> /* we will find one */
<<set $activeSlave = $slaves.find(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && s.devotion < 20 && canTalk(s) && canSee($activeSlave); })>> <<set $activeSlave = $slaves.filter(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && s.devotion < 20 && canTalk(s) && canSee(s); }).random()>>
<<if (ndef $activeSlave)>> /* we will find one */ <<if (ndef $activeSlave)>> /* we will find one */
<<set $activeSlave = $slaves.find(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && canTalk(s) && canSee($activeSlave); })>> <<set $activeSlave = $slaves.filter(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && canTalk(s) && canSee(s); }).random()>>
<<if (ndef $activeSlave)>> /* anyone out there? */ <<if (ndef $activeSlave)>> /* anyone out there? */
<<set $activeSlave = $slaves.find(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && canSee($activeSlave); })>> <<set $activeSlave = $slaves.filter(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken" && canWalk(s) && canSee(s); }).random()>>
<<if (ndef $activeSlave)>> /* still no match */ <<if (ndef $activeSlave)>> /* still no match */
<<set $activeSlave = $slaves.find(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken"; })>> <<set $activeSlave = $slaves.filter(function(s) { return s.fuckdoll == 0 && s.fetish != "mindbroken"; }).random()>>
<<if (ndef $activeSlave)>> /* STILL no match */ <<if (ndef $activeSlave)>> /* STILL no match */
<<set $activeSlave = $slaves.random()>> <<set $activeSlave = $slaves.random()>>
<</if>> <</if>>
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
<<setAssistantPronouns>> <<setAssistantPronouns>>
<<set $fcnn.push("...you believe a slave has been contacted by the Daughters of Liberty, please call...")>> <<set $fcnn.push("...you believe a slave has been contacted by the Daughters of Liberty, please call...")>>
<<set $traitorType = "standard">>
/*
<<if $activeSlave.devotion+$activeSlave.trust >= 175>> <<if $activeSlave.devotion+$activeSlave.trust >= 175>>
<<set $traitorType = "agent">> <<set $traitorType = "agent">>
<<elseif $activeSlave.trust <= -75>> <<elseif $activeSlave.trust <= -75>>
...@@ -35,7 +33,6 @@ ...@@ -35,7 +33,6 @@
<<else>> <<else>>
<<set $traitorType = "standard">> <<set $traitorType = "standard">>
<</if>> <</if>>
*/
One fine day, as normal as any day surrounded by your slaves can be, you're sitting at your desk when One fine day, as normal as any day surrounded by your slaves can be, you're sitting at your desk when
<<if $traitorType == "agent">> <<if $traitorType == "agent">>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment