MCPcopy Create free account
hub / github.com/NetHack/NetHack / inside_shop

Function inside_shop

src/shk.c:567–576  ·  view source on GitHub ↗

x,y is strictly inside shop */

Source from the content-addressed store, hash-verified

565
566/* x,y is strictly inside shop */
567char
568inside_shop(coordxy x, coordxy y)
569{
570 char rno;
571
572 rno = levl[x][y].roomno;
573 if ((rno < ROOMOFFSET) || levl[x][y].edge || !IS_SHOP(rno - ROOMOFFSET))
574 rno = NO_ROOM;
575 return rno;
576}
577
578void
579u_left_shop(char *leavestring, boolean newlev)

Callers 15

ready_weaponFunction · 0.85
resetobjsFunction · 0.85
find_artifactFunction · 0.85
throwit_mon_hitFunction · 0.85
breakobjFunction · 0.85
merge_choiceFunction · 0.85
stock_roomFunction · 0.85
chest_trapFunction · 0.85
bhitFunction · 0.85
container_impact_dmgFunction · 0.85
u_entered_shopFunction · 0.85
shopper_financial_reportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected