… | |
… | |
508 | symptom->stats.stat (i) = clamp (int (scale * disease->stats.stat (i)), -128, 127); |
508 | symptom->stats.stat (i) = clamp (int (scale * disease->stats.stat (i)), -128, 127); |
509 | |
509 | |
510 | symptom->stats.dam = clamp (scale * disease->stats.dam , -1024, 1024); |
510 | symptom->stats.dam = clamp (scale * disease->stats.dam , -1024, 1024); |
511 | symptom->stats.food = clamp (scale * disease->last_eat , -1024, 1024); |
511 | symptom->stats.food = clamp (scale * disease->last_eat , -1024, 1024); |
512 | symptom->stats.maxsp = clamp (scale * disease->stats.maxsp, -1024, 1024); |
512 | symptom->stats.maxsp = clamp (scale * disease->stats.maxsp, -1024, 1024); |
513 | symptom->last_sp = clamp (scale * disease->last_sp , -1024, 1024); |
|
|
514 | symptom->stats.sp = clamp (scale * disease->stats.sp , -1024, 1024); |
513 | symptom->stats.sp = clamp (scale * disease->stats.sp , -1024, 1024); |
515 | symptom->stats.hp = clamp (scale * disease->stats.hp , -1024, 1024); |
514 | symptom->stats.hp = clamp (scale * disease->stats.hp , -1024, 1024); |
516 | symptom->stats.exp = 0; |
515 | symptom->stats.exp = 0; |
517 | |
516 | symptom->last_sp = last_sp ? clamp (disease->last_sp / scale, 1, 1024) : 0; |
518 | symptom->msg = disease->msg; |
517 | symptom->msg = disease->msg; |
519 | symptom->attacktype = disease->attacktype; |
518 | symptom->attacktype = disease->attacktype; |
520 | symptom->other_arch = disease->other_arch; |
519 | symptom->other_arch = disease->other_arch; |
521 | } |
520 | } |
522 | |
521 | |