mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
formating change
This commit is contained in:
parent
49b9429d02
commit
f534027448
12
tests.lua
12
tests.lua
@ -50,7 +50,7 @@ function tests.test3()
|
||||
local chunkX = math.floor(playerPosition.x * 0.03125) * 32
|
||||
local chunkY = math.floor(playerPosition.y * 0.03125) * 32
|
||||
local entities = game.surfaces[1].find_entities_filtered({area={{chunkX, chunkY},
|
||||
{chunkX + constants.CHUNK_SIZE, chunkY + constants.CHUNK_SIZE}},
|
||||
{chunkX + constants.CHUNK_SIZE, chunkY + constants.CHUNK_SIZE}},
|
||||
force="player"})
|
||||
for i=1, #entities do
|
||||
print(entities[i].name)
|
||||
@ -80,10 +80,10 @@ function tests.test6()
|
||||
local chunkX = math.floor(playerPosition.x * 0.03125) * 32
|
||||
local chunkY = math.floor(playerPosition.y * 0.03125) * 32
|
||||
game.surfaces[1].set_tiles({{name="fillableDirt", position={chunkX-1, chunkY-1}},
|
||||
{name="fillableDirt", position={chunkX, chunkY-1}},
|
||||
{name="fillableDirt", position={chunkX-1, chunkY}},
|
||||
{name="fillableDirt", position={chunkX, chunkY}}},
|
||||
false)
|
||||
{name="fillableDirt", position={chunkX, chunkY-1}},
|
||||
{name="fillableDirt", position={chunkX-1, chunkY}},
|
||||
{name="fillableDirt", position={chunkX, chunkY}}},
|
||||
false)
|
||||
end
|
||||
|
||||
function tests.test7()
|
||||
@ -131,6 +131,4 @@ function tests.test11()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
return tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user