From 98dc4f6dfa83d61e471e5611cf1ad2d91c113583 Mon Sep 17 00:00:00 2001 From: Pregmodder <pregmodder@gmail.com> Date: Sun, 30 Aug 2020 00:28:01 -0400 Subject: [PATCH] Fix cheat edit eyes. --- src/cheats/mod_EditSlaveCheat.tw | 2 +- src/cheats/mod_EditSlaveCheatDatatypeCleanup.tw | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/cheats/mod_EditSlaveCheat.tw b/src/cheats/mod_EditSlaveCheat.tw index 0b39e745e74..84c5ab79eb5 100644 --- a/src/cheats/mod_EditSlaveCheat.tw +++ b/src/cheats/mod_EditSlaveCheat.tw @@ -335,7 +335,7 @@ Custom sclera color: <<textbox "$tempSlave.sclerae" $tempSlave.sclerae>> ''$His eyes are (0: normal, 1: artificial): $tempSlave.eyesImplant'' <br>Eyes: <<textbox "$tempSlave.eyesImplant" $tempSlave.eyesImplant>> <<radiobutton "$tempSlave.eyesImplant" 0>> Normal -<<radiobutton "$tempSlave.eyesImplant" 0>> Artificial +<<radiobutton "$tempSlave.eyesImplant" 1>> Artificial <br><br> diff --git a/src/cheats/mod_EditSlaveCheatDatatypeCleanup.tw b/src/cheats/mod_EditSlaveCheatDatatypeCleanup.tw index 015bbf3689f..45bfc598018 100644 --- a/src/cheats/mod_EditSlaveCheatDatatypeCleanup.tw +++ b/src/cheats/mod_EditSlaveCheatDatatypeCleanup.tw @@ -59,6 +59,16 @@ <</if>> <</if>> <</if>> +<<if $tempSlave.eyes === 2>> + <<set $tempSlave.eye.left.vision = 2, $tempSlave.eye.right.vision = 2>> +<<elseif $tempSlave.eyes === 1>> + <<set $tempSlave.eye.left.vision = 1, $tempSlave.eye.right.vision = 1>> +<<elseif $tempSlave.eyes === -1>> + <<set $tempSlave.eye.left.vision = 0, $tempSlave.eye.right.vision = 0>> +<</if>> +<<if $tempSlave.eyesImplant === 1>> + <<set $tempSlave.eye.left.type = 3, $tempSlave.eye.right.type = 3>> +<</if>> <<run SlaveDatatypeCleanup($tempSlave)>> /* will break cheated pregnancies if run before the above block of code */ You perform the dark rituals, pray to the dark gods, and sell your soul for the power to change and mold slaves to your will. -- GitLab