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

@ -8,7 +8,8 @@ They also can't be attacked.
.s1 .s1
Break removes the sanctuary protection from your country and forces Break removes the sanctuary protection from your country and forces
your people to work for a living. your people to work for a living.
Sanctuaries become capitals if they are 100% efficient, else highways. Sanctuaries become capitals, unless the deity set up a different new
designation.
You can't do any country development commands until you break out You can't do any country development commands until you break out
of sanctuary. of sanctuary.
.s1 .s1

View file

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