From a31dd95de083a8140ff9a5536b5fad6ddb17ed7e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 19 Jul 2015 20:05:38 +0200 Subject: [PATCH] give the first unit a sword, set skills from the equipment-config, not script make the preview link use a soft-link, not calculate the build-directory again. --- conf/e2/config.xml | 72 +++++++++++++++++++++---------------------- s/preview | 9 +----- scripts/newplayer.lua | 1 - 3 files changed, 36 insertions(+), 46 deletions(-) diff --git a/conf/e2/config.xml b/conf/e2/config.xml index f5b5a189c..dd672c5aa 100644 --- a/conf/e2/config.xml +++ b/conf/e2/config.xml @@ -1,62 +1,64 @@ - + - - - + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + - - - - - + + + + + - @@ -97,11 +99,7 @@ - - - - diff --git a/s/preview b/s/preview index c89f4c3ca..157628f42 100755 --- a/s/preview +++ b/s/preview @@ -1,12 +1,5 @@ #!/bin/bash -MACHINE=`uname -m` -[ -z "$CC" ] && [ ! -z `which clang` ] && CC="clang" -[ -z "$CC" ] && [ ! -z `which gcc` ] && CC="gcc" -[ -z "$CC" ] && [ ! -z `which tcc` ] && CC="tcc" -[ -z "$CC" ] && [ ! -z `which cc` ] && CC="cc" -BUILD="build-$MACHINE-$CC-Debug" - function usage() { cat <] [-g ] [-f ] command [args] @@ -89,7 +82,7 @@ rm -rf reports mkdir -p reports SUPP="$SOURCE/share/ubuntu-12_04.supp" -SERVER="$SOURCE/$BUILD/eressea/eressea" +SERVER="$SOURCE/Debug/eressea/eressea" VALGRIND=$(which valgrind) if [ ! -z $VALGRIND ]; then SERVER="$VALGRIND --suppressions=$SUPP --error-exitcode=1 --leak-check=no $SERVER" diff --git a/scripts/newplayer.lua b/scripts/newplayer.lua index e5e194efa..9ac546d83 100644 --- a/scripts/newplayer.lua +++ b/scripts/newplayer.lua @@ -22,7 +22,6 @@ local function seed(r, email, race, lang) equip_unit(u, "new_faction") equip_unit(u, "first_unit") equip_unit(u, "first_" .. race, 7) -- disable old callbacks - u:set_skill("perception", 30) unit.create(f, r, 5):set_skill("mining", 30) unit.create(f, r, 5):set_skill("quarrying", 30) return f