Symbol: ESHK
games/hack/hack.mkshop.c
177
ESHK->shoproom = roomno;
games/hack/hack.mkshop.c
178
ESHK->shoplevel = dlevel;
games/hack/hack.mkshop.c
179
ESHK->shd = doors[sh];
games/hack/hack.mkshop.c
180
ESHK->shk.x = sx;
games/hack/hack.mkshop.c
181
ESHK->shk.y = sy;
games/hack/hack.mkshop.c
182
ESHK->robbed = 0;
games/hack/hack.mkshop.c
183
ESHK->visitct = 0;
games/hack/hack.mkshop.c
184
ESHK->following = 0;
games/hack/hack.mkshop.c
186
ESHK->billct = 0;
games/hack/hack.mkshop.c
187
findname(ESHK->shknam, sizeof ESHK->shknam, let);
games/hack/hack.shk.c
1002
uondoor = (u.ux == ESHK(shkp)->shd.x &&
games/hack/hack.shk.c
1003
u.uy == ESHK(shkp)->shd.y);
games/hack/hack.shk.c
1005
if(ESHK(shkp)->billct)
games/hack/hack.shk.c
1017
if(((!ESHK(shkp)->robbed && !ESHK(shkp)->billct) || avoid)
games/hack/hack.shk.c
1048
|| shkroom != ESHK(shkp)->shoproom
games/hack/hack.shk.c
1049
|| ESHK(shkp)->following) {
games/hack/hack.shk.c
1133
|| (mtmp->isshk && ESHK(mtmp)->following)
games/hack/hack.shk.c
196
return(ESHK(mtmp)->shknam);
games/hack/hack.shk.c
202
struct eshk *eshk = ESHK(mtmp);
games/hack/hack.shk.c
218
bill = &(ESHK(shopkeeper)->bill[0]);
games/hack/hack.shk.c
246
ESHK(shopkeeper)->billct = 0;
games/hack/hack.shk.c
254
int ct = ESHK(shopkeeper)->billct;
games/hack/hack.shk.c
273
if(ESHK(shopkeeper)->billct) {
games/hack/hack.shk.c
280
ESHK(shopkeeper)->robbed += total;
games/hack/hack.shk.c
282
if((rooms[ESHK(shopkeeper)->shoproom].rtype == GENERAL)
games/hack/hack.shk.c
284
ESHK(shopkeeper)->following = 1;
games/hack/hack.shk.c
320
|| ESHK(shopkeeper)->shoproom != roomno)
games/hack/hack.shk.c
326
if(!ESHK(shopkeeper)->visitct ||
games/hack/hack.shk.c
327
strncmp(ESHK(shopkeeper)->customer, plname, PL_NSIZ)){
games/hack/hack.shk.c
330
ESHK(shopkeeper)->visitct = 0;
games/hack/hack.shk.c
331
ESHK(shopkeeper)->following = 0;
games/hack/hack.shk.c
332
(void) strlcpy(ESHK(shopkeeper)->customer,plname,PL_NSIZ);
games/hack/hack.shk.c
335
if(!ESHK(shopkeeper)->following) {
games/hack/hack.shk.c
340
ESHK(shopkeeper)->visitct++ ? " again" : "",
games/hack/hack.shk.c
342
shopnam[rooms[ESHK(shopkeeper)->shoproom].rtype - 8] );
games/hack/hack.shk.c
367
if(mtmp->isshk && ESHK(mtmp)->shoproom == roomno
games/hack/hack.shk.c
368
&& ESHK(mtmp)->shoplevel == dlevel) {
games/hack/hack.shk.c
370
bill = &(ESHK(shopkeeper)->bill[0]);
games/hack/hack.shk.c
373
strncmp(ESHK(shopkeeper)->customer,plname,PL_NSIZ))
games/hack/hack.shk.c
390
for(bp = bill; bp < &bill[ESHK(shopkeeper)->billct]; bp++)
games/hack/hack.shk.c
422
ESHK(shopkeeper)->billct--;
games/hack/hack.shk.c
423
*bp = bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
432
long robbed = ESHK(shkp)->robbed;
games/hack/hack.shk.c
440
ESHK(shkp)->robbed = robbed;
games/hack/hack.shk.c
458
inroom(shopkeeper->mx,shopkeeper->my) == ESHK(shopkeeper)->shoproom)
games/hack/hack.shk.c
465
ltmp = ESHK(shkp)->robbed;
games/hack/hack.shk.c
486
ESHK(shkp)->robbed = 0;
games/hack/hack.shk.c
487
ESHK(shkp)->following = 0;
games/hack/hack.shk.c
488
if(ESHK(shkp)->shoplevel != dlevel) {
games/hack/hack.shk.c
499
if(!ESHK(shkp)->billct){
games/hack/hack.shk.c
505
if(ESHK(shkp)->robbed){
games/hack/hack.shk.c
509
(u.ugold < ESHK(shkp)->robbed) ? "partially " : "",
games/hack/hack.shk.c
511
pay(min(u.ugold, ESHK(shkp)->robbed), shkp);
games/hack/hack.shk.c
512
ESHK(shkp)->robbed = 0;
games/hack/hack.shk.c
526
if(strncmp(ESHK(shkp)->customer, plname, PL_NSIZ)
games/hack/hack.shk.c
542
while(tmp < ESHK(shopkeeper)->billct) {
games/hack/hack.shk.c
549
bill[tmp] = bill[--ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
554
shopnam[rooms[ESHK(shopkeeper)->shoproom].rtype - 8]);
games/hack/hack.shk.c
611
if(shlevel == dlevel && shopkeeper && ESHK(shopkeeper)->billct){
games/hack/hack.shk.c
658
(u.ux == ESHK(shopkeeper)->shk.x && u.uy == ESHK(shopkeeper)->shk.y) ||
games/hack/hack.shk.c
659
(u.ux == ESHK(shopkeeper)->shd.x && u.uy == ESHK(shopkeeper)->shd.y) ||
games/hack/hack.shk.c
662
if(ESHK(shopkeeper)->billct == BILLSZ){
games/hack/hack.shk.c
666
bp = &bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
671
ESHK(shopkeeper)->billct++;
games/hack/hack.shk.c
695
if(ESHK(shopkeeper)->billct == BILLSZ) otmp->unpaid = 0;
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
715
if(!inshop() || (u.ux == ESHK(shopkeeper)->shk.x && u.uy == ESHK(shopkeeper)->shk.y) ||
games/hack/hack.shk.c
716
(u.ux == ESHK(shopkeeper)->shd.x && u.uy == ESHK(shopkeeper)->shd.y))
games/hack/hack.shk.c
732
ESHK(shopkeeper)->billct--;
games/hack/hack.shk.c
733
*bp = bill[ESHK(shopkeeper)->billct];
games/hack/hack.shk.c
743
inroom(shopkeeper->mx,shopkeeper->my) != ESHK(shopkeeper)->shoproom)
games/hack/hack.shk.c
745
if(ESHK(shopkeeper)->billct == BILLSZ ||
games/hack/hack.shk.c
746
((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
803
for(bp = bill; bp - bill < ESHK(shopkeeper)->billct; bp++) {
games/hack/hack.shk.c
920
shkp->mx == ESHK(shkp)->shk.x && shkp->my == ESHK(shkp)->shk.y &&
games/hack/hack.shk.c
921
u.ux == ESHK(shkp)->shd.x && u.uy == ESHK(shkp)->shd.y) {
games/hack/hack.shk.c
956
if(ESHK(shkp)->following) {
games/hack/hack.shk.c
957
if(strncmp(ESHK(shkp)->customer, plname, PL_NSIZ)){
games/hack/hack.shk.c
959
plname, ESHK(shkp)->customer);
games/hack/hack.shk.c
960
ESHK(shkp)->following = 0;
games/hack/hack.shk.c
963
if(!ESHK(shkp)->robbed) { /* impossible? */
games/hack/hack.shk.c
964
ESHK(shkp)->following = 0;
games/hack/hack.shk.c
979
gx = ESHK(shkp)->shk.x;
games/hack/hack.shk.c
980
gy = ESHK(shkp)->shk.y;
games/hack/hack.shk.c
982
if(ESHK(shkp)->following || ((z = holetime()) >= 0 && z*z <= udist)){