Enno Rehling
|
d2eccd56b9
|
defaults
|
2018-05-01 19:39:41 +02:00 |
|
Enno Rehling
|
b5b9611a16
|
eliminate construction.improvement,
create building_type.stages instead.
|
2018-05-01 15:40:11 +02:00 |
|
Enno Rehling
|
432a8d432d
|
messy merge of cppcheck fixes into develop
|
2018-02-25 20:41:53 +01:00 |
|
Enno Rehling
|
079a55fe41
|
cppcheck warnings
|
2018-02-25 20:06:47 +01:00 |
|
Enno Rehling
|
d15684a546
|
fix test_process_turn failure.
move turn global to calendar.
promote calendar module to kernel.
|
2018-02-14 20:01:36 +01:00 |
|
Enno Rehling
|
75f41a7169
|
fix crashes on 64-bit systems (not all 0s are created equal).
|
2018-01-14 09:38:26 +01:00 |
|
Enno Rehling
|
5b1d27542a
|
reduce dependence on platform.h.
gradually stop using MAX and MIN (mistakes were made).
|
2017-12-28 18:29:40 +01:00 |
|
Enno Rehling
|
cff4e12fbd
|
celan up tests, rename test_cleanup -> test_teardown.
|
2017-12-27 19:58:39 +01:00 |
|
Enno Rehling
|
b79db40f41
|
retrofit a test for buildingcapacity.
|
2017-07-17 12:39:41 +02:00 |
|
Enno Rehling
|
1bc23beccc
|
remove btypr->name funcptr and btype->attribs.
why weren't these already gone?
|
2017-05-12 22:12:22 +02:00 |
|
Enno Rehling
|
898c12e99a
|
XML construction elements never have a building.
required buildings are encoded by RMT_PROD_REQUIRE.
improved error messaging.
|
2017-05-06 15:53:21 +02:00 |
|
Enno Rehling
|
b74d18b8c9
|
bt_register is non-standard API, hide it.
factor out st_register for readability.
|
2017-05-06 15:39:09 +02:00 |
|
Enno Rehling
|
e5f898ce87
|
bugfix: portals crash buildingtype().
only type that has no construction.
|
2017-04-30 03:42:39 +02:00 |
|
Enno Rehling
|
7a289ceb86
|
simplify building_taxes, eliminate dead lua callbacks.
|
2017-04-29 19:21:48 +02:00 |
|
Enno Rehling
|
3b9a6e45a1
|
turns out: btype->age is never used.
|
2017-04-29 13:53:28 +02:00 |
|
Enno Rehling
|
3f8de76b9d
|
fix largestbuilding, broken in prev commit.
|
2017-04-29 13:37:34 +02:00 |
|
Enno Rehling
|
bdc7457a08
|
additional testing for largestbuilding and comparisons.
|
2017-04-28 21:30:05 +02:00 |
|
Enno Rehling
|
e72155a563
|
WIP: reimplemented production modifiers.
The system itself seems to work, but some Lua tests are still failing.
|
2017-04-02 14:43:53 +02:00 |
|
Enno Rehling
|
be0b54494e
|
clean up some tests.
the test locale gets some extra strings.
test_create_world is bad, stop using it. unfinished.
|
2017-03-10 21:29:37 +01:00 |
|
Enno Rehling
|
3a985108a6
|
change all magic resistance to use fractions.
|
2017-02-24 20:47:47 +01:00 |
|
Enno Rehling
|
807fe607e7
|
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
|
2017-02-22 19:38:56 +01:00 |
|
Enno Rehling
|
3274065004
|
reduce complexity of building_protection.
|
2017-02-22 19:38:46 +01:00 |
|
Enno Rehling
|
deb39f6b8f
|
test building_effsize does what it does
|
2017-02-22 14:27:13 +01:00 |
|
Enno Rehling
|
77cbd04cfa
|
BENENNE REGION ist jeder Einheit des Regionsbesitzers erlaubt
|
2017-01-25 20:57:54 +01:00 |
|
Enno Rehling
|
b170a30faa
|
add a function to compare size of occupied castles
|
2017-01-25 18:17:19 +01:00 |
|
Enno Rehling
|
8b7dae6977
|
kill autoconf.h, replace platform.h for C99 compatibility work
|
2017-01-10 16:31:05 +01:00 |
|
Enno Rehling
|
ec4060cb9a
|
fix curse-vigour calculation math.
also fix a ton of small other niggles from pvs-studio.
|
2016-11-20 19:08:39 +01:00 |
|
Enno Rehling
|
640ba05876
|
allow local caching of bt_find results
|
2016-09-19 04:04:02 +02:00 |
|
Enno Rehling
|
d9e541843b
|
further reduce number of bt_find calls.
|
2016-08-30 09:36:09 +01:00 |
|
Enno Rehling
|
5bb9a10a46
|
is_building_type should be a quicker way to test for a building type than bt_find.
|
2016-08-30 09:13:59 +01:00 |
|
Enno Rehling
|
a42bd9c3bf
|
remove the BLD_WORKING flag.
it's all about BLD_MAINTAINED now.
fix region.blocked (Lua property).
|
2016-08-21 20:12:28 +02:00 |
|
Enno Rehling
|
0410581907
|
Merge branch 'market_tests' of https://github.com/stm2/server into stm2-market_tests
Conflicts:
src/move.test.c
src/study.c
|
2015-11-26 18:42:23 +01:00 |
|
Steffen Mecke
|
fe49f01bb6
|
added moa tests for buildingtype_exists
|
2015-11-25 23:25:59 +01:00 |
|
Steffen Mecke
|
5326bbd9e4
|
refactored inside_building/building_is_active/active_building
|
2015-11-16 02:13:48 +01:00 |
|
Steffen Mecke
|
251126054e
|
add missing NULL check to in_safe_building
|
2015-11-13 00:50:54 +01:00 |
|
Enno Rehling
|
7fb5adc7af
|
in_safe_building needs a test and some changes to logic
github issue #393 fixed
|
2015-11-12 17:55:39 +01:00 |
|
Enno Rehling
|
072bfd3912
|
testin building_is_active
testing multiple units in one building
|
2015-11-02 15:06:30 +01:00 |
|
Enno Rehling
|
4bf2509fb3
|
test inside_building vs. overflow
fix default building capacity (should be 1 per size)
|
2015-11-02 14:56:58 +01:00 |
|
Enno Rehling
|
605711c13a
|
constructor st_get_or_create sets ship_type to default values
xmlreader does not mess with values already set.
|
2015-02-03 17:10:29 +01:00 |
|
Enno Rehling
|
a4e6f4874c
|
building type construction is in bt_get_or_create, and only there.
+ not in jsonconf
+ not in xmlreader (no test for this)
|
2015-02-02 19:52:24 +01:00 |
|
Enno Rehling
|
abca25d1d5
|
fix indentation in every file
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
|
2015-01-30 20:37:14 +01:00 |
|
Enno Rehling
|
9f09b9b915
|
fixed memory leaks in tests, thanks to valgrind
|
2014-12-30 23:34:24 +01:00 |
|
Enno Rehling
|
a55cb13924
|
make valgrind happy when running tests (cleanup)
|
2014-12-30 02:02:10 +01:00 |
|
Enno Rehling
|
1af315ebf2
|
move magic out of kernel, into src.
clean up/remove a ton of includes, especially of types.h (include in header if you need it, not in every .c file).
|
2014-11-01 12:57:01 +01:00 |
|
Enno Rehling
|
125fd519a8
|
rename test files.
add tests for keyword.c, incomplete.
|
2014-06-16 08:01:59 -07:00 |
|