| 1076 | } |
| 1077 | |
| 1078 | void |
| 1079 | newomonst(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 | |
| 1092 | void |
| 1093 | free_omonst(struct obj* otmp) |
nothing calls this directly
no test coverage detected