| 2267 | } |
| 2268 | |
| 2269 | boolean |
| 2270 | is_flammable(struct obj *otmp) |
| 2271 | { |
| 2272 | int otyp = otmp->otyp; |
| 2273 | int omat = objects[otyp].oc_material; |
| 2274 | |
| 2275 | /* Candles can be burned, but they're not flammable in the sense that |
| 2276 | * they can't get fire damage and it makes no sense for them to be |
| 2277 | * fireproofed. |
| 2278 | */ |
| 2279 | if (Is_candle(otmp)) |
| 2280 | return FALSE; |
| 2281 | |
| 2282 | if (objects[otyp].oc_oprop == FIRE_RES || otyp == WAN_FIRE) |
| 2283 | return FALSE; |
| 2284 | |
| 2285 | return (boolean) ((omat <= WOOD && omat != LIQUID) || omat == PLASTIC); |
| 2286 | } |
| 2287 | |
| 2288 | boolean |
| 2289 | is_rottable(struct obj *otmp) |
no outgoing calls
no test coverage detected