mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 02:24:05 +09:00
alloy yield doubled; turntable now requires brass for crafting
This commit is contained in:
@@ -319,13 +319,14 @@ class FixtureAlloyingFurnace : FixtureBase {
|
||||
progress += temperature
|
||||
|
||||
if (progress >= FixtureSmelterBasic.CALORIES_PER_ROASTING) {
|
||||
val moq = smeltingProduct.moq
|
||||
val smeltingProduct = smeltingProduct.item
|
||||
|
||||
// check if the item even exists
|
||||
if (ItemCodex[smeltingProduct] == null) throw NullPointerException("No item prop for $smeltingProduct")
|
||||
|
||||
if (productItem == null)
|
||||
productItem = InventoryPair(smeltingProduct, 1L)
|
||||
productItem = InventoryPair(smeltingProduct, moq)
|
||||
else
|
||||
productItemStatus.changeCount(1)
|
||||
|
||||
|
||||
@@ -166,6 +166,8 @@ class FixtureMusicalTurntable : Electric, PlaysMusic {
|
||||
super.reload()
|
||||
// cannot resume playback, just stop the music
|
||||
musicNowPlaying = null
|
||||
// update sprite
|
||||
(sprite as SheetSpriteAnimation).currentRow = (disc == null).toInt()
|
||||
}
|
||||
|
||||
override fun dispose() {
|
||||
|
||||
Reference in New Issue
Block a user