Examples of addXp()


Examples of com.gmail.nossr50.datatypes.player.PlayerProfile.addXp()

        if (isCancelled) {
            PlayerProfile profile = UserManager.getPlayer(player).getProfile();

            profile.modifySkill(skill, profile.getSkillLevel(skill) - (isLevelUp ? levelsChanged : -levelsChanged));
            profile.addXp(skill, xpRemoved);
        }

        return !isCancelled;
    }
View Full Code Here

Examples of com.gmail.nossr50.datatypes.player.PlayerProfile.addXp()

    // Utility methods follow.
    private static void addOfflineXP(UUID playerUniqueId, SkillType skill, int XP) {
        PlayerProfile profile = getOfflineProfile(playerUniqueId);

        profile.addXp(skill, XP);
        profile.save();
    }

    @Deprecated
    private static void addOfflineXP(String playerName, SkillType skill, int XP) {
View Full Code Here

Examples of com.gmail.nossr50.datatypes.player.PlayerProfile.addXp()

    @Deprecated
    private static void addOfflineXP(String playerName, SkillType skill, int XP) {
        PlayerProfile profile = getOfflineProfile(playerName);

        profile.addXp(skill, XP);
        profile.scheduleAsyncSave();
    }

    private static PlayerProfile getOfflineProfile(UUID uuid) {
        PlayerProfile profile = mcMMO.getDatabaseManager().loadPlayerProfile(uuid);
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.addXP()

      // point, because getting nothing lowers motivation.
      if (reward == 0) {
        reward = 1;
      }

      killer.addXP(reward);
     
      // For some quests etc., it is required that the player kills a
      // certain creature without the help of others.
      // Find out if the player killed this RPEntity on his own, but
      // don't overwrite solo with shared.
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.addXP()

    arena.add(creature);
    assertFalse("is not attacking", strat.hasValidTarget(creature));
    arena.add(veteran);
    arena.add(newbie);
    veteran.addXP(10000);
    newbie.addXP(100);
   
    assertTrue("sanity check for player levels", veteran.getLevel() > newbie.getLevel());
   
    creature.setPosition(3, 3);
    veteran.setPosition(3, 4);
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.addXP()

    StendhalRPZone arena = new StendhalRPZone("arena");
    arena.add(creature);
    assertFalse("is not attacking", strat.hasValidTarget(creature));
    arena.add(veteran);
    arena.add(scrollCreature);
    veteran.addXP(10000);
   
    assertTrue("sanity check for enemy levels", veteran.getLevel() > scrollCreature.getLevel());
   
    creature.setPosition(3, 3);
    scrollCreature.setPosition(2, 4);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.