diff --git a/devNotes/Useful JS Function Documentation.txt b/devNotes/Useful JS Function Documentation.txt index c81a21482a1e8738082c31ad56d50cbe39141efb..07d0905355e2e932d3430659a61ba7e6deb1a3eb 100644 --- a/devNotes/Useful JS Function Documentation.txt +++ b/devNotes/Useful JS Function Documentation.txt @@ -86,9 +86,7 @@ canBreed(slave1, slave2) - Returns if slave1 and slave2 are capable of breeding canImpreg(slave1, slave2) - Returns if slave2 can impregnate slave1. PC works as an argument as well. -isFertile(slave) - Returns if the slave is capable of having children. - -isPlayerFertile(PC) - Returns if the player can get pregnant. +isFertile(slave) - Returns if the actor is capable of having children. canAchieveErection(slave) - Returns if the slave can get an erection. (Not blocked by chastity.) diff --git a/src/events/gameover.tw b/src/events/gameover.tw index 07b959a0faf05c7b9edc19bce11811a871fbffda..0d22c663d97fbba4c76b1fad9499f027dc895b7b 100644 --- a/src/events/gameover.tw +++ b/src/events/gameover.tw @@ -15,6 +15,7 @@ <<case "debt">> You have fallen so far into debt that it is mere child's play for another slaveowner to purchase your debt, call it in, and enslave you. The story of your remaining years may be worth telling, but it must be told elsewhere. + <<set $slavePC = convertPlayerToSlave($PC)>> <<case "birth complications">> Again and again, you keep bearing down. As you grow more exhausted and are no closer to giving birth, you let out a feeble cry for help. @@ -57,6 +58,11 @@ <<case "Idiot Ball 2 The Dumbassening">> <<case "Idiot Ball 3 Totally Not Idiot Ball 2 Again">> As you leave your penthouse to conduct your daily rounds, you promptly get <<if $arcologyUpgrade.drones == 1>>tased by the nearest drone<<else>>tackled hard against the wall<</if>>. When you awake, it hits you like a truck; you idiotically enslaved your $PC.race ass by decreeing all <<if $gameover == "Idiot Ball 2 The Dumbassening">>non-<<print $arcologies[0].FSSupremacistRace>><<else>><<print $arcologies[0].FSSubjugationistRace>><</if>><<if $PC.race != "mixed race">>s<<else>> individuals<</if>> slaves, and since you are now a slave, lack the authority to revert the policy. The story of your remaining years may be worth telling, as is your legendary blunder, but it must be told elsewhere. + <<if $gameover == "Idiot Ball 2 The Dumbassening">> + <<set $slavePC = convertPlayerToSlave($PC, "notSupreme")>> + <<else>> + <<set $slavePC = convertPlayerToSlave($PC, "subjugated")>> + <</if>> <<default>> Since you are without slaves, Free Cities society no longer considers you a citizen of the first rank. Your personal story may continue, but that part of it worthy of retelling has now ended. diff --git a/src/player/js/enslavePlayer.js b/src/player/js/enslavePlayer.js index 03b3d443f14b04a2b15046f656df50e899d66159..1295641e609c91d731df54712641ac584e57b67f 100644 --- a/src/player/js/enslavePlayer.js +++ b/src/player/js/enslavePlayer.js @@ -1,5 +1,6 @@ /* This function adds the missing slave object variables to the player object and prunes player exclusive variables. You can only imagine what this is used for. */ -window.convertPlayerToSlave = function(slave, badEnd) { +/* This needs to find some way to survive refresh/newgame without showing up on all saves */ +window.convertPlayerToSlave = function(slave, badEnd = "boring") { /* add slave variables */ slave.skill.vaginal = 100; slave.skill.oral = 100; @@ -158,5 +159,16 @@ window.convertPlayerToSlave = function(slave, badEnd) { /* badEnd will be used here to apply unique effects depending on the ending */ + switch (badEnd) { + case "notSupreme": + slave.boobTat = `'Subhuman ${capFirstChar(slave.race)}' is printed across $his chest.`; + break; + case "subjugated": + slave.stampTat = `'${capFirstChar(slave.race)} Fuckmeat' is printed above $his butt.`; + break; + default: + slave.buttTat = `'Product of ${V.arcologies[0].name}.' is stamped on $his left buttock.`; + } + return slave; };