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 Summary
ConstructorDescriptionIncreaseXPDependentOnLevelAction(double xpDiff, double karmabonus)
Creates a new IncreaseXPDependentOnLevelAction. -
Method Summary
-
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
-
fire
Description copied from interface:PostTransitionAction
does some action after a transition.- Specified by:
fire
in interfaceChatAction
- Specified by:
fire
in interfacePostTransitionAction
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidraiser
- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-