mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
drop random records when digging dirts but super-rarely
This commit is contained in:
@@ -284,7 +284,7 @@ $BULLET Music:
|
||||
- music/discs/welded.ogg
|
||||
|
||||
℗ 2021, 2022, 2023, 2024 Orstphone
|
||||
Check out the original tracks at:
|
||||
Check out the original tracks on:
|
||||
Apple Music: <https://music.apple.com/kr/artist/orstphone/1587723053>
|
||||
Bandcamp: <https://orstphone.bandcamp.com/>
|
||||
YouTube: <https://www.youtube.com/@Orstphone>
|
||||
|
||||
@@ -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