Option GODNEWS is documented to be about deities giving or taking
things from players. Nevertheless, edit, give, setsector and
setresource report news of deities meddling with things owned by
deities other than POGO. Don't.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
static void
benefit(natid who, int goodness)
{
static void
benefit(natid who, int goodness)
{
- if (opt_GODNEWS && who && goodness)
+ if (opt_GODNEWS && getnatp(who)->nat_stat != STAT_GOD && goodness)
nreport(player->cnum, goodness > 0 ? N_AIDS : N_HURTS, who, 1);
}
nreport(player->cnum, goodness > 0 ? N_AIDS : N_HURTS, who, 1);
}
putsect(§);
if (sect.sct_own != 0 && m != n) {
if (m > n) {
putsect(§);
if (sect.sct_own != 0 && m != n) {
if (m > n) {
+ if (opt_GODNEWS
+ && getnatp(sect.sct_own)->nat_stat != STAT_GOD)
nreport(player->cnum, N_GIFT, sect.sct_own, 1);
wu(0, sect.sct_own, "%s gave you %d %s in %s\n",
cname(player->cnum), m - n, ip->i_name,
xyas(sect.sct_x, sect.sct_y, sect.sct_own));
} else {
nreport(player->cnum, N_GIFT, sect.sct_own, 1);
wu(0, sect.sct_own, "%s gave you %d %s in %s\n",
cname(player->cnum), m - n, ip->i_name,
xyas(sect.sct_x, sect.sct_y, sect.sct_own));
} else {
+ if (opt_GODNEWS
+ && getnatp(sect.sct_own)->nat_stat != STAT_GOD)
nreport(sect.sct_own, N_TAKE, player->cnum, 1);
wu(0, sect.sct_own, "%s stole %d %s from %s\n",
cname(player->cnum), n - m, ip->i_name,
nreport(sect.sct_own, N_TAKE, player->cnum, 1);
wu(0, sect.sct_own, "%s stole %d %s from %s\n",
cname(player->cnum), n - m, ip->i_name,
static void
resbenefit(natid who, int goodness)
{
static void
resbenefit(natid who, int goodness)
{
- if (opt_GODNEWS && who && goodness)
+ if (opt_GODNEWS && getnatp(who)->nat_stat != STAT_GOD && goodness)
nreport(player->cnum, goodness > 0 ? N_AIDS : N_HURTS, who, 1);
}
nreport(player->cnum, goodness > 0 ? N_AIDS : N_HURTS, who, 1);
}
0 42 2 38 0 0
0 42 1 39 0 0
0 44 1 19 0 0
0 42 2 38 0 0
0 42 1 39 0 0
0 44 1 19 0 0
0 43 2 1 0 0
0 43 1 54 0 0
0 42 1 4 0 0
0 43 2 1 0 0
0 43 1 54 0 0
0 42 1 4 0 0