local waves = {} waves['packup-1'] = { name = 'packup', --costs can be an integer or a table. If a table is provided then the modifiers are checked cost = { minimum = 2400*160, maximum = 2400*540 }, -- Each modifier is calculated and returns a number between 0 and 1. The average of all modifiers is used to determine the -- actual cost. modifiers = { { name = 'ten_minutes', weight = 1 }, }, wave = 1, vector = { { spawn = {'spawn-1'}, rally = {'exit-left'}, target = {'crash-copper-patch'}, mission = 'attack', } } } waves['crash-site-colony-1'] = { name = 'crash-site-colony-1', cost = 2400*200, modifiers = {}, wave = 1, vector = { { spawn = {'spawn-1'}, rally = {'exit-left','exit-left-2','exit-left-3'}, target = {'crashsite-nest-1'}, mission = 'colonize', } } } waves['crash-site-colony-2'] = table.deepcopy(waves['crash-site-colony-1']) waves['crash-site-colony-2'].vector.target = {'crashsite-net-2'} waves['crash-site-colony-3'] = table.deepcopy(waves['crash-site-colony-1']) waves['crash-site-colony-3'].vector.target = {'crashsite-net-3'} waves['crash-site-colony-4'] = table.deepcopy(waves['crash-site-colony-1']) waves['crash-site-colony-4'].vector.target = {'crashsite-net-4'} waves['crash-site-colony-5'] = table.deepcopy(waves['crash-site-colony-1']) waves['crash-site-colony-5'].vector.target = {'crashsite-net-5'} waves['packup-2'] = { name = 'packup', --costs can be an integer or a table. If a table is provided then the modifiers are checked cost = 2400*500, -- Each modifier is calculated and returns a number between 0 and 1. The average of all modifiers is used to determine the -- actual cost. modifiers = {}, wave = { minimum = 1, maximum = 3 }, vector = { { spawn = {'spawn-1'}, rally = {'exit-left'}, target = {'crash-site'}, mission = 'attack', } } } waves['pistol-1'] = { name = 'pistol', cost = { minimum = 2400*200, maximum = 2400*1200 }, modifiers = { { name = "ten_minutes", weight = 1 }, }, wave = 2, vector = { { spawn = {'spawn-1'}, rally = {'rally-4'}, target = {'target-1','target-5'}, mission = 'attack', } } } waves['one-turret-one-vector'] = { name = 'one-turret-one-vector', cost = { minimum = 2400*100, maximum = 2400*200, }, modifiers = { { name = 'ten_minutes', weight = 1 }, }, wave = { minimum = 2, maximum = 4 }, vector = { { spawn = {'spawn-1'}, rally = {'rally-4'}, target = {'target-1','target-5'}, mission = 'attack', } } } waves['fortify-1'] = { name = 'fortify', --costs can be an integer or a table. If a table is provided then the modifiers are checked cost = { minimum = 2400*20, maximum = 2400*150 }, -- Each modifier is calculated and returns a number between 0 and 1. The average of all modifiers is used to determine the -- actual cost. modifiers = { { name = "get_turrets_effect", weight = 1 }, { name = 'ten_minutes', weight = 1 }, }, wave = { minimum = 3, maximum = 8 }, vector = { { spawn = {'spawn-3'}, rally = {'rally-4'}, target = {'target-1','target-3','target-5'}, mission = 'attack', }, { spawn = {'spawn-2'}, rally = {'rally-2'}, target = {'target-4'}, mission = 'attack', } } } waves['fortify-2'] = table.deepcopy(waves['fortify-1']) waves['fortify-2'].wave = {minimum = 9,maximum = 13} waves['fortify-3'] = table.deepcopy(waves['fortify-1']) waves['fortify-3'].wave = {minimum = 13,maximum = 20} waves['fortify-4'] = table.deepcopy(waves['fortify-1']) waves['fortify-4'].wave = 24 waves['survive'] = { name = 'survive', --costs can be an integer or a table. If a table is provided then the modifiers are checked cost = { minimum = 1100, maximum = 2400*10 }, -- Each modifier is calculated and returns a number between 0 and 1. The average of all modifiers is used to determine the -- actual cost. modifiers = { { name = "get_final_research_progress", weight = 1 }, }, wave = { minimum = 7, maximum = 38 }, vector = { { spawn = {'spawn-2'}, rally = {'rally-1','rally-2','rally-3'}, target = {'target-4','target-2','pond','target-3'}, mission = 'attack', }, { spawn = {'spawn-3'}, rally = {'rally-4'}, target = {'target-1','target-5','target-3','target-2'}, mission = 'attack', } } } waves['survive-1'] = table.deepcopy(waves['survive']) waves['survive-1'].wave = {minimum = 3,maximum = 9} waves['survive-2'] = table.deepcopy(waves['survive']) waves['survive-2'].wave = {minimum = 9,maximum = 15} waves['survive-3'] = table.deepcopy(waves['survive']) waves['survive-3'].wave = {minimum = 15,maximum = 22} waves['survive-4'] = table.deepcopy(waves['survive']) waves['survive-4'].wave = {minimum = 22,maximum = 38} return waves