forked from github/server
fix sea serpents using piracy (by re-ordering the decision making process)
This commit is contained in:
parent
90b0bdd44e
commit
6c2f4be4af
|
@ -827,18 +827,6 @@ void plan_monsters(faction * f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (long_order == NULL && unit_can_study(u)) {
|
|
||||||
/* Einheiten, die Waffenlosen Kampf lernen könnten, lernen es um
|
|
||||||
* zu bewachen: */
|
|
||||||
if (u_race(u)->bonus[SK_WEAPONLESS] != -99) {
|
|
||||||
if (effskill(u, SK_WEAPONLESS, 0) < 1) {
|
|
||||||
long_order =
|
|
||||||
create_order(K_STUDY, f->locale, "'%s'",
|
|
||||||
skillname(SK_WEAPONLESS, f->locale));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (long_order == NULL) {
|
if (long_order == NULL) {
|
||||||
/* Ab hier noch nicht generalisierte Spezialbehandlungen. */
|
/* Ab hier noch nicht generalisierte Spezialbehandlungen. */
|
||||||
|
|
||||||
|
@ -867,6 +855,18 @@ void plan_monsters(faction * f)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (long_order == NULL && unit_can_study(u)) {
|
||||||
|
/* Einheiten, die Waffenlosen Kampf lernen könnten, lernen es um
|
||||||
|
* zu bewachen: */
|
||||||
|
if (u_race(u)->bonus[SK_WEAPONLESS] != -99) {
|
||||||
|
if (effskill(u, SK_WEAPONLESS, 0) < 1) {
|
||||||
|
long_order =
|
||||||
|
create_order(K_STUDY, f->locale, "'%s'",
|
||||||
|
skillname(SK_WEAPONLESS, f->locale));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (long_order) {
|
if (long_order) {
|
||||||
addlist(&u->orders, long_order);
|
addlist(&u->orders, long_order);
|
||||||
}
|
}
|
||||||
|
|
|
@ -263,7 +263,7 @@ CuSuite *get_monsters_suite(void)
|
||||||
CuSuite *suite = CuSuiteNew();
|
CuSuite *suite = CuSuiteNew();
|
||||||
SUITE_ADD_TEST(suite, test_monsters_attack);
|
SUITE_ADD_TEST(suite, test_monsters_attack);
|
||||||
SUITE_ADD_TEST(suite, test_monsters_attack_ocean);
|
SUITE_ADD_TEST(suite, test_monsters_attack_ocean);
|
||||||
DISABLE_TEST(suite, test_seaserpent_piracy);
|
SUITE_ADD_TEST(suite, test_seaserpent_piracy);
|
||||||
SUITE_ADD_TEST(suite, test_monsters_waiting);
|
SUITE_ADD_TEST(suite, test_monsters_waiting);
|
||||||
SUITE_ADD_TEST(suite, test_monsters_attack_not);
|
SUITE_ADD_TEST(suite, test_monsters_attack_not);
|
||||||
SUITE_ADD_TEST(suite, test_dragon_attacks_the_rich);
|
SUITE_ADD_TEST(suite, test_dragon_attacks_the_rich);
|
||||||
|
|
Loading…
Reference in New Issue