|
|
|
@ -8,10 +8,10 @@ class Generator {
|
|
|
|
|
companion object {
|
|
|
|
|
fun generateLootCollection(): Item {
|
|
|
|
|
val possibleLoot: List<Pair<Item, Double>> = listOf(
|
|
|
|
|
Pair(Item(name = "Beech Log", rarity = 0, stack = 1, R.drawable.log2), 0.6),
|
|
|
|
|
Pair(Item(name = "Bronze Ore", rarity = 0, stack = 1, R.drawable.bronze_ore), 0.25),
|
|
|
|
|
Pair(Item(name = "Iron Ore", rarity = 0, stack = 1, R.drawable.iron_ore), 0.10),
|
|
|
|
|
Pair(Item(name = "Diamond", rarity = 0, stack = 1, R.drawable.diamond), 0.05),
|
|
|
|
|
Pair(Item(name = "Beech Log", rarity = 1, stack = 1, R.drawable.log2, 10), 0.6),
|
|
|
|
|
Pair(Item(name = "Bronze Ore", rarity = 2, stack = 1, R.drawable.bronze_ore, 20), 0.25),
|
|
|
|
|
Pair(Item(name = "Iron Ore", rarity = 2, stack = 1, R.drawable.iron_ore, 25), 0.10),
|
|
|
|
|
Pair(Item(name = "Diamond", rarity = 3, stack = 1, R.drawable.diamond, 30), 0.05),
|
|
|
|
|
)
|
|
|
|
|
val rand = Random.nextDouble()
|
|
|
|
|
|
|
|
|
@ -43,11 +43,11 @@ class Generator {
|
|
|
|
|
|
|
|
|
|
fun generateBoss(): Boss {
|
|
|
|
|
val possibleBoss: List<Pair<Boss, Double>> = listOf(
|
|
|
|
|
Pair(Boss(name = "Margit the Fell Omen", life = 150, maxlife = 150, image = R.drawable.boss), 0.5),
|
|
|
|
|
Pair(Boss(name = "Godrick the Grafted", life = 200, maxlife = 200, image = R.drawable.skeleton), 0.2),
|
|
|
|
|
Pair(Boss(name = "Red Wolf of Radagon", life = 250, maxlife = 250, image = R.drawable.halberdier), 0.15),
|
|
|
|
|
Pair(Boss(name = "Old Banshee", life = 300, maxlife = 300, image = R.drawable.banshee), 0.10),
|
|
|
|
|
Pair(Boss(name = "Margit the Fell Omen", life = 500, maxlife = 500, image = R.drawable.lich), 0.05),
|
|
|
|
|
Pair(Boss(name = "Margit the Fell Omen", life = 150, maxlife = 150, image = R.drawable.boss, xpReward = 100), 0.5),
|
|
|
|
|
Pair(Boss(name = "Godrick the Grafted", life = 200, maxlife = 200, image = R.drawable.skeleton, xpReward = 130), 0.2),
|
|
|
|
|
Pair(Boss(name = "Red Wolf of Radagon", life = 250, maxlife = 250, image = R.drawable.halberdier, xpReward = 210), 0.15),
|
|
|
|
|
Pair(Boss(name = "Old Banshee", life = 300, maxlife = 300, image = R.drawable.banshee, xpReward = 300), 0.10),
|
|
|
|
|
Pair(Boss(name = "Margit the Fell Omen", life = 500, maxlife = 500, image = R.drawable.lich, xpReward = 500), 0.05),
|
|
|
|
|
)
|
|
|
|
|
val rand = Random.nextDouble()
|
|
|
|
|
|
|
|
|
|