1-- ======================================================================= 2-- Minimum Starting Conditions for Atlanteans 3-- ======================================================================= 4 5include "scripting/infrastructure.lua" 6 7set_textdomain("tribes") 8 9return { 10 -- TRANSLATORS: This is the name of a starting condition 11 descname = _ "Poor Hamlet", 12 -- TRANSLATORS: This is the tooltip for the "Poor Hamlet" (minimum) starting condition 13 tooltip = _"Start the game with just a warehouse and the bare minimum for bootstrapping an economy. Warning: the AI can't successfully start from this", 14 func = function(player, shared_in_start) 15 local sf = wl.Game().map.player_slots[player.number].starting_field 16 if shared_in_start then 17 sf = shared_in_start 18 else 19 player:allow_workers("all") 20 end 21 22 prefilled_buildings(player, { "atlanteans_warehouse", sf.x, sf.y, 23 wares = { 24 log = 2, 25 planks = 2, 26 corn = 3, 27 hammer = 1, 28 --Woodcutter, sawyer, toolsmith: 29 saw = 3, 30 pick = 1, 31 shovel =1 , 32 milking_tongs = 1, 33 -- Smelter: 34 iron = 1, 35 -- Baker, blackroot farmer, farmer, geologist, 3x miner, smoker: 36 iron_ore = 8 37 }, 38 soldiers = { 39 [{0,0,0,0}] = 1, 40 } 41 }) 42 43 player:reveal_fields(sf:region(10)) 44 player:conquer(sf, 9) 45 player:send_message(_"Be careful", _"You have only one iron for each tool you will need to start your economy. Make sure no unneeded tool is created.") 46 47 check_trees_rocks_poor_hamlet(player, sf, "atlanteans_warehouse", {granite = 4, planks = -1}, {log = 1, planks = 1, granite = 1}) 48 end 49} 50