Distinguish between sacking and obliterating a capital
Make caploss() transfer money, loans and market lots to the player only if he actually took the capital, not if he obliterated it to deity. To make this work, caploss() needs to be called after the sector is updated for damage and change of ownership. Change callers accordingly. Closes #914049.
This commit is contained in:
parent
f6308422c3
commit
221e88f106
3 changed files with 19 additions and 14 deletions
|
@ -106,8 +106,6 @@ coll(void)
|
|||
pr("That is more than is owed!\n");
|
||||
return RET_FAIL;
|
||||
}
|
||||
if (sect.sct_type == SCT_CAPIT || sect.sct_type == SCT_MOUNT)
|
||||
caploss(§, sect.sct_own, "that was %s's capital!\n");
|
||||
sect.sct_item[I_MILIT] = 1; /* FIXME now where did this guy come from? */
|
||||
|
||||
/* Consider modifying takeover to take a "no che" argument and
|
||||
|
@ -123,6 +121,8 @@ coll(void)
|
|||
sect.sct_dist_x = sect.sct_x;
|
||||
sect.sct_dist_y = sect.sct_y;
|
||||
|
||||
if (sect.sct_type == SCT_CAPIT || sect.sct_type == SCT_MOUNT)
|
||||
caploss(§, loan.l_lonee, "that was %s's capital!\n");
|
||||
putsect(§);
|
||||
nreport(player->cnum, N_SEIZE_SECT, loan.l_lonee, 1);
|
||||
owed = loan_owed(&loan, time(&now));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue