diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index ff83195ac1d8e505f6386788b299c5ad461df860..ddcc63526adb1b695b07c6922da4cbe5e4c8934e 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -11598,6 +11598,85 @@ window.saStayConfined = function saStayConfined(slave) { return t } +/* +Displays assistant images. Currently passage-based. +sizePlacement: Image size/center. + 3: Large, right. Example: description. + 2: Medium, right. Example: random events. +*/ +window.assistantArt = function assistantArt(sizePlacement) { + const V = State.variables; + let fileName = ""; + + if (V.imageChoice === 0 || V.imageChoice === 1) { + if (V.seeAvatar !== 1) {return} + + if (V.imageChoice === 1) { + fileName += "'resources/vector/avatar/"; + } else /* V.imageChoice === 0*/ { + fileName += "'resources/renders/assistant "; + } + switch (V.assistantAppearance) { + case "monstergirl": + fileName += "monstergirl.png'"; + break; + case "shemale": + fileName += "shemale.png'"; + break; + case "amazon": + fileName += "amazon.png'"; + break; + case "businesswoman": + fileName += "businesswoman.png'"; + break; + case "goddess": + fileName += "goddess.png'"; + break; + case "schoolgirl": + fileName += "schoolgirl.png'"; + break; + case "angel": + fileName += "angel.png'"; + break; + case "cherub": + fileName += "cherub.png'"; + break; + case "ERROR_1606_APPEARANCE_FILE_CORRUPT": + fileName += "corrupt.png'"; + break; + case "fairy": + fileName += "fairy.png'"; + break; + case "imp": + fileName += "imp.png'"; + break; + case "incubus": + fileName += "incubus.png'"; + break; + case "pregnant fairy": + fileName += "pfairy.png'"; + break; + case "succubus": + fileName += "succubus.png'"; + break; + case "witch": + fileName += "witch.png'"; + break; + default: + fileName += "default.png'"; + } + + if (sizePlacement === 3) { + fileName = `<img src=${fileName} style='float:right; border:3px hidden'/>`; + } else if (V.imageChoice === 1) { + fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='282' height='602'/>`; + } else /* V.imageChoice === 0 */ { + fileName = `<img src=${fileName} style='float:right; border:3px hidden' width='300' height='300'/>`; + } + } + return fileName; +}; + /*:: DTreeJS [script]*/ /* This is the minified version of lodash, d3 and dTree */ ; diff --git a/src/uncategorized/reRecruit.tw b/src/uncategorized/reRecruit.tw index 85559018584070331da87ebce6ae6c7589a18b05..9f9d12375028f22925724cc54b4902cbf66ad1a8 100644 --- a/src/uncategorized/reRecruit.tw +++ b/src/uncategorized/reRecruit.tw @@ -1798,7 +1798,7 @@ <<set $activeSlave.origin = "You purchased her in order to pave the way for her brother to take the throne.">> <<set $activeSlave.career = "a prince">> <<set $activeSlave.prestige = 2>> -<<set $activeSlve.prestigeDesc = "She was once the crown prince of an old world kingdom up until you aided her brother in making her 'disapear'.">> +<<set $activeSlave.prestigeDesc = "She was once the crown prince of an old world kingdom up until you aided her brother in making her 'disappear'.">> <<set $activeSlave.teeth = "normal">> <<set $activeSlave.devotion = random(-100,-90)>> <<set $activeSlave.trust = random(25,85)>> @@ -1826,7 +1826,7 @@ <<set $activeSlave.origin = "You purchased her as a favor to her father.">> <<set $activeSlave.career = "a princess">> <<set $activeSlave.prestige = 2>> -<<set $activeSlve.prestigeDesc = "She was once the princess of an old world kingdom up until her loose habits caught up with her and she was exiled.">> +<<set $activeSlave.prestigeDesc = "She was once the princess of an old world kingdom up until her loose habits caught up with her and she was exiled.">> <<set $activeSlave.devotion = random(-100,-90)>> <<set $activeSlave.trust = random(25,85)>> <<set $activeSlave.health = random(0,20)>>