mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
drop random records when digging dirts but super-rarely
This commit is contained in:
@@ -109,6 +109,14 @@ object PickaxeCore {
|
||||
makeDust(tile, x, y, 9)
|
||||
makeNoise(actor, tile)
|
||||
}
|
||||
|
||||
|
||||
// temporary: spawn random record on prob 1/65536 when digging dirts
|
||||
if (ItemCodex[tileBroken]?.hasTag("CULTIVABLE") == true && Math.random() < 1.0 / 65536.0) {
|
||||
val drop = "item@basegame:${32769 + Math.random().times(9).toInt()}"
|
||||
dropItem(drop, x, y)
|
||||
}
|
||||
|
||||
}
|
||||
// tile not busted
|
||||
if (Math.random() < actionInterval) {
|
||||
|
||||
Reference in New Issue
Block a user