Enno Rehling
|
fd9583df3d
|
fix healing for elves in a forest.
rename _magres back to magres.
rc->parameters is not linked to config_changed invalidation.
add tests.
|
2017-02-03 17:43:40 +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
|
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
|
f12eda8bdf
|
remove cfindhash, again.
curse and unit ids can collide, there is no reason why they should be from the same pool.
|
2016-10-23 10:03:33 +02:00 |
|
Enno Rehling
|
a67950433d
|
WIP: prepare_seen vs lastregion/firstregion.
lighthouses and travelthru are handled by both, should only be in prepare_seen?
|
2016-09-12 22:03:16 +02:00 |
|
Enno Rehling
|
f946d50001
|
alternative implementation for dfindhash that doesn't use as much memory.
do not set u->faction = NULL for deleted units.
|
2016-09-11 20:09:48 +02:00 |
|
Enno Rehling
|
02cfacd7f8
|
refactorings
- learn_skill from unit.c to study.c
- add academy.c module
|
2016-03-09 14:52:50 +01:00 |
|
Enno Rehling
|
3d5c7ba8fb
|
refactoring: move produceexp from unit.c to study.c
|
2016-03-09 14:50:54 +01: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 |
|
Enno Rehling
|
f559c263e3
|
cleanup of config.c: move more code to other modules like unit.c and faction.c
|
2015-11-24 19:53:27 +01:00 |
|
Enno Rehling
|
8aa7fec54c
|
config.c cleanup: move attribute registration to attributes.c
|
2015-11-24 19:32:52 +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
|
73fc5a51b3
|
remove more junk defines from config.h, move them closer to where they belong
|
2015-11-22 12:47:57 +01:00 |
|
Enno Rehling
|
24ff4c301d
|
refactor: separate building_is_active from inside_building
|
2015-11-02 14:18:50 +01:00 |
|
Enno Rehling
|
4eb6a89821
|
CID 26262: short and unsigned types are the devil, use int everywhere for fewer headaches
|
2015-10-29 20:39:44 +01:00 |
|
Enno Rehling
|
4f25831407
|
coverity scan CID 22576: arguments in wrong order
I believe that was a false positive, and will try to aquelch it by naming the arguments better.
|
2015-10-29 11:24:01 +01:00 |
|
Enno Rehling
|
68c448b3fb
|
fix signature of callback
|
2015-09-12 16:29:57 +02:00 |
|
Enno Rehling
|
d1686849e0
|
refactoring: move produceexp into unit module, for want of a better one. add a bit of test coverage.
https://bugs.eressea.de/view.php?id=2137 - fix learning-by-doing with less than u->number people.
|
2015-09-12 16:25:47 +02:00 |
|
Enno Rehling
|
de808bf146
|
change effskill signature to take a region, change eff_skill to work on a skill * to avoid multiple lookups.
|
2015-08-27 16:16:55 +02:00 |
|
Enno Rehling
|
71dea1eca7
|
backfill missing tests for herbsearch (alchemy).
|
2015-08-27 13:19:58 +02:00 |
|
Enno Rehling
|
8dc4e93e90
|
fix missing units from CR, add a test, partially convert from FILE* to stream
|
2015-08-05 14:45:46 +02:00 |
|
Steffen Mecke
|
d416a8eef1
|
fix NAME FOREIGN UNIT
RENAME FOREIGN UNIT used a somewhat naive approach to check if a
unit still had its generic name. Fixed that.
|
2015-02-11 23:10:43 +01:00 |
|
Steffen Mecke
|
a31898ceb5
|
fix bug in generic_name, minor improvements
Amusingly, names::generic_name used u->no instead of u->number to determine
singular or plural.
|
2015-02-11 23:10:27 +01:00 |
|
Enno Rehling
|
83e610ee03
|
Fixing bug 1802 again, CR contains no Monster names.
|
2015-02-11 07:57:38 +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 |
|
Enno Rehling
|
4e94a95835
|
remove dead code, move weight(unit) to unit.c
|
2014-12-25 19:40:40 +01:00 |
|
Enno Rehling
|
c5774e652a
|
also prevent monsters from studying unarmed combat if they cannot learn things.
refactor the unit_can_study functionality into a separate function, we are now using it in multiple places.
|
2014-12-14 16:17:01 +01:00 |
|
Enno Rehling
|
cd70b8684d
|
fix escape_string mmeory corruption error.
fix a number of small stuff that happens when loading very old data files (like 572).
|
2014-12-12 11:28:37 +01:00 |
|
Enno Rehling
|
2c077c25e8
|
space savings: update data files, remove names from NPC units where their name is their race.
|
2014-12-09 07:44:26 +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
|
b551edbdb3
|
refactoring: moving unitname to unit.c.
also removing static-string some cruft from config.c.
|
2014-12-09 05:55:16 +01:00 |
|
Enno Rehling
|
669712f04f
|
rename race_ to _race, to follow the style guide.
|
2014-12-08 22:06:05 +01:00 |
|
Enno Rehling
|
59c1c23324
|
refactor config.c, move the find* functions into the modules they belong to.
|
2014-11-01 18:34:53 +01:00 |
|
Enno Rehling
|
7df47fd25c
|
remove bad configuration caching (TODO: cache inside get_param).
move remove_empty_* functions out of config.c
add basic tests for remove_empty_units (no special units yet).
|
2014-10-16 07:41:49 +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
|
68d96014b1
|
a new method for finding out that a unit died in battle.
turns out, a unit can have 0 people without dying or being a TEMP (GIVE them all away, then RECRUIT more).
|
2014-07-06 13:00:14 -07:00 |
|
Enno Rehling
|
88f9d247bd
|
Revert "use race::flags|RCF_NOGIVE instead of race::ec_flags|GIVEITEM"
E3 Tests (GIVE) did not pass.
This reverts commit 5ec3f5b83a .
|
2014-07-06 00:29:52 -07:00 |
|
Enno Rehling
|
5ec3f5b83a
|
use race::flags|RCF_NOGIVE instead of race::ec_flags|GIVEITEM
None of this has tests, it'd going to be years before a change like this can be made without fear D-:
|
2014-07-05 23:31:34 -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
|
c2329f7f2b
|
changing unsigned flags to regular ints
the storage library does not understand unsigned at the moment, and using the highest order bit causes trouble
new version of datafile
|
2014-05-10 18:57:04 +02: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 |
|