Enno Rehling
847e6f3e43
limit island size from configuration, deal with existing units.
2017-07-27 16:36:45 +02:00
Enno Rehling
822292c99a
do not seed factions when creating islands with 'B'.
2017-07-27 16:16:54 +02:00
Enno Rehling
3151fe9f9b
ignore comments in newfactions
2017-07-23 09:27:28 +02:00
Enno Rehling
17145eaf10
make region:set_resource do the right thing
...
also for adamantium
2017-03-22 20:37:09 +01:00
Enno Rehling
d633c2a9fb
BUG 2310: counting units and people.
...
reduce number of count_all loops made,
make f->num_units and f->num_people be correct.
2017-03-11 19:36:26 +01:00
Enno Rehling
49d8a03eca
remote the item_type.use funpointer.
2017-02-27 20:41:05 +01:00
Enno Rehling
1b93c14806
Test E2 items in E2 only.
...
Remove eye of demon (broken item).
2017-02-27 18:50:48 +01:00
Enno Rehling
1a0992e37b
remove remainders of the arena.
...
Auge des Drachens haben noch einige Spieler, darf nicht gelöscht werden.
move item tests to tests/items.lua
2017-02-27 18:21:41 +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
ea6cd2ca32
remove unguard trigger.
...
it is unused by the code
2016-11-23 17:55:44 +01:00
Enno Rehling
303eb86399
factionid and curseid are also boring.
2016-11-17 21:29:15 +01:00
Enno Rehling
413f70d1a1
move market function out of config.c
2016-11-16 22:30:59 +01:00
Enno Rehling
2b07ae810c
kil xmlreport files.
...
remove unnecessary includes.
2016-11-14 01:27:59 +01:00
Enno Rehling
d28d3f4690
move read/write_items to item.c.
...
fix bad memset in attrib.test.c.
2016-11-14 01:00:48 +01:00
Enno Rehling
11b122048b
reduce dependency on save.h
...
moving a_write* functions to attrib.h, which was most of the reason everyone and their mom include save.h
2016-11-13 19:40:38 +01:00
Enno Rehling
3533291711
remove at_hurting, it was only used by the Temple of Pain, which is no longer in the game.
2016-11-13 18:33:47 +01:00
Enno Rehling
76734c7929
remove ARENA_CREATION code, it wasn't active.
2016-11-13 18:27:58 +01:00
Enno Rehling
28aa2a56b8
Entferne unbenutztes "Szepter der Tränen".
...
Was für eine saublöde Idee.
2016-11-13 17:49:16 +01:00
Enno Rehling
e5dc754c25
fix demand in broken regions, after load.
2016-10-24 13:54:53 +02:00
Enno Rehling
5ccb2c3dc8
remove recruitcost from non-player races.
...
make score not call old_race.
fix orcs don't get scored.
https://bugs.eressea.de/view.php?id=2241
delete some unused race-enums.
delete centaurs.
2016-09-22 18:28:37 +02:00
Enno Rehling
546ffe87b8
change ship_allowed constants just a little bit
2016-06-10 18:00:22 +02:00
Enno Rehling
6148273d97
http://bugs.eressea.de/view.php?id=2210
...
fix deprecated attributes (at_key) yet again.
2016-05-28 20:26:59 +02: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
Enno Rehling
2d30d4cce6
trigger_type.read gets a gamedata object
...
github issue #479
2016-02-24 11:46:54 +01:00
Enno Rehling
7f6ced99b9
attrib.read gets a gamedata object (remove dependency on global.data_version)
2016-02-24 11:44:18 +01:00
Enno Rehling
01e864273a
crash with an assert if Lua code has syntax errors.
...
this addresses issue #474
also, correct capitalization of Lua.
2016-02-09 21:34:24 +01:00
Enno Rehling
8a3bb35987
eliminate global log_flags, revert the mode arguments for fopen.
...
turns out that text is default, and windows hates it if I open a binary file without 'b'
standardize on using join_path to create filenames
(use backslash on windows, even though fopen doesn't seem to care).
2016-02-05 23:10:05 +01:00
Enno Rehling
5187788f3c
pass the parent of an attribute into a_age and attrib_type::age
2015-12-16 22:18:44 +01:00
Steffen Mecke
1f4c521ac8
encapsulate r->land->peasants, money, horses, herbs, morale
2015-12-08 17:57:23 +01:00
Enno Rehling
1949e8710d
CID 22536: Resource leak (RESOURCE_LEAK)
...
github issue #388
2015-11-11 15:51:48 +01:00
Enno Rehling
fff40f048b
CID 22462 Division or modulo by zero
2015-11-03 23:11:34 +01:00
Enno Rehling
674bc2b4c7
nope, the ticket is actually required.
2015-10-30 12:58:27 +01:00
Enno Rehling
1d204b12f1
CID 22549: Dereference before null check (REVERSE_INULL)
2015-10-30 12:49:37 +01:00
Enno Rehling
df82a9795d
CID 22565: Copy into fixed size buffer (STRING_OVERFLOW)
...
bsdstring to the rescue
2015-10-30 11:11:54 +01:00
Enno Rehling
f84133eb53
fix linux builds
2015-09-06 19:08:57 +02:00
Enno Rehling
b8df3f3a5f
increase the datatype for scores from int to long long
...
this fixes https://bugs.eressea.de/view.php?id=2136
2015-09-06 19:04:04 +02:00
Enno Rehling
84f8a9f746
calculate simple default scores for items that do not have one defined in XML.
2015-06-08 21:15:07 +02:00
Enno Rehling
0de5d698de
Fix the 'B' island generation to use the newfactions file, for use by new GMs.
...
configurable island size.
2015-06-02 15:29:21 +02:00
Enno Rehling
8e5fc28bfc
refactoring more of goodies.h into strings.h
2015-05-18 08:59:38 +02:00
Enno Rehling
dd8449783a
converting float->double in a lot of the code to prevent -Wconversion messages
2015-05-15 19:08:44 +02:00
Enno Rehling
dc0897b122
fix gmtool and setup script to match the GM guide document.
2015-05-10 13:41:48 -07: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
Enno Rehling
db083389c7
avoid fix_demand hitting an endless loop, kill bad use of static variables.
2014-12-31 20:01:01 +01:00
Enno Rehling
f1008fa231
fix floating point exception.
2014-12-26 01:41:19 +01:00
Enno Rehling
108a909131
kill gc_add and gc_done, they were terrible ideas.
2014-12-25 22:38:01 +01:00
Enno Rehling
901c70efd9
config cleanup contd.
...
createunit => create_unit, everywhere.
make_undead_unit in zombies.c
2014-12-25 18:40:46 +01:00
Enno Rehling
a8849f2b91
remove the obsolete dungeons module.
...
I don't think this has ever been used, and it has fallen victim to entropy since it was first written. good riddance!
2014-12-13 00:03:24 +01:00
Enno Rehling
0fead39b41
added a function that sets a monster's name to NULL if it is the name of its race.
...
deprecate old rc_name function (renamed to rc_name_s) because it used a static return string.
2014-12-09 07:20:36 +01:00
Enno Rehling
5b9eb9080f
refactoring: move all monster-related code into monster.c
...
make some features depend on being NPCs, not monster faction.
2014-11-11 16:53:56 +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
838155179f
fix backwards compatible code for at_permission.
2014-10-31 15:38:53 +01:00
Enno Rehling
7e1cec33a2
Remove unused gmcmd attributes.
...
use the at_deprecated feature that was built for this purpose.
remove final external dependency on a_free in the code.
2014-10-18 19:23:36 +02:00
Enno Rehling
4527ffdda2
refactoring and tests for wormhole module.
2014-09-29 23:19:59 +02:00
Enno Rehling
cbf9bb8985
fix qsort in wormhole code. pointers are hard.
2014-09-29 20:38:01 +02:00
Enno Rehling
a9a0455207
reorganized directory structure.
...
flattening the directory structure, moving some modules to the src/ directory.
making stealth a separate file, under test.
more tests for some stuff.
2014-08-27 06:40:35 +02:00
Enno Rehling
d435c13bfc
adding more tests.
...
test for build()
test for scale_number()
update submodules
2014-08-26 20:06:49 +02:00
Enno Rehling
4c00777553
make race::_name a string, not an array of strings. add a test for rc_name.
2014-08-24 23:58:29 +02:00
Enno Rehling
bd2809a975
removing the core directory (moving to res and scripts).
...
it's from when open-source Eressea was limited, and we no longer need the separation.
JSON configuration for ship flags.
2014-07-28 14:27:30 +02:00
Enno Rehling
af73c6dcdf
Output a message, give feedback about keys used.
...
Remove unused variable.
2014-07-22 11:27:43 +02:00
Enno Rehling
018d4ca38e
fix quest keys to work again.
...
add a function to walk borders with a callback.
2014-07-22 10:59:47 +02:00
Enno Rehling
13165f2354
Move quest objects to the module that uses them (museum portals).
2014-07-21 11:34:57 +02:00
TomBraun
19ce861120
Change umlauts in the german comment
2014-07-16 12:10:58 +02:00
Enno Rehling
c3dfbdea18
eliminate new_race array in favor of a function (TODO: make it fast)
2014-06-29 18:10:02 -07:00
Enno Rehling
77ee0b7af7
remote the item_t enum for good
2014-06-23 19:17:13 -07:00
Enno Rehling
2c831230a0
Added a test for expensive skills.
...
When resetting the game rules, make sure basic resources (money, hp, person) are initialized.
2014-06-22 07:55:14 -07:00
Enno Rehling
bff25f3c51
move skill_t into a separate file, give it unit tests.
...
name functions the same as we did for keyword/direction earlier.
to do: json configuration and lua test.
2014-06-20 23:59:04 -07:00
Enno Rehling
64e0c221ec
directions can now be read from json configuration.
...
rename a couple of functions for more consistency across modules.
2014-06-15 22:17:08 -07:00
Enno Rehling
d503937999
working on making json config understand ships and buildings.
...
new tests in progress.
remove giveitem.c attribute, the name clashed with a trigger,
and it was only part of an arena that is gone from the game, I think.
2014-06-12 22:14:07 -07:00
Enno Rehling
fa98528d72
remove old SQL patch code, we have sqlite now.
...
rearrange the SlickEdit projects.
2014-06-11 22:21:52 -07:00
Enno Rehling
3c4b6b9dd4
rename message.[hc] to messages.[hc] in kernel because of naming conflict with util/
...
begin json config files (WIP)
2014-06-09 09:56:49 -07:00
Enno Rehling
2cc21b265d
remove GM command, remove gm-attributes from data when writing.
2014-04-22 21:42:32 -07:00
Enno Rehling
7358c48580
removing some naming conflicts that hapen when trying to re-enable amalgamation builds.
2014-04-11 19:41:17 -07:00
Enno Rehling
b399356971
Revert "remove GM command"
...
there is a saved attribute that needs this
This reverts commit 7e529f2b4c
.
2014-03-22 21:49:18 +01:00
Enno Rehling
52e64ac418
this single-use macro doesn't belong there
2014-03-17 00:42:46 -07:00
Enno Rehling
1ec18b8fd9
better SWAP() macro
2014-03-17 00:28:13 -07:00
Enno Rehling
7e529f2b4c
remove GM command
...
this was a command from the very early days, when we had player-made
quests. It is no longer in use.
2014-03-16 23:40:51 -07:00
Enno Rehling
0ae8737062
rename MIN/MAX to _min/_max
2014-03-16 05:03:17 +01:00
Enno Rehling
1a4cb16ea8
fix the unused macro, remove inline functions
...
simplification is good
2014-03-15 20:33:43 -07:00
Enno Rehling
1a7d892a96
use cmake for autoconf, slim down platform.h
2014-03-15 19:29:11 +01:00
Enno Rehling
03c247c788
I am killing the core/ directory.
...
Lots of files are moving to a new location in src/
Some intersting CMake changes.
2014-02-18 05:45:00 +01:00