diff --git a/src/uncategorized/prestigiousSlave.tw b/src/uncategorized/prestigiousSlave.tw index e4d744dc8f6782808fe7b9fa89233c696901507d..2ccfb1ff8bf02dae233c19960a1b0e8e7a983939 100644 --- a/src/uncategorized/prestigiousSlave.tw +++ b/src/uncategorized/prestigiousSlave.tw @@ -1,54 +1,48 @@ -:: Prestigious Slave +:: Prestigious Slave [nobr] + +<<set $nextButton = "Back">> +<<set $nextLink = "Buy Slaves">> +<<set $returnTo = "Buy Slaves">> +<<set $showEncyclopedia = 1>><<set $encyclopedia = "Slave Schools">> -<<set $nextButton = "Back">>\ -<<set $nextLink = "Buy Slaves">>\ -<<set $returnTo = "Buy Slaves">>\ -<<set $showEncyclopedia = 1>><<set $encyclopedia = "Slave Schools">>\ -\ You check to see if any especially prestigious slaves are on auction. <<if $prestigeAuctioned == 1>>There are none available right now, but there probably will be next week.<<else>> -<<nobr>> <<set $prestigeAuctioned = 1>> -<<script>> -const V = State.variables; -const options = { - "porn star": 10, - "trophy wife": 10, - "sports star": 10, - "young model": 10, - "albino": 10, - "old-timer": 10, - "b-list actress": 10, - "politician": 10, - "princess": 10, - "arcology": 10, - "streamer": 10 -}; - -const dickOptions = { - "d herm": 10, - "d young herm": 5, - "d pornstar": 10, - "d trophy husband": 5, - "d sports star": 5, - "d young model": 5, - "d albino": 5, - "d old-timer": 5, - "d b-list actress": 5, - "d politician": 5, - "d princess": 5, - "d arcology": 5, - "d streamer": 5, -}; - -if (Math.random()*100 < V.seeDicks) - V.seed = hashChoice(dickOptions); -else - V.seed = hashChoice(options); -<</script>> - -<<switch $seed>> +<<set _choice = (function() { + const V = State.variables; + const options = [ + "porn star", + "trophy wife", + "sports star", + "young model", + "albino", + "old-timer", + "b-list actress", + "politician", + "princess", + "arcology", + "streamer", + ]; + const dickOptions = [ + "d herm", + "d young herm", + "d pornstar", + "d trophy husband", + "d sports star", + "d young model", + "d albino", + "d old-timer", + "d b-list actress", + "d politician", + "d princess", + "d arcology", + "d streamer", + ]; + return jsEither(Math.random()*100 < V.seeDicks ? dickOptions : options); +})()>> + +<<switch _choice>> <<case "porn star">> <<set $activeSlaveOneTimeMinAge = Math.min(24, $minimumSlaveAge + 6)>> <<set $activeSlaveOneTimeMaxAge = 40>> @@ -891,18 +885,16 @@ else <</switch>> <<slaveCost $activeSlave>> -<</nobr>>\ -\ -It will take <<print cashFormat($slaveCost)>> to win the auction. -\ -<<nobr>> + +<br><br>It will take <<print cashFormat($slaveCost)>> to win the auction. + <<if $cash >= $slaveCost>> [[Place that bid|New Slave Intro][$cash -= $slaveCost,$nextButton = "Continue",$nextLink = "AS Dump",$returnTo = "Main"]] <<else>> //You lack the necessary funds to place a winning bid.// <</if>> -<</nobr>> -<<set $saleDescription = 1>><<include "Long Slave Description">>\ +<<set $saleDescription = 1>> +<br><br><<include "Long Slave Description">> <</if>>