Enno Rehling
1498f2e1d7
refactor rawmaterial_type.
...
still have to decide if we need it at all.
2017-02-22 21:10:22 +01:00
Enno Rehling
ce2ea95880
begin refactoring limited resources.
2017-02-22 20:28:34 +01:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
aee68fbd0f
github issue #658
...
MACHE 1 EISEN use 1 iron even with savings.
2017-02-18 11:19:42 +01:00
Enno Rehling
2328975dc2
do not use floats for material-save.
...
abusing variants for storing short fractions.
remove unused RMF_SAVERESOURCE.
2017-02-17 21:45:10 +01:00
Enno Rehling
a624915a06
error message if building is required.
...
was broken in recent commit.
also fix reference counts.
2017-02-16 20:26:34 +01:00
Enno Rehling
a5dfe12d48
initialize variable
2017-02-16 19:38:09 +01:00
Enno Rehling
20ff8981df
trying to extract allocation modifiers into a separate function
2017-02-16 10:19:59 +01:00
Enno Rehling
50083fc668
BUG 2279: too many resources used.
...
diddling the resource-save formula until test passes.
2017-02-15 21:16:54 +01:00
Enno Rehling
5680057e7f
adding simple test for MAKE <ITEM>
2017-02-15 17:09:23 +01:00
Enno Rehling
08e14f3095
coverity warnings
2017-02-14 16:23:40 +01:00
Enno Rehling
bd836b76e1
channel XML race.parameters through a single, tested, function
2017-02-05 16:55:51 +01:00
Enno Rehling
0b3d15f4b3
eliminate unused other_cost parameter.
...
cost of other races is defined by their recruitcost.
2017-02-04 23:46:26 +01:00
Enno Rehling
b27e1a01aa
continued work for MSVC compilation
2017-01-10 18:07:36 +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
cc227fb707
merge monster.c and monsters.c
...
move RCF_DESERT handling to monsters.c
2016-12-23 18:05:38 +01:00
Enno Rehling
925d65c206
move entertainmoney to economy
2016-11-22 12:22:07 +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
772bc427aa
Merge branch 'develop' of github.com:ennorehling/eressea into develop
2016-11-15 20:44:02 +01:00
Enno Rehling
c1f468ceb0
begin to declutter config.c
2016-11-15 20:43:36 +01:00
Enno Rehling
ce4a3c14b3
convert from atoi to atoip.
...
most numbers in commands cannot be negative.
2016-11-14 22:27:44 +01:00
Enno Rehling
29d072a186
remove the old ORCIFICATION code.
2016-11-13 17:13:59 +01:00
Enno Rehling
fec9945458
Fixing Bugs 2246 & 2251
...
parse error message for bad orders:
https://bugs.eressea.de/view.php?id=2251
report when TEMP-Units cannot recuit:
https://bugs.eressea.de/view.php?id=2246
2016-11-05 18:20:56 +01:00
Enno Rehling
467ffe2db0
include guard.h directly, not through laws.h
2016-11-01 22:11:10 +01:00
Enno Rehling
754ad78db7
WIP: remove GUARD_* flags.
...
TODO: does not compile
TODO: write new guard.test.c tests
2016-10-31 07:45:06 +01:00
Enno Rehling
eb7199450d
fix Linux compilation.
2016-10-30 09:47:18 +01:00
Enno Rehling
2c0f708d1b
WIP: remove at_guard, GUARD_TREES and GUARD_MINING
...
TODO: fix tests
TODO: write new guard coverage
2016-10-30 09:18:19 +01:00
Enno Rehling
9287d0c1b4
unused function
2016-10-07 22:06:47 +02:00
Enno Rehling
38721e2046
remove all mention of centaurs from the code and configuration
2016-10-07 19:33:50 +02:00
Enno Rehling
d3efc265c3
calculating income for dragons is no longer hard-coded
2016-10-04 09:14:49 +02:00
Enno Rehling
cbd1e8c457
Fixing https://bugs.eressea.de/view.php?id=2234
...
remove the MTF_VITAL materials flag.
remove remaining BLD_MAINTAINED vs BLD_WORKING code.
2016-10-01 18:34:38 +02:00
Enno Rehling
2c0f0bfc1e
reduce get_race calls by a few more
2016-09-22 15:51:11 +02:00
Enno Rehling
7d88dddcc3
Merge pull request #578 from ennorehling/cache-buiding-type
...
add an API for caching the results of bt_find
2016-09-19 20:14:27 +02:00
Enno Rehling
a7fbe4901b
eliminate old_race. make the catdragon act like a dragon.
2016-09-19 18:42:14 +02:00
Enno Rehling
d139ee08d1
caching building_type in economy code
2016-09-19 04:15:26 +02:00
Enno Rehling
b3c31856aa
add (failing) test for recruiting into existing units.
2016-09-18 11:34:54 +02:00
Enno Rehling
3a438ffd4f
I have questions about this
2016-09-10 21:12:19 +02:00
Enno Rehling
d9e541843b
further reduce number of bt_find calls.
2016-08-30 09:36:09 +01:00
Enno Rehling
1a1ec3f363
cleanup: remove static curse_type variables.
2016-08-29 20:12:31 +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
43090e1492
remove any reference to old two-stage maintenance.
...
getting rid of a lot of dead code.
2016-08-21 20:02:20 +02:00
Enno Rehling
901cf97cb2
refactoring the "nocostbuilding" curse.
...
- remove C_NOCOST constant and other baggage
- refactor maintenance a bit
2016-08-21 20:02:19 +02:00
Enno Rehling
3d5c7ba8fb
refactoring: move produceexp from unit.c to study.c
2016-03-09 14:50:54 +01:00
Steffen Mecke
1f4c521ac8
encapsulate r->land->peasants, money, horses, herbs, morale
2015-12-08 17:57:23 +01:00
Enno Rehling
950bf91850
fix merge conflict in PR #397 (config changes)
2015-11-26 18:48:21 +01:00
Enno Rehling
6ad5db8e22
Merge pull request #397 from stm2/taxing_message
...
taxing without skill does not fail silently any more
2015-11-26 18:43:57 +01: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
Enno Rehling
64b84481b2
refactoring: move parsing and allies code out of config.c
2015-11-24 18:52:09 +01:00
Enno Rehling
2e392b4d7c
eliminate even more static variable caches
2015-11-22 16:14:27 +01:00
Enno Rehling
edcd79d044
add a config_token function to look for a token inside a list
2015-11-22 12:20:33 +01:00