mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
wire colour fade by signal strength
This commit is contained in:
@@ -520,7 +520,8 @@ object WorldSimulator {
|
||||
}
|
||||
|
||||
private fun calculateDecay(signal: Vector2, dist: Int, wire: ItemID, signalType: WireEmissionType): Vector2 {
|
||||
return signal * 0.995.pow(dist.toDouble())
|
||||
val d = WireCodex.wireDecays[wire]!!
|
||||
return signal * d.pow(dist.toDouble())
|
||||
}
|
||||
|
||||
private fun traverseWireGraph(world: GameWorld, wire: ItemID, startingPoint: WireGraphCursor, signal: Vector2, signalType: WireEmissionType) {
|
||||
|
||||
Reference in New Issue
Block a user