class Game_BattlerBase
#--------------------------------------------------------------------------
# ● 更改 TP
#--------------------------------------------------------------------------
alias add_tp tp=
def tp=(tp)
add_tp(tp)
s = []
self.feature_objects.each {|obj|
s.push $1.to_i if obj.note =~ /<TP状态\s*(\d+?)>/i}
if @tp == max_tp && s != []
s.each{|i| add_state(i)}
else
s.each{|i| remove_state(i)}
end
end
end
class Game_BattlerBase
#--------------------------------------------------------------------------
# ● 更改 TP
#--------------------------------------------------------------------------
alias add_tp tp=
def tp=(tp)
add_tp(tp)
s = []
self.feature_objects.each {|obj|
s.push $1.to_i if obj.note =~ /<TP状态\s*(\d+?)>/i}
if @tp == max_tp && s != []
s.each{|i| add_state(i)}
else
s.each{|i| remove_state(i)}
end
end
end
未测试