Enno Rehling
|
250227cad2
|
store maxaura as an integer, not a float.
|
2017-02-03 20:06:01 +01:00 |
|
Enno Rehling
|
e51742da90
|
use rc_maxaura wrapper everywhere.
|
2017-02-03 19:50:48 +01:00 |
|
Enno Rehling
|
1c347ca5ba
|
race.healing is now an int percentage, not a float multiplier
|
2017-02-03 18:18:55 +01:00 |
|
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
|
7750297dc2
|
express race.magres as percentage, not probability (double->int)
|
2017-02-03 10:57:32 +01:00 |
|
Enno Rehling
|
11c0330de1
|
make race::attack use spellref, too.
|
2017-01-28 19:52:28 +01:00 |
|
Enno Rehling
|
6d15767a18
|
create a spellref structure.
use this when referring to spells that may not (yet) exist.
use it for race::precombatspell (rare use case).
|
2017-01-28 19:42:20 +01:00 |
|
Enno Rehling
|
4a802be67c
|
fix undead name generation.
|
2016-12-31 20:03:50 +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
|
09f22ba0bc
|
move findrace into race.c
|
2016-11-22 12:32:28 +01:00 |
|
Enno Rehling
|
6c9e1fb345
|
more config.h removal.
freset/fset/fval must die!
|
2016-11-17 17:06:31 +01: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
|
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
|
ff83d5108a
|
remove old_race call form heal_factor
|
2016-09-22 09:08:02 +02:00 |
|
Enno Rehling
|
a3ad9a0222
|
I am now calling get_race far too often. Fix this a bit.
|
2016-09-20 20:27:41 +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
|
96d6abdc5a
|
add caching API for rc_find
|
2016-09-19 06:55:32 +02:00 |
|
Enno Rehling
|
2eb9b5c5ea
|
delete dead code (dbrace)
|
2016-08-29 13:49:39 +01:00 |
|
Enno Rehling
|
33701ab891
|
make describe_braineater more generic (describe_race).
|
2016-08-28 20:44:45 +01:00 |
|
Enno Rehling
|
e3b0dfedc9
|
race naming functions do more work than before.
|
2016-08-28 20:27:40 +01:00 |
|
Enno Rehling
|
514565d66b
|
move race_name_func registrations into race.c
|
2016-08-28 20:02:45 +01:00 |
|
Enno Rehling
|
0f3de70ced
|
refactor to push back the const-ness of generated names.
|
2016-08-28 19:06:14 +01:00 |
|
Enno Rehling
|
0ac30c65a1
|
refactoring prior to removing static variable
|
2016-08-28 18:15:00 +01:00 |
|
Enno Rehling
|
1d57bf527d
|
Merge branch 'master' into develop
Conflicts:
src/battle.test.c
src/buildno.h
|
2015-12-05 17:27:04 +01:00 |
|
Enno Rehling
|
62ee1468b8
|
https://bugs.eressea.de/view.php?id=2166
* fix magic resistance calculation in calculate_armor.
* add related tests.
* refactor BF_CANATTACK -> BF_NO_ATTACK because it is easier.
|
2015-12-05 17:17:21 +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 |
|
Steffen Mecke
|
742a30cc39
|
fix seaserpents
seaserpents could not do piracy
seaserpents should be able to attack after move
|
2015-11-17 12:17:28 +01:00 |
|
Enno Rehling
|
f1476c2167
|
refactoring: split out a module for race prefixes
|
2015-09-12 12:24:10 +02:00 |
|
Enno Rehling
|
397a157fdc
|
Merge branch 'develop' into feature/bug-1588-magicpower-limit
Conflicts:
scripts/tests/e2/init.lua
src/battle.c
src/bind_unit.c
src/kernel/spellid.h
src/magic.c
src/magic.h
|
2015-08-06 19:16:05 +02:00 |
|
Enno Rehling
|
4c877288d3
|
remove spellid.h, it represents an outdated way of doing things.
merge the enum into combatspells, and reduce it to the spells actually used here.
|
2015-08-06 17:57:51 +02:00 |
|
Enno Rehling
|
414f6d3210
|
bug 2069: not all E3 magic schools have a familiar.
https://bugs.eressea.de/view.php?id=2069
quick fix: defaulting all additional schools to the illaun familiar.
|
2015-07-02 09:49:51 +02:00 |
|
Enno Rehling
|
eac4ef7ddc
|
reduce conversion warning to float only
|
2015-05-15 13:32:22 +02:00 |
|
Steffen Mecke
|
2d27442681
|
apply possible number of racial attacks consequently
|
2015-05-08 13:02:54 +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 |
|
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
|
838cf3d938
|
try to allow visual studio to build with all warnings (/WAll) enabled.
|
2015-01-12 22:53:21 +01:00 |
|
Enno Rehling
|
49a77cdcde
|
plug some more memory leaks.
|
2014-12-30 01:44:28 +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
|
ebd115b04a
|
refactor of rc_specialdamage, and move it into battle, nothing else uses it.
|
2014-11-09 22:31:41 +01:00 |
|
Enno Rehling
|
ce3e9cd7d0
|
Add missing test coverage for update_guards. Fix the weapon:minskill default.
|
2014-10-14 18:37:45 +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
|
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
|
072f927d5b
|
replace RCF_CANSTEAL with RCF_NOSTEAL for less confusing default behavior.
|
2014-07-05 19:29:12 -07:00 |
|
Enno Rehling
|
5b437c5833
|
Replace RCF_PLAYERRACE with RCF_NPC, it's the less confusing default for tests.
|
2014-07-05 19:21:06 -07: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
|
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 |
|