Skip to content

Commit 6c39653

Browse files
committed
Merge branch 'demo_report' into stm-web
2 parents 7913f72 + 1068cff commit 6c39653

19 files changed

+990
-8
lines changed

demo/eressea.ini

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[game]
2+
name = Eressea
3+
id = 2
4+
5+
verbose = 0
6+
locales = de,en
7+
8+
[lua]
9+
install = ..
10+
paths = scripts
11+
maxnmrs = 20
12+
rules = e2

demo/run_demo

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
ROOT=$(git rev-parse --show-toplevel)
5+
export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"
6+
BUILD=$ROOT/build
7+
8+
RUN_ERESSEA=$BUILD/eressea/eressea
9+
10+
if [ ! -e $BUILD ]; then
11+
echo "cannot find build directory $BUILD in $ROOT. did you run cmake-init?"
12+
exit
13+
fi
14+
15+
cd $ROOT/demo
16+
rm -rf reports orders.txt score score.alliances datum turn
17+
$RUN_ERESSEA -v1 ../scripts/run-demo.lua
18+
$RUN_ERESSEA --version
19+
20+
cd -

res/core/messages.xml

+1
Original file line numberDiff line numberDiff line change
@@ -5434,6 +5434,7 @@
54345434
<type>
54355435
<arg name="dead" type="int"/>
54365436
<arg name="peasants" type="resource"/>
5437+
<arg name="round" type="int"/>
54375438
</type>
54385439
</message>
54395440
<message name="error131" section="errors">

res/translations/messages.de.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -2413,7 +2413,7 @@ msgid "sp_confusion_effect_0"
24132413
msgstr "\"$unit($mage) stimmt einen seltsamen Gesang an. Ein plötzlicher Tumult entsteht, der sich jedoch schnell wieder legt.\""
24142414

24152415
msgid "pest"
2416-
msgstr "\"Hier wütete die Pest, und $int($dead) $resource($peasants,$dead) $if($eq($dead,1), \"starb\", \"starben\").\""
2416+
msgstr "\"Hier wütete die Pest, und $int($dead) $resource($peasants,$dead) $if($eq($dead,1), \"starb\", \"starben\") ($int($round)).\""
24172417

24182418
msgid "wormhole_exit"
24192419
msgstr "\"$unit($unit) reist durch ein Wurmloch nach $region($region).\""

s/bash_source

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# luarocks install lunitx
2+
eval $(luarocks path)
3+
export LUA_PATH="$LUA_PATH;;"
4+

0 commit comments

Comments
 (0)