From bb2febb7db2d8cc1d060de3722edb77f77758759 Mon Sep 17 00:00:00 2001 From: starshipsandsteel Date: Sat, 19 Dec 2020 07:26:36 -0700 Subject: [PATCH] Update JCoM.html Was incorrectly calculating stress. Adding the two attributes, should have been using the better of the two. --- John Carter of Mars/JCoM.html | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/John Carter of Mars/JCoM.html b/John Carter of Mars/JCoM.html index 33f1716505..3b38f0c1cc 100644 --- a/John Carter of Mars/JCoM.html +++ b/John Carter of Mars/JCoM.html @@ -706,9 +706,22 @@ attributes.forEach(maxup => { var pas=parseInt(values.passion)||0; var dar=parseInt(values.daring)||0; var rea=parseInt(values.reason)||0; - var mxcon=emp+rea; - var mxfear=dar+pas; - var mxinj=cun+mig; + if (emp>rea){ + mxcon=emp; + } else { + mxcon=rea; + } + if (dar>pas){ + mxfear=dar; + } else { + mxfear=pas; + } + if (cun>mig){ + mxinj=cun; + } else { + mxinj=mig; + } + var poolmom=Math.min(emp,cun,mig,pas,dar,rea); setAttrs({ maxconfusion:mxcon,