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
|
7f6ced99b9
|
attrib.read gets a gamedata object (remove dependency on global.data_version)
|
2016-02-24 11:44:18 +01:00 |
|
Enno Rehling
|
ca500a499e
|
adding a much-needed getter function for faction_alive
|
2016-01-11 12:25:23 +01:00 |
|
Enno Rehling
|
b4389c91fe
|
fix compilation (what was I thinking?), remove uses of f.alive where they should not be needed.
|
2016-01-11 11:54:45 +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 |
|
Enno Rehling
|
c85e489f4f
|
Merge branch 'monster_leftovers' of https://github.com/stm2/server into stm2-monster_leftovers
Conflicts:
src/kernel/unit.c
src/laws.test.c
src/monsters.c
|
2015-11-25 14:25:42 +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
|
84a943b698
|
fix gcc build
|
2015-11-24 19:15:53 +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
|
817d81dbf9
|
remove the rules.hunger.reduces_skill variable, no game was doing anything other than the default.
|
2015-11-23 21:05:25 +01:00 |
|
Enno Rehling
|
0a47f0e398
|
eliminate SkillCap feature, it was stupid and not used by any game, ever
|
2015-11-23 20:58:51 +01:00 |
|
Enno Rehling
|
2e392b4d7c
|
eliminate even more static variable caches
|
2015-11-22 16:14:27 +01:00 |
|
Enno Rehling
|
a4cb5e2906
|
replace all get_param_* for global.parameters with config_get_*
|
2015-11-22 10:44:46 +01:00 |
|
Enno Rehling
|
66dd1b8172
|
remove produce_exp caching in static variables (more slowdown)
|
2015-11-22 10:21:37 +01:00 |
|
Enno Rehling
|
990fda6234
|
clean up config.c, remove static configuration caching
|
2015-11-21 18:13:16 +01:00 |
|
Enno Rehling
|
7e27928d17
|
eliminate static variables and cache logic from more modules
|
2015-11-21 12:28:20 +01:00 |
|
Steffen Mecke
|
8cec4b20e0
|
reduce code obfuscation
|
2015-11-17 02:14:08 +01:00 |
|
Steffen Mecke
|
1789bc06e9
|
monster faction may learn from experience
|
2015-11-17 02:13:57 +01:00 |
|
Enno Rehling
|
b81e56d306
|
CID 22486 Dereference after null check
|
2015-11-05 08:32:21 +01:00 |
|
Enno Rehling
|
42ae086def
|
unit is inisde a building also when it was not paid for
|
2015-11-02 14:49:48 +01:00 |
|
Enno Rehling
|
24ff4c301d
|
refactor: separate building_is_active from inside_building
|
2015-11-02 14:18:50 +01:00 |
|
Enno Rehling
|
21a2313e2a
|
CID 22517: Parse warning (PW.PARAM_SET_BUT_NOT_USED)
|
2015-10-30 15:20:06 +01:00 |
|
Enno Rehling
|
e1eb5098d4
|
CID 22554: Improper use of negative value (REVERSE_NEGATIVE)
I believe this was a false positive, but more asserts can never hurt.
|
2015-10-30 12:40:48 +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
|
3055f517dc
|
move guard implementation into a module (WIP)
|
2015-09-12 22:53:54 +02:00 |
|
Enno Rehling
|
7906cdbcb6
|
do not read gamename from XML, read it from JSON only (two mechanisms for the same feature are too many)
|
2015-09-12 16:49:18 +02:00 |
|
Enno Rehling
|
8a95ea0c00
|
speeding up produceexp_chance
|
2015-09-12 16:41:22 +02:00 |
|
Enno Rehling
|
9bdc811582
|
produceexp uses a json-configurable constant
make get_param_flt return a double, floats are for wimps.
|
2015-09-12 16:38:51 +02: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
|
cf08cdf3fb
|
configuration type-fixes: int to bool where appropriate (possibly incomplete)
rename some rules to make it more obvious that they are flags or other integer values.
|
2015-09-11 10:04:08 +02:00 |
|
Enno Rehling
|
60111282b3
|
make findunitr be O(1) instead of O(#r->units)
|
2015-09-09 13:29:58 +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
|
bc1c3dd712
|
move NEWATSROI out of item_modification
|
2015-08-26 19:59:11 +02:00 |
|
Enno Rehling
|
afbc4c816b
|
refactoring ship speed, extract total skills of sailors into a function.
|
2015-08-07 12:43:18 +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 |
|
Enno Rehling
|
2288b8fb27
|
Merge remote-tracking branch 'upstream/master' into develop
Conflicts:
.travis.yml
s/build
s/cmake-init
s/runtests
src/buildno.h
src/kernel/config.c
src/kernel/save.c
src/kernel/unit.c
src/laws.c
src/move.c
|
2015-08-03 19:43:26 +02:00 |
|
Enno Rehling
|
9938b3fb66
|
eliminate update_gbdream completely, make code smaller and simpler.
simplify tests (no need to use create_spell if we don't use it)
increase build no for hotfix.
|
2015-08-02 23:16:41 +02:00 |
|
Enno Rehling
|
d99ffaf1ed
|
filter by curse-type before trying to call update_gbdreams.
|
2015-08-02 22:45:59 +02:00 |
|
Enno Rehling
|
a119f7617f
|
add some assertions to make sure update_gbdream is not called without a magician
|
2015-08-02 21:17:21 +02:00 |
|
Enno Rehling
|
59745c7ed0
|
parentheses to fix operator precedence.
|
2015-07-03 16:13:24 +02:00 |
|
Enno Rehling
|
8e5fc28bfc
|
refactoring more of goodies.h into strings.h
|
2015-05-18 08:59:38 +02:00 |
|
Enno Rehling
|
bf5fae2ef5
|
Fix visual studio compilation for Solthar's curse changes (float/int conversions, uninitialized variable).
|
2015-05-11 23:54:21 -07:00 |
|
Steffen Mecke
|
d9f8479055
|
removed duplication in good/bad dreams code
|
2015-05-07 17:54:59 +02:00 |
|
Enno Rehling
|
88d370a7b8
|
fixing sea serpent names
https://bugs.eressea.de/view.php?id=2057
|
2015-04-21 12:35:39 +02:00 |
|
Enno Rehling
|
f06e3371a0
|
Bug 2089 again. rename giveitem flag to keepitem, because races should default to not holding on to their stuff.
|
2015-04-19 12:49:39 +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 |
|