Skip to content

Instantly share code, notes, and snippets.

@SirVer
Created November 12, 2011 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SirVer/1360742 to your computer and use it in GitHub Desktop.
Save SirVer/1360742 to your computer and use it in GitHub Desktop.
use("aux", "formatting")
function image_line(image, count, text)
local imgs={}
for i=1,count do
imgs[#imgs + 1] = image
end
local imgstr = table.concat(imgs, ";")
if text ~= nil then
return rt("image=" .. imgstr .. " image-align=right", text)
else
return rt("image=" .. imgstr, "")
end
end
return {
text =
rt(h1("The Barbarian Lumberjack")) ..
rt(h2("General:")) ..
rt(p(_
[[The lumberjack clears the landscape from trees enabling you to build new houses.<br>
In doing so he also provides you with trunks, which are the Barbarians' basic building material.<br>
The lumberjack works outward starting with the tree closest to his house up to the maximum range of 10.
Only fully grown specimen of all tree species are being felled.]]
)) ..
image_line("pics/small.png", 1, h2(_"Space required")) ..
rt(h2("Building Cost")) ..
image_line("tribes/barbarians/trunk/menu.png", 3) ..
rt(p(_"If there were something special to say about this building, I'd do so here, otherwise I'd leave this blank")) ..
image_line("tribes/barbarians/trunk/menu.png", 2, h2(_"Return on dismantling"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment