… | |
… | |
451 | { |
451 | { |
452 | int dam = disease->stats.dam; |
452 | int dam = disease->stats.dam; |
453 | |
453 | |
454 | /* reduce the damage, on average, 50%, and making things random. */ |
454 | /* reduce the damage, on average, 50%, and making things random. */ |
455 | |
455 | |
456 | dam = random_roll (1, FABS (dam), victim, PREFER_LOW); |
456 | dam = random_roll (1, abs (dam), victim, PREFER_LOW); |
457 | if (disease->stats.dam < 0) |
457 | if (disease->stats.dam < 0) |
458 | dam = -dam; |
458 | dam = -dam; |
459 | new_symptom->stats.dam = dam; |
459 | new_symptom->stats.dam = dam; |
460 | } |
460 | } |
461 | |
461 | |