Where in the base scripts does it mention how much TP is gained when a actor/enemy is damaged? I lowered Max TP to 5, but it always refills when a charecter is damaged, and this kind of clashes with a battle mechanic im making
thankl you in advance
Edit: I think i found the relevant code, i just need to know how to change it. I'd like to make it so damage only "charges" between 1 and 2 TP, instead of it being based on damage, but still be affected by TCR
Game_Battler.prototype.chargeTpByDamage = function(damageRate) {
const value = Math.floor(50 * damageRate * this.tcr);
this.gainSilentTp(value);
thankl you in advance
Edit: I think i found the relevant code, i just need to know how to change it. I'd like to make it so damage only "charges" between 1 and 2 TP, instead of it being based on damage, but still be affected by TCR
Game_Battler.prototype.chargeTpByDamage = function(damageRate) {
const value = Math.floor(50 * damageRate * this.tcr);
this.gainSilentTp(value);