Steffen Mecke
0aa5a64c63
allow empty faction email
2017-11-15 12:12:42 +01:00
Enno Rehling
e2c7b2c711
merge with master, which was far behind
2017-10-15 20:32:19 +02:00
Enno Rehling
1b53128e1a
BUG 2366: Fix cansee for seen_spell regions.
2017-10-10 20:24:20 +02:00
Enno Rehling
5e204083b8
remove noreply email, monster report.
2017-09-18 21:43:52 +02:00
Enno Rehling
455e03fa05
try and make coverity understand the equipment trie.
...
shorten names.
2017-09-17 20:42:43 +02:00
Enno Rehling
c5181195d7
new feature: sea serpents will not go after small targets.
2017-09-09 12:58:10 +02:00
Enno Rehling
7985ebe511
replace ct_find calls with constants.
...
reorder a lot of includes.
2017-08-21 20:18:19 +02:00
Enno Rehling
8178f3f1e6
BUG 2334: Nochmal Ponnuki
...
Monsters cannot attack or guard when they are fleeing
2017-06-18 14:20:01 +02:00
Enno Rehling
ad465f1028
Ponnuki should not be aggressive.
2017-05-07 17:29:55 +02:00
Enno Rehling
1885831204
remove handle_events for unused events.
2017-04-30 03:48:50 +02:00
Enno Rehling
b06e93db7a
BUG 2317: wyrms in E2 didn't move
2017-04-17 16:50:15 +02:00
Enno Rehling
b44c5e54bf
Neuer Befehlespräfix: ! zur Unterdrückung von Fehlern.
2017-03-25 11:18:48 +01:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
5b52451d9d
remove unused ai.aggression atribute
2017-02-18 19:21:54 +01:00
Enno Rehling
f2ed2c892a
bugfix: Drachen "scare" attribut
...
muss mit MOD, nicht AND angewendet werden. rng_int() & 400 ist eine bekloppte Rechnung.
2017-02-05 18:42:06 +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
8c045d7a78
fix flt/int compilation bug.
2017-01-26 17:57:21 +01:00
Enno Rehling
f297d89958
merge monster.c and monsters.c
...
move RCF_DESERT handling to monsters.c
2017-01-26 17:57:21 +01:00
Enno Rehling
a4badc0a75
remove quicklist shim, use selist everywhere
2017-01-26 17:41:21 +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