This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "lunit" | |
| module("tests.e2.trees", package.seeall, lunit.testcase ) | |
| function setup() | |
| eressea.game.reset() | |
| eressea.settings.set("rules.food.flags", "4") -- food is free | |
| eressea.settings.set("NewbieImmunity", "0") | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function test_trolls_ride_carts() | |
| local r0 = region.create(0, 0, "plain") | |
| local r1 = region.create(1, 0, "plain") | |
| local r2 = region.create(2, 0, "plain") | |
| local r3 = region.create(3, 0, "plain") | |
| local r4 = region.create(4, 0, "plain") | |
| local f = faction.create("troll") | |
| -- 1. 20 trolls can pull 5 loaded carts: | |
| local u1 = unit.create(f, r0, 20) | |
| u1:add_item("cart", 5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function test_bug_2605() | |
| local r0 = region.create(0, 0, "plain") | |
| local r1 = region.create(1, 0, "plain") | |
| local r2 = region.create(2, 0, "plain") | |
| local r3 = region.create(3, 0, "plain") | |
| local f = faction.create("human") | |
| -- 1. two walkers, each with two horses and a cart: | |
| local u1 = unit.create(f, r0, 2) | |
| u1:add_item("horse", 2) | |
| u1:add_item("cart", 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function test_rider_leads_horses() | |
| local r0 = region.create(0, 0, "plain") | |
| local r1 = region.create(1, 0, "plain") | |
| local r2 = region.create(2, 0, "plain") | |
| local r3 = region.create(3, 0, "plain") | |
| local f = faction.create("human") | |
| -- lead 1 extra horse per level while riding: | |
| local u1 = unit.create(f, r0, 1) | |
| u1:set_skill("riding", 1) | |
| u1:add_item("horse", 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "charset": "UTF-8", | |
| "locale": "de", | |
| "noskillpoints": 1, | |
| "date": 1509041527, | |
| "Spiel": "Drachensgrab", | |
| "Konfiguration": "Standard", | |
| "Koordinaten": "Hex", | |
| "max_units": 50, | |
| "Basis": 36, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Basis": 36, | |
| "home": "0 1 2", | |
| "charset": "UTF-8", | |
| "noskillpoints": 1, | |
| "PARTEI": [ | |
| { | |
| "id": 1045107, | |
| "locale": "de", | |
| "age": 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VERSION 66 | |
| 36;Basis | |
| 0 1 2;home | |
| "UTF-8";charset | |
| 1;noskillpoints | |
| PARTEI 1045107 | |
| "de";locale | |
| 8;age | |
| PARTEI 683844 | |
| "de";locale |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| while [ ! -z $1 ] ; do | |
| tmpfile=$(mktemp eressea.XXX) | |
| iconv -f latin1 -t utf-8 < $1 | \ | |
| perl -pe 's/ß/ss/; s/ä/ae/; s/ü/ue/; s/ö/oe/;' \ | |
| > $tmpfile && \mv $tmpfile $1 | |
| shift 1 | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'config' | |
| filename = get_turn() .. '.dat' | |
| eressea.read_game(filename) | |
| maxps = { | |
| ['plain'] = 10000, | |
| ['mountain'] = 1000, | |
| ['glacier'] = 100, | |
| ['highland'] = 4000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from turtle import * | |
| def plot(str, w): | |
| i = 0 | |
| while (i+2 < len(str)): | |
| p = str[i] | |
| a = (ord(str[i+1]) - ord('0')) | |
| d = (ord(str[i+2]) - ord('0')) | |
| i = i + 3 | |
| if p == 'c': |