edit &c: Suppress bulletins for acts of god to himself
Deities get bulletins when they use edit, give, setsector and setresource on stuff they own. Except for POGO, who can't own anything. The bulletins are annoying; suppress them. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
e507486fc1
commit
d4faa89c45
3 changed files with 20 additions and 18 deletions
|
@ -105,13 +105,13 @@ setsector(void)
|
|||
prnatid(sect.sct_own), prnatid(amt));
|
||||
if (amt == sect.sct_own)
|
||||
break;
|
||||
if (sect.sct_own) {
|
||||
if (sect.sct_own && sect.sct_own != player->cnum) {
|
||||
wu(0, sect.sct_own,
|
||||
"Sector %s taken from you by an act of %s!\n",
|
||||
xyas(sect.sct_x, sect.sct_y, sect.sct_own),
|
||||
cname(player->cnum));
|
||||
}
|
||||
if (amt)
|
||||
if (amt && amt != player->cnum)
|
||||
wu(0, amt,
|
||||
"Sector %s given to you by an act of %s!\n",
|
||||
xyas(sect.sct_x, sect.sct_y, amt),
|
||||
|
@ -215,7 +215,7 @@ resnoise(struct sctstr *sptr, char *name, int old, int new)
|
|||
{
|
||||
pr("%s of %s changed from %d to %d\n",
|
||||
name, xyas(sptr->sct_x, sptr->sct_y, player->cnum), old, new);
|
||||
if (sptr->sct_own && new != old)
|
||||
if (sptr->sct_own && sptr->sct_own != player->cnum && new != old)
|
||||
wu(0, sptr->sct_own,
|
||||
"%s in %s was changed from %d to %d by an act of %s\n",
|
||||
name, xyas(sptr->sct_x, sptr->sct_y, sptr->sct_own),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue