| 123456789101112131415161718192021222324252627 |
- -- COMES BEFORE DATA.LUA
- Types = {}
- function doType()
- -- -- -- reqlvl, name, rarity
- local dirt = {0, "Dirt", 1}
- local ston = {0, "Stone", 0.8}
- local clay = {0, "Clay", 0.6}
- local sand = {0, "Sand", 0.4}
- end
- function grade(type)
- local grade = math.random(100)
- if grade < 70 then
- g = "common"
- elseif grade < 88 then
- g = "uncommon"
- elseif grade < 98 then
- g = "rare"
- else
- g = "unique"
- end
- return g
- end
|