aboutsummaryrefslogtreecommitdiffstats
path: root/data/mods/enemy-fort/maps.lua
blob: 4f748ae793fb488030616dbadedfe6a34bd04497 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- Layered-modding demo: this runs AFTER data/maps.lua, so it can reach into a
-- map the base game defined and change it. Here we bolt an extra armour skin
-- onto the Proving Ground enemy fort, making it a tougher target.
--
-- A mod could equally `table.insert(Maps, { ... })` to ship a whole new map;
-- see data/maps.lua for the shape of an entry.

local m = FindMap("Proving Ground")
if m then
    table.insert(m.structures, {
        name = "enemy outer plating",
        beams = {
            -- a second armoured skin one unit in front of the fort's face,
            -- tied back to it so the whole thing stays triangulated
            {24,1,24,3,"armour"}, {24,3,24,5,"armour"},
            {24,1,25,1,"wood"}, {24,3,25,3,"wood"}, {24,5,25,5,"wood"},
            {24,1,25,3,"wood"}, {24,3,25,5,"wood"},
        },
    })
    m.description = m.description .. " (+ enemy-fort mod plating)"
end