mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 14:21:52 +09:00
param adjustment
This commit is contained in:
@@ -111,8 +111,8 @@ object Worldgen {
|
|||||||
* @return starting chunk Y index, ending chunk Y index (inclusive)
|
* @return starting chunk Y index, ending chunk Y index (inclusive)
|
||||||
*/
|
*/
|
||||||
fun getChunkGenStrip(world: GameWorld): Pair<Int, Int> {
|
fun getChunkGenStrip(world: GameWorld): Pair<Int, Int> {
|
||||||
val start = (0.00342f * world.height - 3.22f).floorToInt().coerceAtLeast(0)
|
val start = (0.00342f * world.height - 3.22f).floorToInt().coerceAtLeast(1)
|
||||||
return start to start + 6
|
return start - 1 to start + 6
|
||||||
}
|
}
|
||||||
|
|
||||||
private val rockScoreMin = 40
|
private val rockScoreMin = 40
|
||||||
|
|||||||
Reference in New Issue
Block a user