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

Function newomonst

util/sfctool.c:1078–1090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076}
1077
1078void
1079newomonst(struct obj* otmp)
1080{
1081 if (!otmp->oextra)
1082 otmp->oextra = newoextra();
1083
1084 if (!OMONST(otmp)) {
1085 struct monst *m = newmonst();
1086
1087 *m = cg.zeromonst;
1088 OMONST(otmp) = m;
1089 }
1090}
1091
1092void
1093free_omonst(struct obj* otmp)

Callers

nothing calls this directly

Calls 1

newoextraFunction · 0.70

Tested by

no test coverage detected