#特效等级生效 by LBQ
module LBQ_Feature_Config
SET = {
# 设置
#人物编号
1 => {
# 特效编号 => 需要等级
0 => 2,
1 => 3,
10=> 10,
},
}
end
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# =-=
#--------------------------------------------------------------------------
def features(code)
result = []
all_features.each_with_index do |ft,i|
if ft.code == code && can_have_feature?(i)
result.push ft
end
end
if result
return result
end
end # def
def can_have_feature?(x)
set = LBQ_Feature_Config::SET
result = false
result = true unless set[@actor_id]
result = true unless set[@actor_id][x]
if set[@actor_id][x]
result = true if self.level >= set[@actor_id][x]
end
return result
end
end # Game Battlers
#特效等级生效 by LBQ
module LBQ_Feature_Config
SET = {
# 设置
#人物编号
1 => {
# 特效编号 => 需要等级
0 => 2,
1 => 3,
10=> 10,
},
}
end
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# =-=
#--------------------------------------------------------------------------
def features(code)
result = []
all_features.each_with_index do |ft,i|
if ft.code == code && can_have_feature?(i)
result.push ft
end
end
if result
return result
end
end # def
def can_have_feature?(x)
set = LBQ_Feature_Config::SET
result = false
result = true unless set[@actor_id]
result = true unless set[@actor_id][x]
if set[@actor_id][x]
result = true if self.level >= set[@actor_id][x]
end
return result
end
end # Game Battlers