mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
fixing unlit torch bug
This commit is contained in:
@@ -19,6 +19,6 @@ object ReferencingRanges {
|
|||||||
val ACTORS_FRONT = 0x6000_0000..0x6FFF_FFFF // Rendered front (e.g. fake tile)
|
val ACTORS_FRONT = 0x6000_0000..0x6FFF_FFFF // Rendered front (e.g. fake tile)
|
||||||
val ACTORS_OVERLAY = 0x7000_0000..0x7FFF_FFFF // Rendered as screen overlay, not affected by light nor environment overlays
|
val ACTORS_OVERLAY = 0x7000_0000..0x7FFF_FFFF // Rendered as screen overlay, not affected by light nor environment overlays
|
||||||
|
|
||||||
val VIRTUAL_TILES = -1 downTo -65536
|
val VIRTUAL_TILES = -2 downTo -65536 // index of -1 breaks things for some reason :(
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -74,8 +74,8 @@ class UIItemInventoryCatBar(
|
|||||||
val iconIndex = arrayOf(12, 16, 17, 13)
|
val iconIndex = arrayOf(12, 16, 17, 13)
|
||||||
|
|
||||||
|
|
||||||
println("[UIItemInventoryCatBar] relativeStartX: $relativeStartX")
|
//println("[UIItemInventoryCatBar] relativeStartX: $relativeStartX")
|
||||||
println("[UIItemInventoryCatBar] posX: $posX")
|
//println("[UIItemInventoryCatBar] posX: $posX")
|
||||||
|
|
||||||
sideButtons = Array(iconIndex.size) { index ->
|
sideButtons = Array(iconIndex.size) { index ->
|
||||||
val iconPosX = if (index < 2)
|
val iconPosX = if (index < 2)
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package net.torvald.terrarum.blockproperties
|
|||||||
|
|
||||||
import net.torvald.gdx.graphics.Cvec
|
import net.torvald.gdx.graphics.Cvec
|
||||||
import net.torvald.terrarum.AppLoader
|
import net.torvald.terrarum.AppLoader
|
||||||
|
import net.torvald.terrarum.AppLoader.printdbg
|
||||||
import net.torvald.terrarum.AppLoader.printmsg
|
import net.torvald.terrarum.AppLoader.printmsg
|
||||||
import net.torvald.terrarum.ReferencingRanges
|
import net.torvald.terrarum.ReferencingRanges
|
||||||
import net.torvald.terrarum.gameworld.FluidType
|
import net.torvald.terrarum.gameworld.FluidType
|
||||||
@@ -68,6 +69,8 @@ object BlockCodex {
|
|||||||
dynamicToVirtualMap[id] = virtualIDMax
|
dynamicToVirtualMap[id] = virtualIDMax
|
||||||
repeat(DYNAMIC_RANDOM_CASES) { i ->
|
repeat(DYNAMIC_RANDOM_CASES) { i ->
|
||||||
setProp(virtualIDMax - i, it)
|
setProp(virtualIDMax - i, it)
|
||||||
|
printdbg(this, "Block ID $id -> Virtual ID ${virtualIDMax - i}, baseLum: ${blockProps[virtualIDMax - i]?.baseLumCol}")
|
||||||
|
|
||||||
virtualPropsCount += 1
|
virtualPropsCount += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user