Symbol: ESHK
games/hack/hack.mkshop.c
192
ESHK->shoproom = roomno;
games/hack/hack.mkshop.c
193
ESHK->shoplevel = dlevel;
games/hack/hack.mkshop.c
194
ESHK->shd = doors[sh];
games/hack/hack.mkshop.c
195
ESHK->shk.x = sx;
games/hack/hack.mkshop.c
196
ESHK->shk.y = sy;
games/hack/hack.mkshop.c
197
ESHK->robbed = 0;
games/hack/hack.mkshop.c
198
ESHK->visitct = 0;
games/hack/hack.mkshop.c
199
ESHK->following = 0;
games/hack/hack.mkshop.c
201
ESHK->billct = 0;
games/hack/hack.mkshop.c
202
findname(ESHK->shknam, let);
games/hack/hack.shk.c
1005
uondoor = (u.ux == ESHK(shkp)->shd.x &&
games/hack/hack.shk.c
1006
u.uy == ESHK(shkp)->shd.y);
games/hack/hack.shk.c
1008
if (ESHK(shkp)->billct)
games/hack/hack.shk.c
1020
if (((!ESHK(shkp)->robbed && !ESHK(shkp)->billct) || avoid)
games/hack/hack.shk.c
1052
|| shkroom != ESHK(shkp)->shoproom
games/hack/hack.shk.c
1053
|| ESHK(shkp)->following) {
games/hack/hack.shk.c
1144
|| (mtmp->isshk && ESHK(mtmp)->following)
games/hack/hack.shk.c
193
return (ESHK(mtmp)->shknam);
games/hack/hack.shk.c
199
struct eshk *eshk = ESHK(mtmp);
games/hack/hack.shk.c
216
bill = &(ESHK(shopkeeper)->bill[0]);
games/hack/hack.shk.c
242
ESHK(shopkeeper)->billct = 0;
games/hack/hack.shk.c
249
int ct = ESHK(shopkeeper)->billct;
games/hack/hack.shk.c
267
if (ESHK(shopkeeper)->billct) {
games/hack/hack.shk.c
274
ESHK(shopkeeper)->robbed += total;
games/hack/hack.shk.c
276
if ((rooms[ESHK(shopkeeper)->shoproom].rtype == GENERAL)
games/hack/hack.shk.c
278
ESHK(shopkeeper)->following = 1;
games/hack/hack.shk.c
310
|| ESHK(shopkeeper)->shoproom != roomno)
games/hack/hack.shk.c
316
if (!ESHK(shopkeeper)->visitct ||
games/hack/hack.shk.c
317
strncmp(ESHK(shopkeeper)->customer, plname, PL_NSIZ)) {
games/hack/hack.shk.c
320
ESHK(shopkeeper)->visitct = 0;
games/hack/hack.shk.c
321
ESHK(shopkeeper)->following = 0;
games/hack/hack.shk.c
322
(void) strncpy(ESHK(shopkeeper)->customer, plname, PL_NSIZ);
games/hack/hack.shk.c
325
if (!ESHK(shopkeeper)->following) {
games/hack/hack.shk.c
330
ESHK(shopkeeper)->visitct++ ? " again" : "",
games/hack/hack.shk.c
332
shopnam[rooms[ESHK(shopkeeper)->shoproom].rtype - 8]);
games/hack/hack.shk.c
356
if (mtmp->isshk && ESHK(mtmp)->shoproom == roomno
games/hack/hack.shk.c
357
&& ESHK(mtmp)->shoplevel == dlevel) {
games/hack/hack.shk.c
359
bill = &(ESHK(shopkeeper)->bill[0]);
games/hack/hack.shk.c
362
strncmp(ESHK(shopkeeper)->customer, plname, PL_NSIZ))
games/hack/hack.shk.c
385
for (bp = bill; bp < &bill[ESHK(shopkeeper)->billct]; bp++)
games/hack/hack.shk.c
418
ESHK(shopkeeper)->billct--;
games/hack/hack.shk.c
419
*bp = bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
428
long robbed = ESHK(shkp)->robbed;
games/hack/hack.shk.c
437
ESHK(shkp)->robbed = robbed;
games/hack/hack.shk.c
455
inroom(shopkeeper->mx, shopkeeper->my) == ESHK(shopkeeper)->shoproom)
games/hack/hack.shk.c
462
ltmp = ESHK(shkp)->robbed;
games/hack/hack.shk.c
482
ESHK(shkp)->robbed = 0;
games/hack/hack.shk.c
483
ESHK(shkp)->following = 0;
games/hack/hack.shk.c
484
if (ESHK(shkp)->shoplevel != dlevel) {
games/hack/hack.shk.c
497
if (!ESHK(shkp)->billct) {
games/hack/hack.shk.c
503
if (ESHK(shkp)->robbed) {
games/hack/hack.shk.c
507
(u.ugold < ESHK(shkp)->robbed) ? "partially " : "",
games/hack/hack.shk.c
509
pay(min(u.ugold, ESHK(shkp)->robbed), shkp);
games/hack/hack.shk.c
510
ESHK(shkp)->robbed = 0;
games/hack/hack.shk.c
524
if (strncmp(ESHK(shkp)->customer, plname, PL_NSIZ)
games/hack/hack.shk.c
542
while (tmp < ESHK(shopkeeper)->billct) {
games/hack/hack.shk.c
550
bill[tmp] = bill[--ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
555
shopnam[rooms[ESHK(shopkeeper)->shoproom].rtype - 8]);
games/hack/hack.shk.c
615
if (shlevel == dlevel && shopkeeper && ESHK(shopkeeper)->billct) {
games/hack/hack.shk.c
661
(u.ux == ESHK(shopkeeper)->shk.x && u.uy == ESHK(shopkeeper)->shk.y) ||
games/hack/hack.shk.c
662
(u.ux == ESHK(shopkeeper)->shd.x && u.uy == ESHK(shopkeeper)->shd.y) ||
games/hack/hack.shk.c
666
if (ESHK(shopkeeper)->billct == BILLSZ) {
games/hack/hack.shk.c
670
bp = &bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
675
ESHK(shopkeeper)->billct++;
games/hack/hack.shk.c
699
if (ESHK(shopkeeper)->billct == BILLSZ)
games/hack/hack.shk.c
703
bp = &bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
708
ESHK(shopkeeper)->billct++;
games/hack/hack.shk.c
719
if (!inshop() || (u.ux == ESHK(shopkeeper)->shk.x && u.uy == ESHK(shopkeeper)->shk.y) ||
games/hack/hack.shk.c
720
(u.ux == ESHK(shopkeeper)->shd.x && u.uy == ESHK(shopkeeper)->shd.y))
games/hack/hack.shk.c
736
ESHK(shopkeeper)->billct--;
games/hack/hack.shk.c
737
*bp = bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
747
inroom(shopkeeper->mx, shopkeeper->my) != ESHK(shopkeeper)->shoproom)
games/hack/hack.shk.c
749
if (ESHK(shopkeeper)->billct == BILLSZ ||
games/hack/hack.shk.c
750
((tmp = shtypes[rooms[ESHK(shopkeeper)->shoproom].rtype - 8]) && tmp != obj->olet)
games/hack/hack.shk.c
761
if (ESHK(shopkeeper)->robbed) {
games/hack/hack.shk.c
762
if ((ESHK(shopkeeper)->robbed -= ltmp) < 0)
games/hack/hack.shk.c
763
ESHK(shopkeeper)->robbed = 0;
games/hack/hack.shk.c
791
for (bp = bill; bp - bill < ESHK(shopkeeper)->billct; bp++)
games/hack/hack.shk.c
806
for (bp = bill; bp - bill < ESHK(shopkeeper)->billct; bp++) {
games/hack/hack.shk.c
924
shkp->mx == ESHK(shkp)->shk.x && shkp->my == ESHK(shkp)->shk.y &&
games/hack/hack.shk.c
925
u.ux == ESHK(shkp)->shd.x && u.uy == ESHK(shkp)->shd.y) {
games/hack/hack.shk.c
960
if (ESHK(shkp)->following) {
games/hack/hack.shk.c
961
if (strncmp(ESHK(shkp)->customer, plname, PL_NSIZ)) {
games/hack/hack.shk.c
963
plname, ESHK(shkp)->customer);
games/hack/hack.shk.c
964
ESHK(shkp)->following = 0;
games/hack/hack.shk.c
967
if (!ESHK(shkp)->robbed) { /* impossible? */
games/hack/hack.shk.c
968
ESHK(shkp)->following = 0;
games/hack/hack.shk.c
982
gx = ESHK(shkp)->shk.x;
games/hack/hack.shk.c
983
gy = ESHK(shkp)->shk.y;
games/hack/hack.shk.c
985
if (ESHK(shkp)->following || ((z = holetime()) >= 0 && z * z <= udist)) {