return phrase describing the effect of fire attack on a type of monster */
| 1408 | |
| 1409 | /* return phrase describing the effect of fire attack on a type of monster */ |
| 1410 | const char * |
| 1411 | on_fire(struct permonst *mptr, struct attack *mattk) |
| 1412 | { |
| 1413 | const char *what; |
| 1414 | |
| 1415 | switch (monsndx(mptr)) { |
| 1416 | case PM_FLAMING_SPHERE: |
| 1417 | case PM_FIRE_VORTEX: |
| 1418 | case PM_FIRE_ELEMENTAL: |
| 1419 | case PM_SALAMANDER: |
| 1420 | what = "already on fire"; |
| 1421 | break; |
| 1422 | case PM_WATER_ELEMENTAL: |
| 1423 | case PM_FOG_CLOUD: |
| 1424 | case PM_STEAM_VORTEX: |
| 1425 | what = "boiling"; |
| 1426 | break; |
| 1427 | case PM_ICE_VORTEX: |
| 1428 | case PM_GLASS_GOLEM: |
| 1429 | what = "melting"; |
| 1430 | break; |
| 1431 | case PM_STONE_GOLEM: |
| 1432 | case PM_CLAY_GOLEM: |
| 1433 | case PM_GOLD_GOLEM: |
| 1434 | case PM_AIR_ELEMENTAL: |
| 1435 | case PM_EARTH_ELEMENTAL: |
| 1436 | case PM_DUST_VORTEX: |
| 1437 | case PM_ENERGY_VORTEX: |
| 1438 | what = "heating up"; |
| 1439 | break; |
| 1440 | default: |
| 1441 | what = (mattk->aatyp == AT_HUGS) ? "being roasted" : "on fire"; |
| 1442 | break; |
| 1443 | } |
| 1444 | return what; |
| 1445 | } |
| 1446 | |
| 1447 | /* similar to on_fire(); creature is summoned in a cloud of <something> */ |
| 1448 | const char * |
no outgoing calls
no test coverage detected