add recipe constructor sleep now 🌔

SQLite
Lucas Delanier 2 years ago
parent 3fc5cf9a5a
commit 54e9d787bd

@ -125,6 +125,7 @@ class BossFragment() : Fragment() {
val vibrator = context?.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator val vibrator = context?.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator
vibrator.vibrate(100) vibrator.vibrate(100)
progressBar.max = boss.maxlife progressBar.max = boss.maxlife
progressBar.progress = boss.life
with(recyclerView) { with(recyclerView) {
layoutManager = LinearLayoutManager(view.context) layoutManager = LinearLayoutManager(view.context)
adapter = AdapterBossLoot(boss.possibleLoot) adapter = AdapterBossLoot(boss.possibleLoot)

@ -0,0 +1,4 @@
package com.example.shakecraft.model
class Recipe(val item: Item, val quantity: Int, itemsNeeded : List<Item>) {
}
Loading…
Cancel
Save