class RPG::UsableItem # 备注 <repeats 1 3> ,表示释放1~3次 alias rp_20140728 repeats def repeats if @note =~ /<repeats\s*(\d+)\s+(\d+)>/i min, max = $1.to_i, $2.to_i min + rand(max - min + 1) else rp_20140728 end end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |