Enno Rehling
9e44b8a989
kaputte umlaute ersetzt, ascii 4 lyfe
2019-03-03 09:42:42 +01:00
Enno Rehling
25b5f797e9
add building_create, too
2018-11-01 21:18:24 +01:00
Enno Rehling
fc4f32f8e0
read_building_reference does not need a callback
2018-11-01 21:13:05 +01:00
Enno Rehling
2e5e8347ac
Bug 2489: Kill the SIEGE command, forever.
2018-09-09 21:01:10 +02:00
Enno Rehling
062abe8102
refactor siege property w. getter/setter
2018-09-09 17:10:18 +02:00
Enno Rehling
e5d3d77c06
begin parsing buildings.
2018-05-01 18:52:48 +02:00
Enno Rehling
b5b9611a16
eliminate construction.improvement,
...
create building_type.stages instead.
2018-05-01 15:40:11 +02:00
Enno Rehling
bf591ecec5
BUG 2415: eliminate at_potiondelay and WdL delay.
...
BUG 2419: refactor ointment and healing, add tests for USE
2018-02-15 20:25:58 +01:00
Enno Rehling
5576ef37b6
remove building_action feature, it seems that it isn't in use.
2017-12-09 21:20:20 +01:00
Enno Rehling
0a9705809b
fix some bugs created during conversions (thanks, tests!)
2017-09-22 17:19:55 +02:00
Enno Rehling
3aed0b1ee5
fix gcc compilation
2017-09-22 16:39:46 +02:00
Enno Rehling
902e2126c9
WIP: change the resolve.h API
2017-09-21 17:29:01 +02:00
Enno Rehling
89e162c12a
change resolve.h api to use int, not variant.
2017-09-19 11:42:02 +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
11d9afc62e
BUG 2322: Test and bugfix for castle names.
2017-05-12 22:05:14 +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
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
1112890293
use building_taxes everywhere.
...
make it return an integer, not double.
2017-04-28 20:10:20 +02:00
Enno Rehling
a313e78de5
move building names from function to construction data.
2017-04-26 21:44:24 +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
485e8f0ce4
Revert "add failing test for skill bonus from mine, start work"
...
This reverts commit ab87b1da85
.
2017-03-23 19:28:56 +01:00
Enno Rehling
ab87b1da85
add failing test for skill bonus from mine, start work
2017-03-23 18:51:30 +01:00
Enno Rehling
3a985108a6
change all magic resistance to use fractions.
2017-02-24 20:47:47 +01:00
Enno Rehling
3274065004
reduce complexity of building_protection.
2017-02-22 19:38:46 +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
044953e4ab
add a function to compare size of occupied castles
2017-01-26 18:06:49 +01:00
Enno Rehling
d94cde67a4
kill autoconf.h, replace platform.h for C99 compatibility work
2017-01-26 18:03:48 +01:00
Enno Rehling
a4badc0a75
remove quicklist shim, use selist everywhere
2017-01-26 17:41:21 +01:00
Enno Rehling
e52cf75c59
remove autoconf.h from platform.h, fix lots of includes
2016-11-25 20:15:11 +01:00
Enno Rehling
88f5bfaf47
move wages and related functionality to buildin.c
2016-11-23 17:36:39 +01: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
640ba05876
allow local caching of bt_find results
2016-09-19 04:04:02 +02: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
1f3413a9b4
annotations
2016-08-29 08:55:59 +01:00
Enno Rehling
0d609f2115
test magicwalls and strongwalls effects on buildings.
2016-08-29 08:53:09 +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
db5b90e80b
clarify building_type.maxsize and add error logging for bug 2221.
...
https://bugs.eressea.de/view.php?id=2221
2016-08-06 13:52:29 +02:00
Enno Rehling
d48d9a25e0
forward-declare struct gamedata
2016-02-24 11:54:23 +01:00
Enno Rehling
8a9d617aa3
read_referernce takes a gamedata object.
...
with all the trimmings that requires,
this is for github issue $479
2016-02-24 11:53:22 +01:00
Steffen Mecke
5326bbd9e4
refactored inside_building/building_is_active/active_building
2015-11-16 02:13:48 +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
4eb4ff40ac
https://bugs.eressea.de/view.php?id=2155
...
monsters do not attack units inside a castle or watch
dragons do not attack guards
2015-11-11 14:36:56 +01:00
Enno Rehling
24ff4c301d
refactor: separate building_is_active from inside_building
2015-11-02 14:18:50 +01:00
Enno Rehling
c54cbfd472
fix copyright notice
2015-01-30 22:10:29 +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
CTD
34fc1b3d34
Variablen leserlicher gemacht
2015-01-12 10:55:07 +01:00
CTD
ac3195851a
Erstmal nur der Burgenbonus
...
Das mit der Größe kommt noch mal extra, der Übersicht wegen.
Sinvoller weise kann man den Bonus jetzt in der castle.xml einstellen.
Mit neuen Defaultwerten in den XML Dateien.
2015-01-09 15:53:14 +01:00
Enno Rehling
9f09b9b915
fixed memory leaks in tests, thanks to valgrind
2014-12-30 23:34:24 +01:00
Enno Rehling
d9457a2488
rewrite of the Lua module system.
...
At this time, only E2 is working.
Fixing a lot of old code (monster is no longer id 0).
package.paths configured from eressea.ini
install directory configured from eressea.ini
moving building_action into a seaprate module (it's deprecated)
2014-07-26 22:52:25 +02:00