addGuard('禁军卫士', 285, 268, DIR_UPLEFT)
addGuard('禁军卫士', 275, 278, DIR_UPLEFT)
addGuard('禁军卫士', 353, 309, DIR_DOWNRIGHT)
addGuard('禁军卫士', 346, 316, DIR_DOWNRIGHT)

local addmon = require('map.addmonster')
local addMonCo = addmon.monGener( -- 盟重县_74
{
    {
        name = '多角虫',
        loc = {
            {x = 300, y = 300, w = 250, h = 250, count = 20, time = 600},
        }
    },
    {
        name = '夜行鬼09',
        loc = {
            {x = 300, y = 300, w = 300, h = 300, count = 150, time = 1200},
        }
    },
    {
        name = '威思尔小虫',
        loc = {
            {x = 300, y = 300, w = 250, h = 250, count = 20, time = 600},
        }
    },
    {
        name = '巨型多角虫',
        loc = {
            {x = 300, y = 300, w = 290, h = 290, count = 2, time = 7200},
        }
    },
    {
        name = '沙漠威思尔小虫',
        loc = {
            {x = 300, y = 300, w = 250, h = 250, count = 20, time = 600},
        }
    },
    {
        name = '猎鹰',
        loc = {
            {x = 300, y = 300, w = 250, h = 250, count = 20, time = 600},
        }
    },
    {
        name = '盔甲虫',
        loc = {
            {x = 300, y = 300, w = 250, h = 250, count = 20, time = 600},
            {x = 300, y = 300, w = 250, h = 250, count = 20, time = 600},
        }
    },
})

function main()
    while true do
        local rc, errMsg = coroutine.resume(addMonCo)
        if not rc then
            fatalPrintf('addMonCo failed: %s', argDefault(errMsg, 'unknown error'))
        end
        pause(1000 * 5)
    end
end
