From ccf5af3b72c223adc33ed9d6ed349099b81fd727 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Fri, 20 Dec 2019 23:38:11 -0800 Subject: [PATCH] PMODinit is called from passages that don't have a _Slave temporary, so use the argument, that's what it's there for. --- src/pregmod/widgets/pregmodWidgets.tw | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pregmod/widgets/pregmodWidgets.tw b/src/pregmod/widgets/pregmodWidgets.tw index 5c71c16df98..49c8d60a792 100644 --- a/src/pregmod/widgets/pregmodWidgets.tw +++ b/src/pregmod/widgets/pregmodWidgets.tw @@ -561,22 +561,22 @@ <<run delete $args[0].auricle>> <</if>> -<<if ndef _Slave.readyProsthetics>> - <<set _Slave.readyProsthetics = []>> +<<if ndef $args[0].readyProsthetics>> + <<set $args[0].readyProsthetics = []>> <</if>> -<<if def _Slave.readyLimbs>> - <<for _k = 0; _k < _Slave.readyLimbs.length; _k++>> - <<switch _Slave.readyLimbs[_k].type>> +<<if def $args[0].readyLimbs>> + <<for _k = 0; _k < $args[0].readyLimbs.length; _k++>> + <<switch $args[0].readyLimbs[_k].type>> <<case -1>> - <<run addProsthetic(_Slave, "basicL")>> + <<run addProsthetic($args[0], "basicL")>> <<case -2>> - <<run addProsthetic(_Slave, "sexL")>> + <<run addProsthetic($args[0], "sexL")>> <<case -3>> - <<run addProsthetic(_Slave, "beautyL")>> + <<run addProsthetic($args[0], "beautyL")>> <<case -4>> - <<run addProsthetic(_Slave, "combatL")>> + <<run addProsthetic($args[0], "combatL")>> <<case -5>> - <<run addProsthetic(_Slave, "cyberneticL")>> + <<run addProsthetic($args[0], "cyberneticL")>> <</switch>> <</for>> <</if>> -- GitLab