class Game_Enemy < Game_Battler
#--------------------------------------------------------------------------
# ● 获取状态有效度
# state_id : state ID
#--------------------------------------------------------------------------
def state_probability(state_id)
case enemy_id
when BOSS数据库编号
return 0
end
if $data_states[state_id].nonresistance
return 100
else
rank = enemy.state_ranks[state_id]
return [0,100,80,60,40,20,0][rank]
end
end
end