remove whitespaces (#12)

This commit is contained in:
CrazyladMT 2026-02-19 23:02:56 -05:00 committed by GitHub
commit fc1407feff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 90 additions and 90 deletions

View file

@ -13,13 +13,13 @@ function place_map(map)
local map_data = dofile(map_path .. map .. "/map.lua")
core.place_schematic({x=0, y=0, z=0}, map_path .. map .. "/map.mts", 0, nil, true)
if map_data.spawn_x == nil or map_data.spawn_y == nil or map_data.spawn_z == nil then -- set a default spawnpoint if not set
map_data.spawn_x = map_data.size_x / 2
map_data.spawn_y = map_data.barrier_level + 1
map_data.spawn_z = map_data.size_z / 2
end
if map_data.start_time == nil or map_data.start_time <= 0 then
map_data.start_time = 30
end
@ -30,7 +30,7 @@ function place_map(map)
map_data.classes.class_2 = {}
map_data.classes.class_3 = {}
end
if map_data.classes.class_1.initial_items == nil or map_data.classes.class_1.name == nil then
map_data.classes.class_1.initial_items = {"ctf_ranged:m200_loaded", "default:sword_stone", "ctf_ranged:ammo 99"}
map_data.classes.class_1.name = "Long-range"
@ -46,7 +46,6 @@ function place_map(map)
map_data.classes.class_3.name = "Short-range"
end
return map_data
end

View file

@ -3,20 +3,20 @@ local map_data = {
size_x = 41,
size_y = 31,
size_z = 38,
barrier_level = 27,
spawn_x = nil,
spawn_y = nil,
spawn_z = nil,
start_time = 15,
scripts = {
scripts = {
on_start = "for x=0, 40 do\nfor y=0, 17 do\nfor z=0, 37 do\ncore.set_node({x=x,y=31+y,z=z}, {name=\"default:glass\"})\nend\nend\nend",
on_barrier_remove = "",
on_end = ""
}
on_barrier_remove = "",
on_end = ""
}
}
return map_data

View file

@ -3,15 +3,15 @@ local map_data = {
size_x = 189,
size_y = 71,
size_z = 102,
barrier_level = 67, -- <- Y level of the barrier
spawn_x = nil,
spawn_y = nil,
spawn_z = nil,
start_time = 45,
scripts = { -- "temporary" hack to ensure there's nothing on top of the map
on_start = "for x=0, 188 do\nfor y=0, 4 do\nfor z=0, 101 do\ncore.set_node({x=x,y=71+y,z=z}, {name=\"air\"})\nend\nend\nend",
on_barrier_remove = "",

View file

@ -3,15 +3,15 @@ local map_data = {
size_x = 537,
size_y = 117,
size_z = 244,
barrier_level = 113, -- <- Y level of the barrier
spawn_x = nil,
spawn_y = nil,
spawn_z = nil,
start_time = 60,
scripts = {
on_start = "",
on_barrier_remove = "",

View file

@ -1,26 +1,26 @@
local map_data = {
name = "forest-4",
size_x = 190,
size_y = 69,
size_z = 155,
name = "forest-4",
size_x = 190,
size_y = 69,
size_z = 155,
barrier_level = 65,
barrier_level = 65,
spawn_x = nil,
spawn_y = nil,
spawn_z = nil,
spawn_x = nil,
spawn_y = nil,
spawn_z = nil,
start_time = 30,
start_time = 30,
scripts = {
on_start = "for x=0, 189 do\nfor y=0, 10 do\nfor z=0, 154 do\ncore.set_node({x=x,y=69+y,z=z}, {name=\"air\"})\nend\nend\nend",
on_barrier_remove = "",
on_end = ""
},
scripts = {
on_start = "for x=0, 189 do\nfor y=0, 10 do\nfor z=0, 154 do\ncore.set_node({x=x,y=69+y,z=z}, {name=\"air\"})\nend\nend\nend",
on_barrier_remove = "",
on_end = ""
},
classes = {
class_1 = {
name = "Long-range",
name = "Long-range",
initial_items = {"ctf_ranged:m200_loaded", "default:sword_stone", "ctf_ranged:ammo 99", "default:torch 1"}
},

View file

@ -3,16 +3,16 @@ local map_data = {
size_x = 155,
size_y = 53,
size_z = 147,
barrier_level = 49, -- <- Y level of the barrier
spawn_x = nil,
spawn_y = nil,
spawn_z = nil,
start_time = 30,
scripts = { -- "temporary" hack to ensure there's nothing on top of the map
scripts = { -- "temporary" hack to ensure there's nothing on top of the map
on_start = "for x=0, 154 do\nfor y=0, 16 do\nfor z=0, 146 do\ncore.set_node({x=x,y=53+y,z=z}, {name=\"air\"})\nend\nend\nend",
on_barrier_remove = "",
on_end = ""
@ -20,7 +20,7 @@ local map_data = {
classes = {
class_1 = {
name = "Long-range",
name = "Long-range",
initial_items = {"ctf_ranged:m200_loaded", "default:sword_stone", "ctf_ranged:ammo 99", "default:torch 1"}
},

View file

@ -3,20 +3,20 @@ local map_data = {
size_x = 8,
size_y = 19,
size_z = 8,
barrier_level = 15,
spawn_x = nil,
spawn_y = nil,
spawn_z = nil,
start_time = 15,
scripts = {
scripts = {
on_start = "",
on_barrier_remove = "",
on_end = ""
}
on_barrier_remove = "",
on_end = ""
}
}
return map_data

View file

@ -3,13 +3,13 @@ local map_data = {
size_x = 111,
size_y = 64,
size_z = 107,
barrier_level = 60, -- <- Y level of the barrier
spawn_x = nil,
spawn_y = nil,
spawn_z = nil,
start_time = 30,
scripts = {

View file

@ -3,13 +3,13 @@ local map_data = {
size_x = 341,
size_y = 83,
size_z = 188,
barrier_level = 79, -- <- Y level of the barrier
spawn_x = nil,
spawn_y = nil,
spawn_z = nil,
start_time = 45,
scripts = {