mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 05:54:05 +09:00
lone leaves decaying
This commit is contained in:
@@ -1038,4 +1038,7 @@ fun <S, T> List<S>.cartesianProduct(other: List<T>) = this.flatMap { thisIt ->
|
||||
other.map { otherIt ->
|
||||
thisIt to otherIt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun Float.ditherToInt() = (this + Math.random() - 0.5).roundToInt()
|
||||
fun Double.ditherToInt() = (this + Math.random() - 0.5).roundToInt()
|
||||
|
||||
Reference in New Issue
Block a user