Threat mechanic is almost entirely broken
Threat mechanic modes are currently broken, except for the mode=add
.
mode=set
works like mode=add
and adds to the threat value instead of setting it to the specified value.
mode=multiply
multiplies the threat value and adds it to the already existing threat. For example - threat{amount=2;mode=multiply}
turns an X amount of threat to X+2X instead of to 2X.
mode=divide
divides the threat value and adds the result to the already existing threat.
mode=remove
does not work with any targeter other than @target
. - settarget @
mechanic followed by @target
does not work either.
I tested these issues using the Build 5107 jar(fix for the issue here)
Quick demonstration video using the lines below https://youtu.be/J609EznrPdY
- threat{amount=;mode=} @ ~onInteract
- effect:particles{particle=snowflake;amount=10;hs=0.1;vs=0.1} @self ~onInteract
- skill{s=adversary_threattest} @self ~onDamaged
adversary_threattest:
Skills:
- message{m="<trigger.name> <trigger.threat>"} @trigger