MCPcopy Index your code
hub / github.com/NetHack/NetHack / is_flammable

Function is_flammable

src/mkobj.c:2269–2286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2267}
2268
2269boolean
2270is_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
2288boolean
2289is_rottable(struct obj *otmp)

Callers 10

obj_erode_typeFunction · 0.85
add_erosion_wordsFunction · 0.85
readobjnamFunction · 0.85
throwitFunction · 0.85
is_edibleFunction · 0.85
mkobj_erosionsFunction · 0.85
erode_objFunction · 0.85
immune_to_trapFunction · 0.85
poly_objFunction · 0.85
return_from_mtossFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected