fir_res =  string(min(30*global.fire_resistance[global.current_inv+1],100))+"%"
ice_res =  string(min(30*global.freeze_resistance[global.current_inv+1],100))+"%"
thn_res =  string(min(30*global.thunder_resistance[global.current_inv+1],100))+"%"
hyp_res =  string(min(max(1,30*global.hypno_resistance[global.current_inv+1]),100))+"%"
par_res =  string(min(max(1,30*global.paralysis_resistance[global.current_inv+1]),100))+"%"
fla_res =  string(min(max(1,30*global.flash_resistance[global.current_inv+1]),100))+"%"

