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

Function isbig

src/mkroom.c:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39extern const struct shclass shtypes[]; /* defined in shknam.c */
40
41staticfn boolean
42isbig(struct mkroom *sroom)
43{
44 int area = (sroom->hx - sroom->lx + 1)
45 * (sroom->hy - sroom->ly + 1);
46
47 return (boolean) (area > 20);
48}
49
50/* make and stock a room of a given type */
51void

Callers 1

mkshopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected