Update JCoM.html
Was incorrectly calculating stress. Adding the two attributes, should have been using the better of the two.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user