B20001 - shopkeeper angry at unnamed customer

The "following" flag could get set in several places where it was not
obvious that the customer name would be remembered.  Since the shopkeeper
should always get angry at the current player, set the name at the same
place that the flag is set.
This commit is contained in:
cohrs
2003-02-18 17:08:04 +00:00
parent 86dd975ec6
commit 7c937d2186
2 changed files with 2 additions and 2 deletions

View File

@@ -390,6 +390,7 @@ wielding Werebane prevents catching lycanthropy via monster attack (but not
via eating, nor does it cure an existing case)
character inflicted with lycanthropy is vulnerable to Werebane when in
human/elf/&c form as well as when in beast form
shopkeeper could get angry without remembering the customer name
Platform- and/or Interface-Specific Fixes

View File

@@ -999,6 +999,7 @@ register struct monst *shkp;
if(!shkp->isshk) return;
rile_shk(shkp);
(void) strncpy(ESHK(shkp)->customer, plname, PL_NSIZ);
ESHK(shkp)->following = 1;
}
@@ -2469,8 +2470,6 @@ register boolean peaceful, silent;
if(!silent) {
if(cansee(shkp->mx, shkp->my)) {
if(ESHK(shkp)->customer[0] == 0)
(void) strncpy(ESHK(shkp)->customer,plname,PL_NSIZ);
Norep("%s booms: \"%s, you are a thief!\"",
Monnam(shkp), plname);
} else Norep("You hear a scream, \"Thief!\"");