Symbol: ESHK
games/hack/hack.mkshop.c
187
ESHK->shoproom = roomno;
games/hack/hack.mkshop.c
188
ESHK->shoplevel = dlevel;
games/hack/hack.mkshop.c
189
ESHK->shd = doors[sh];
games/hack/hack.mkshop.c
190
ESHK->shk.x = sx;
games/hack/hack.mkshop.c
191
ESHK->shk.y = sy;
games/hack/hack.mkshop.c
192
ESHK->robbed = 0;
games/hack/hack.mkshop.c
193
ESHK->visitct = 0;
games/hack/hack.mkshop.c
194
ESHK->following = 0;
games/hack/hack.mkshop.c
196
ESHK->billct = 0;
games/hack/hack.mkshop.c
197
findname(ESHK->shknam, let);
games/hack/hack.shk.c
1000
uondoor = (u.ux == ESHK(shkp)->shd.x &&
games/hack/hack.shk.c
1001
u.uy == ESHK(shkp)->shd.y);
games/hack/hack.shk.c
1003
if (ESHK(shkp)->billct)
games/hack/hack.shk.c
1015
if (((!ESHK(shkp)->robbed && !ESHK(shkp)->billct) || avoid)
games/hack/hack.shk.c
1047
|| shkroom != ESHK(shkp)->shoproom
games/hack/hack.shk.c
1048
|| ESHK(shkp)->following) {
games/hack/hack.shk.c
1139
|| (mtmp->isshk && ESHK(mtmp)->following)
games/hack/hack.shk.c
188
return (ESHK(mtmp)->shknam);
games/hack/hack.shk.c
194
struct eshk *eshk = ESHK(mtmp);
games/hack/hack.shk.c
211
bill = &(ESHK(shopkeeper)->bill[0]);
games/hack/hack.shk.c
237
ESHK(shopkeeper)->billct = 0;
games/hack/hack.shk.c
244
int ct = ESHK(shopkeeper)->billct;
games/hack/hack.shk.c
262
if (ESHK(shopkeeper)->billct) {
games/hack/hack.shk.c
269
ESHK(shopkeeper)->robbed += total;
games/hack/hack.shk.c
271
if ((rooms[ESHK(shopkeeper)->shoproom].rtype == GENERAL)
games/hack/hack.shk.c
273
ESHK(shopkeeper)->following = 1;
games/hack/hack.shk.c
305
|| ESHK(shopkeeper)->shoproom != roomno)
games/hack/hack.shk.c
311
if (!ESHK(shopkeeper)->visitct ||
games/hack/hack.shk.c
312
strncmp(ESHK(shopkeeper)->customer, plname, PL_NSIZ)) {
games/hack/hack.shk.c
315
ESHK(shopkeeper)->visitct = 0;
games/hack/hack.shk.c
316
ESHK(shopkeeper)->following = 0;
games/hack/hack.shk.c
317
(void) strncpy(ESHK(shopkeeper)->customer, plname, PL_NSIZ);
games/hack/hack.shk.c
320
if (!ESHK(shopkeeper)->following) {
games/hack/hack.shk.c
325
ESHK(shopkeeper)->visitct++ ? " again" : "",
games/hack/hack.shk.c
327
shopnam[rooms[ESHK(shopkeeper)->shoproom].rtype - 8]);
games/hack/hack.shk.c
351
if (mtmp->isshk && ESHK(mtmp)->shoproom == roomno
games/hack/hack.shk.c
352
&& ESHK(mtmp)->shoplevel == dlevel) {
games/hack/hack.shk.c
354
bill = &(ESHK(shopkeeper)->bill[0]);
games/hack/hack.shk.c
357
strncmp(ESHK(shopkeeper)->customer, plname, PL_NSIZ))
games/hack/hack.shk.c
380
for (bp = bill; bp < &bill[ESHK(shopkeeper)->billct]; bp++)
games/hack/hack.shk.c
413
ESHK(shopkeeper)->billct--;
games/hack/hack.shk.c
414
*bp = bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
423
long robbed = ESHK(shkp)->robbed;
games/hack/hack.shk.c
432
ESHK(shkp)->robbed = robbed;
games/hack/hack.shk.c
450
inroom(shopkeeper->mx, shopkeeper->my) == ESHK(shopkeeper)->shoproom)
games/hack/hack.shk.c
457
ltmp = ESHK(shkp)->robbed;
games/hack/hack.shk.c
477
ESHK(shkp)->robbed = 0;
games/hack/hack.shk.c
478
ESHK(shkp)->following = 0;
games/hack/hack.shk.c
479
if (ESHK(shkp)->shoplevel != dlevel) {
games/hack/hack.shk.c
492
if (!ESHK(shkp)->billct) {
games/hack/hack.shk.c
498
if (ESHK(shkp)->robbed) {
games/hack/hack.shk.c
502
(u.ugold < ESHK(shkp)->robbed) ? "partially " : "",
games/hack/hack.shk.c
504
pay(min(u.ugold, ESHK(shkp)->robbed), shkp);
games/hack/hack.shk.c
505
ESHK(shkp)->robbed = 0;
games/hack/hack.shk.c
519
if (strncmp(ESHK(shkp)->customer, plname, PL_NSIZ)
games/hack/hack.shk.c
537
while (tmp < ESHK(shopkeeper)->billct) {
games/hack/hack.shk.c
545
bill[tmp] = bill[--ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
550
shopnam[rooms[ESHK(shopkeeper)->shoproom].rtype - 8]);
games/hack/hack.shk.c
610
if (shlevel == dlevel && shopkeeper && ESHK(shopkeeper)->billct) {
games/hack/hack.shk.c
656
(u.ux == ESHK(shopkeeper)->shk.x && u.uy == ESHK(shopkeeper)->shk.y) ||
games/hack/hack.shk.c
657
(u.ux == ESHK(shopkeeper)->shd.x && u.uy == ESHK(shopkeeper)->shd.y) ||
games/hack/hack.shk.c
661
if (ESHK(shopkeeper)->billct == BILLSZ) {
games/hack/hack.shk.c
665
bp = &bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
670
ESHK(shopkeeper)->billct++;
games/hack/hack.shk.c
694
if (ESHK(shopkeeper)->billct == BILLSZ)
games/hack/hack.shk.c
698
bp = &bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
703
ESHK(shopkeeper)->billct++;
games/hack/hack.shk.c
714
if (!inshop() || (u.ux == ESHK(shopkeeper)->shk.x && u.uy == ESHK(shopkeeper)->shk.y) ||
games/hack/hack.shk.c
715
(u.ux == ESHK(shopkeeper)->shd.x && u.uy == ESHK(shopkeeper)->shd.y))
games/hack/hack.shk.c
731
ESHK(shopkeeper)->billct--;
games/hack/hack.shk.c
732
*bp = bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
742
inroom(shopkeeper->mx, shopkeeper->my) != ESHK(shopkeeper)->shoproom)
games/hack/hack.shk.c
744
if (ESHK(shopkeeper)->billct == BILLSZ ||
games/hack/hack.shk.c
745
((tmp = shtypes[rooms[ESHK(shopkeeper)->shoproom].rtype - 8]) && tmp != obj->olet)
games/hack/hack.shk.c
756
if (ESHK(shopkeeper)->robbed) {
games/hack/hack.shk.c
757
if ((ESHK(shopkeeper)->robbed -= ltmp) < 0)
games/hack/hack.shk.c
758
ESHK(shopkeeper)->robbed = 0;
games/hack/hack.shk.c
786
for (bp = bill; bp - bill < ESHK(shopkeeper)->billct; bp++)
games/hack/hack.shk.c
801
for (bp = bill; bp - bill < ESHK(shopkeeper)->billct; bp++) {
games/hack/hack.shk.c
919
shkp->mx == ESHK(shkp)->shk.x && shkp->my == ESHK(shkp)->shk.y &&
games/hack/hack.shk.c
920
u.ux == ESHK(shkp)->shd.x && u.uy == ESHK(shkp)->shd.y) {
games/hack/hack.shk.c
955
if (ESHK(shkp)->following) {
games/hack/hack.shk.c
956
if (strncmp(ESHK(shkp)->customer, plname, PL_NSIZ)) {
games/hack/hack.shk.c
958
plname, ESHK(shkp)->customer);
games/hack/hack.shk.c
959
ESHK(shkp)->following = 0;
games/hack/hack.shk.c
962
if (!ESHK(shkp)->robbed) { /* impossible? */
games/hack/hack.shk.c
963
ESHK(shkp)->following = 0;
games/hack/hack.shk.c
977
gx = ESHK(shkp)->shk.x;
games/hack/hack.shk.c
978
gy = ESHK(shkp)->shk.y;
games/hack/hack.shk.c
980
if (ESHK(shkp)->following || ((z = holetime()) >= 0 && z * z <= udist)) {