Class IncreaseXPDependentOnLevelAction

java.lang.Object
games.stendhal.server.entity.npc.action.IncreaseXPDependentOnLevelAction
All Implemented Interfaces:
ChatAction, PostTransitionAction

@Dev(category=STATS, label="XP+") public class IncreaseXPDependentOnLevelAction extends Object implements ChatAction
Increases the xp of the current player.
  • Constructor Details

    • IncreaseXPDependentOnLevelAction

      public IncreaseXPDependentOnLevelAction(double xpDiff, double karmabonus)
      Creates a new IncreaseXPDependentOnLevelAction.
      Parameters:
      xpDiff - - player will get 1/xpDiff of difference between his and next levels xp amount.
      karmabonus - - amount of karma to add instead xp if player have max level
  • Method Details