mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-25 03:55:22 +01:00
Set level EXP instead of total exp
This commit is contained in:
parent
cd2ee3421f
commit
86c09f6a72
@ -247,7 +247,7 @@ public class DGamePlayer extends DInstancePlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reset lvl
|
// Reset lvl
|
||||||
getPlayer().setTotalExperience(0);
|
getPlayer().setExp(0f);
|
||||||
getPlayer().setLevel(0);
|
getPlayer().setLevel(0);
|
||||||
|
|
||||||
/* Set Inventory */
|
/* Set Inventory */
|
||||||
|
@ -75,7 +75,7 @@ public abstract class DInstancePlayer extends DGlobalPlayer {
|
|||||||
public void clearPlayerData() {
|
public void clearPlayerData() {
|
||||||
player.getInventory().clear();
|
player.getInventory().clear();
|
||||||
player.getInventory().setArmorContents(null);
|
player.getInventory().setArmorContents(null);
|
||||||
player.setTotalExperience(0);
|
player.setExp(0f);
|
||||||
player.setLevel(0);
|
player.setLevel(0);
|
||||||
player.setMaxHealth(20);
|
player.setMaxHealth(20);
|
||||||
player.setHealth(20);
|
player.setHealth(20);
|
||||||
|
Loading…
Reference in New Issue
Block a user