forked from github/server
Merge branch 'master' of github.com:badgerman/eressea
This commit is contained in:
commit
9ce996051d
|
@ -0,0 +1,8 @@
|
|||
language: c
|
||||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
script: s/travis-build
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -qq libtolua-dev liblua5.1-dev libncurses5-dev libsqlite3-dev libxml2-dev
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
ln -sf conf/eressea.ini
|
||||
[ -d build ] || mkdir build
|
||||
cd build && cmake .. \
|
||||
-DCMAKE_MODULE_PATH=$PWD/../cmake/Modules \
|
||||
-DCMAKE_BUILD_TYPE=Debug .. && \
|
||||
make && cd .. &&
|
||||
build/eressea/test_eressea &&
|
||||
build/eressea/eressea -v0 scripts/run-tests.lua
|
|
@ -287,9 +287,8 @@ void setup_guard(guard_fixture *fix, bool armed) {
|
|||
|
||||
if (armed) {
|
||||
item_type *itype;
|
||||
weapon_type *wtype;
|
||||
itype = it_get_or_create(rt_get_or_create("sword"));
|
||||
wtype = new_weapontype(itype, 0, 0.0, NULL, 0, 0, 0, SK_MELEE, 2);
|
||||
new_weapontype(itype, 0, 0.0, NULL, 0, 0, 0, SK_MELEE, 2);
|
||||
i_change(&u->items, itype, 1);
|
||||
set_level(u, SK_MELEE, 2);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue