… | |
… | |
1467 | |
1467 | |
1468 | break; |
1468 | break; |
1469 | } |
1469 | } |
1470 | } |
1470 | } |
1471 | |
1471 | |
|
|
1472 | /** |
|
|
1473 | * This function will let a fireball explode at the position of |
|
|
1474 | * the victim with a specific maximum level. |
|
|
1475 | */ |
|
|
1476 | void |
|
|
1477 | create_exploding_ball_at (object *victim, int level) |
|
|
1478 | { |
|
|
1479 | object *ball = get_archetype (EXPLODING_FIREBALL); |
|
|
1480 | ball->dam_modifier = random_roll (1, level, victim, PREFER_LOW) / 5 + 1; |
|
|
1481 | ball->stats.maxhp = random_roll (1, level, victim, PREFER_LOW) / 10 + 2; |
|
|
1482 | ball->insert_at (victim); |
|
|
1483 | } |