My goal is basically the inverse of the player action formula. Basically, if the player receives a critical hit or has their weaknesses exploited they will lose Tp. As well as if the player dodges an attack or resists an elemental attack, they will gain Tp. (I'm trying to do an SMT style press turn thing were playing well rewards the player but poor performance punishes them).
Not sure if the code below is correct but I thought it be something like this...
const isActor = this.isActor()
if(results.critical){
tpValue += -15
}
return tpValue

