mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
parent
7c7b61be0c
commit
7e79b52091
@ -649,7 +649,8 @@ public class DGamePlayer extends DInstancePlayer implements GamePlayer {
|
|||||||
int expDrop = 7 * player.getLevel();
|
int expDrop = 7 * player.getLevel();
|
||||||
expDrop = expDrop > 100 ? 100 : expDrop;
|
expDrop = expDrop > 100 ? 100 : expDrop;
|
||||||
orb.setExperience(expDrop);
|
orb.setExperience(expDrop);
|
||||||
player.setLevel(player.getLevel() - 7);
|
int newLevel = player.getLevel() - 7;
|
||||||
|
player.setLevel(newLevel > 0 ? newLevel : 0);
|
||||||
player.setExp(0);
|
player.setExp(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user