1-- ======================================================================= 2-- Start conditions for Headquarters 3-- ======================================================================= 4 5include "scripting/infrastructure.lua" 6 7set_textdomain("tribes") 8 9init = { 10 -- TRANSLATORS: This is the name of a starting condition 11 descname = _ "Headquarters", 12 -- TRANSLATORS: This is the tooltip for the "Headquarters" starting condition 13 tooltip = _"Start the game with your headquarters only", 14 func = function(player, shared_in_start) 15 16 local sf = wl.Game().map.player_slots[player.number].starting_field 17 if shared_in_start then 18 sf = shared_in_start 19 else 20 player:allow_workers("all") 21 end 22 23 hq = prefilled_buildings(player, { "frisians_headquarters", sf.x, sf.y, 24 wares = { 25 log = 40, 26 granite = 50, 27 reed = 50, 28 brick = 80, 29 clay = 30, 30 water = 10, 31 fish = 10, 32 meat = 10, 33 fruit = 10, 34 barley = 5, 35 ration = 20, 36 honey = 10, 37 smoked_meat = 5, 38 smoked_fish = 5, 39 mead = 5, 40 meal = 2, 41 coal = 20, 42 iron = 5, 43 gold = 4, 44 iron_ore = 10, 45 bread_frisians = 15, 46 honey_bread = 5, 47 beer = 5, 48 cloth = 5, 49 fur = 10, 50 fur_garment = 5, 51 sword_short = 5, 52 hammer = 10, 53 fire_tongs = 2, 54 bread_paddle = 2, 55 kitchen_tools = 2, 56 felling_ax = 3, 57 needles = 1, 58 basket = 2, 59 pick = 5, 60 shovel = 5, 61 scythe = 3, 62 hunting_spear = 2, 63 fishing_net = 3, 64 }, 65 workers = { 66 frisians_blacksmith = 3, 67 frisians_baker = 1, 68 frisians_brewer = 1, 69 frisians_builder = 10, 70 frisians_charcoal_burner = 1, 71 frisians_claydigger = 2, 72 frisians_brickmaker = 2, 73 frisians_carrier = 40, 74 frisians_reed_farmer = 2, 75 frisians_berry_farmer = 2, 76 frisians_fruit_collector = 2, 77 frisians_farmer = 1, 78 frisians_landlady = 1, 79 frisians_smoker = 1, 80 frisians_geologist = 4, 81 frisians_woodcutter = 3, 82 frisians_beekeeper = 1, 83 frisians_miner = 4, 84 frisians_miner_master = 2, 85 frisians_forester = 2, 86 frisians_stonemason = 2, 87 frisians_reindeer = 5, 88 frisians_trainer = 3, 89 frisians_seamstress_master = 1, 90 }, 91 soldiers = { 92 [{0,0,0,0}] = 45, 93 } 94 }) 95end 96} 97 98return init 99