idk anymore
This commit is contained in:
parent
a7c7f11bc7
commit
729a214e2e
1 changed files with 4 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ public class OfflinePlayerEvents {
|
|||
int i = 0;
|
||||
float damage = event.getAmount();
|
||||
ph.setAdrenaline(Math.max(ph.getAdrenaline(), damage * 1.0F));
|
||||
while(damage > 0.0F) {
|
||||
while(damage > 0.0F && i < 100) {
|
||||
++i;
|
||||
Limb randLimb = Limb.weigtedRandomLimb();
|
||||
float damage_pass = (float)(Math.random() * (double)4.0F);
|
||||
|
|
@ -106,6 +106,9 @@ public class OfflinePlayerEvents {
|
|||
if (amputated) {
|
||||
damage /= 4.0F;
|
||||
}
|
||||
} else {
|
||||
ph.applySkinDamage(randLimb, (float) ((double) passDamage * (Math.random() / (double) 2.0F + (double) 0.7F)));
|
||||
damage -= damage_pass;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue