| 2282 | } |
| 2283 | |
| 2284 | staticfn void |
| 2285 | mkfount(struct mkroom *croom) |
| 2286 | { |
| 2287 | coord m; |
| 2288 | |
| 2289 | if (!find_okay_roompos(croom, &m)) |
| 2290 | return; |
| 2291 | |
| 2292 | /* Put a fountain at m.x, m.y */ |
| 2293 | if (!set_levltyp(m.x, m.y, FOUNTAIN)) |
| 2294 | return; |
| 2295 | /* Is it a "blessed" fountain? (affects drinking from fountain) */ |
| 2296 | if (!rn2(7)) |
| 2297 | levl[m.x][m.y].blessedftn = 1; |
| 2298 | |
| 2299 | svl.level.flags.nfountains++; |
| 2300 | } |
| 2301 | |
| 2302 | staticfn boolean |
| 2303 | find_okay_roompos(struct mkroom *croom, coord *crd) |
no test coverage detected