mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-08 20:12:11 +00:00
remove whitespaces (#12)
This commit is contained in:
parent
2061af0645
commit
fc1407feff
12 changed files with 90 additions and 90 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue