for i in 1..@level
for j in $data_classes[@class_id].learnings
if j.level == i
learn_skill(j.skill_id)
end
end
end
probability = rand(2)
for i in 1..@level
for j in $data_classes[@class_id].learnings
if j.level == i and probability >= 1 #2/3的概率学到
learn_skill(j.skill_id)
end
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |