Enno Rehling
|
cc227fb707
|
merge monster.c and monsters.c
move RCF_DESERT handling to monsters.c
|
2016-12-23 18:05:38 +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
|
467ffe2db0
|
include guard.h directly, not through laws.h
|
2016-11-01 22:11:10 +01:00 |
|
Enno Rehling
|
754ad78db7
|
WIP: remove GUARD_* flags.
TODO: does not compile
TODO: write new guard.test.c tests
|
2016-10-31 07:45:06 +01:00 |
|
Enno Rehling
|
fbdf845cb9
|
fix overpopulation-checks and movement based on splitsize.
|
2016-10-03 20:15:38 +02:00 |
|
Enno Rehling
|
26a416c5ba
|
do not call can_survive all this much.
|
2016-10-03 16:38:17 +02:00 |
|
Enno Rehling
|
ef43aaa830
|
eliminate some duplicate calculations.
|
2016-10-03 16:28:18 +02:00 |
|
Enno Rehling
|
42e75007c3
|
little bit of refactoring and better variable names.
|
2016-10-03 16:26:40 +02:00 |
|
Enno Rehling
|
423e293745
|
some more config lookup caching
|
2016-09-23 20:39:08 +02:00 |
|
Enno Rehling
|
12239178c6
|
rc_find optimizations in monster AI.
remove dead alp code.
|
2016-09-19 20:10:01 +02:00 |
|
Enno Rehling
|
1f100a1b6c
|
replace old_race calls with get_race.
|
2016-09-19 16:10:10 +02:00 |
|
Enno Rehling
|
87fed5b7d2
|
Merge pull request #548 from ennorehling/refactor-volcano
new tests, TODOs removed, remove code duplication
|
2016-08-31 17:19:29 +01:00 |
|
Enno Rehling
|
9a72157cf3
|
split out seaserpent creation for testing
|
2016-08-31 11:35:07 +02:00 |
|
Enno Rehling
|
1a1ec3f363
|
cleanup: remove static curse_type variables.
|
2016-08-29 20:12:31 +01:00 |
|
Steffen Mecke
|
c5014fd766
|
integrated Ennos suggestions for dragon growls
Dragons now growl 20% more elegantly!
|
2016-06-11 13:47:38 +02:00 |
|
Steffen Mecke
|
ce312afc95
|
fix dragon growl for regions with an apostrophe
|
2016-05-31 01:54:06 +02:00 |
|
Enno Rehling
|
75f2be75d8
|
remove code for alp (non-functional)
remove code for removecurse trigger (only used by alp)
|
2016-03-25 21:18:57 +01:00 |
|
Enno Rehling
|
3d5c7ba8fb
|
refactoring: move produceexp from unit.c to study.c
|
2016-03-09 14:50:54 +01:00 |
|
Steffen Mecke
|
1aca1c6a87
|
fix logic bug
|
2015-12-30 14:04:10 +01:00 |
|
Steffen Mecke
|
09836ed249
|
make dragon movement more deterministic
|
2015-12-17 11:47:08 +01:00 |
|
Steffen Mecke
|
1f4c521ac8
|
encapsulate r->land->peasants, money, horses, herbs, morale
|
2015-12-08 17:57:23 +01:00 |
|
Steffen Mecke
|
e3d7d23d00
|
re-enable sea serpent piracy
|
2015-12-01 22:30:51 +01:00 |
|
Enno Rehling
|
70354a355b
|
disable piracy for sea serpents, piracy_cmd cannot handle it (issue #418)
|
2015-12-01 12:22:03 +01:00 |
|
Enno Rehling
|
6c2f4be4af
|
fix sea serpents using piracy (by re-ordering the decision making process)
|
2015-11-25 15:29:26 +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
|
5b9333f6d9
|
Merge branch 'release-3.7' into develop
Conflicts:
src/buildno.h
src/monsters.c
|
2015-11-23 17:12:48 +01:00 |
|
Enno Rehling
|
4b7b32cbb5
|
use monster_attack, not explicit create_order, because we need to check buildings, etc.
|
2015-11-23 17:00:07 +01:00 |
|
Enno Rehling
|
defd870cd1
|
https://bugs.eressea.de/view.php?id=2163
Fix order of Arguments when checking for defensive building.
Solthar reminds us that good variable names are good.
|
2015-11-23 16:48:05 +01:00 |
|
Enno Rehling
|
c7ab0e8f59
|
fix https://bugs.eressea.de/view.php?id=2164 (ships get no damage when they drift).
simplify attack_chance configuration, set it only once.
this way, I can more easily fudge it to 1.0 in the debugger.
|
2015-11-23 12:37:42 +01:00 |
|
Enno Rehling
|
a4cb5e2906
|
replace all get_param_* for global.parameters with config_get_*
|
2015-11-22 10:44:46 +01:00 |
|
Steffen Mecke
|
8a063c3567
|
fix bug in dragon_affinity
|
2015-11-17 17:19:06 +01:00 |
|
Steffen Mecke
|
a144686e66
|
monsters may attack on ocean
|
2015-11-17 12:13:23 +01:00 |
|
Steffen Mecke
|
a366cd4b17
|
tests for plan_monster
|
2015-11-17 12:12:06 +01:00 |
|
Steffen Mecke
|
384a2ea7d7
|
remove duplicate monster_attacks code
|
2015-11-17 02:16:07 +01:00 |
|
Steffen Mecke
|
069303d0ae
|
slightly improved monster code
change normalvariate to more efficient dice based method
try harder to learn a useful skill
|
2015-11-17 02:14:28 +01:00 |
|
Steffen Mecke
|
8cec4b20e0
|
reduce code obfuscation
|
2015-11-17 02:14:08 +01:00 |
|
Enno Rehling
|
efc87a16e3
|
clarify dragon planning code (bug 2159)
|
2015-11-16 16:57:51 +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
|
f70b385bef
|
clean up plan_monsters and make it a bit more readable
|
2015-11-02 15:27:01 +01:00 |
|
Enno Rehling
|
84a92124bd
|
Merge branch 'feature/bug-2053-attack-monsters' of https://github.com/ennorehling/eressea into ennorehling-feature/bug-2053-attack-monsters
Conflicts:
conf/e3/config.xml
|
2015-09-19 13:35:53 +02:00 |
|
Enno Rehling
|
5f7b9129bc
|
Merge branch 'master' into develop
Conflicts:
tests/runtests.bat
|
2015-09-12 22:47:33 +02:00 |
|
Enno Rehling
|
06a04d0e20
|
fix logging for sp_igjarjuk, temporarily set log-levels for the game to error|warn|info
remove some code that accesses `verbosity` variable (todo: hide it more, fix logging)
|
2015-09-12 19:48:03 +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
|
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
|
b50c1720cf
|
several monster_attack fixes.
1. do not try to attack other monsters.
2. monsters outside of a building can attack units outside of buildings.
3. dragons can guard without weapons.
|
2015-08-16 16:18:59 +02:00 |
|
Enno Rehling
|
b53d01eb18
|
Bug 1890: monsters do not respect the rules when giving excess weight to peasants.
https://bugs.eressea.de/view.php?id=1890
fixed by creating a give order instead of calling give_item directly.
|
2015-07-02 11:08:38 +02: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
|
901c70efd9
|
config cleanup contd.
createunit => create_unit, everywhere.
make_undead_unit in zombies.c
|
2014-12-25 18:40:46 +01:00 |
|
Enno Rehling
|
f6f193ab76
|
Monsters should LOOT if the rules don't allow TAX.
|
2014-12-20 21:37:06 +01:00 |
|