break: Honor new designation of sanctuaries

Breaking sanctuary turns 100% sanctuaries into capitals, all others
into highways.  Before Empire 3, sanctuaries always became capitals.

Give deities more control over initial state of countries than
choosing between 100% capital and <100% highway sectors: turn
sanctuaries into their new designation on break.  Except make a
capital when the new designation is sanctuary (which it normally is).

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2013-05-03 09:02:58 +02:00
parent 5900e9b279
commit 4c68d14cc0
2 changed files with 4 additions and 7 deletions

View file

@ -57,13 +57,9 @@ bsanct(void)
continue;
pr("%s is no longer a sanctuary.\n",
xyas(s.sct_x, s.sct_y, player->cnum));
if (s.sct_effic == 100) {
s.sct_type = SCT_CAPIT;
if (s.sct_newtype == SCT_SANCT)
s.sct_newtype = SCT_CAPIT;
} else {
s.sct_type = SCT_HIWAY;
s.sct_newtype = SCT_HIWAY;
}
s.sct_type = s.sct_newtype;
game_tick_to_now(&s.sct_access);
(void)putsect(&s);
count++;