if skill.id >= 1 and skill.id <= 100
return false if !equips.include?($data_weapons[skill.id])
end
以下引用支持⒍6于2008-10-3 12:15:19的发言:
好象有问题吖,如果我是指定1~10号技能
30~35的装备那该怎么写
if skill.id >= 1 and skill.id <= 20 #技巧范围
oka = false
for i in 2..5 #武器范围
oka = true if equips.include?($data_weapons)
end
return false if !oka
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |