Examples of KillDeathHistory


Examples of org.moparscape.msc.gs.model.player.attribute.KillDeathHistory

    if (Config.elo) {
      this.setProperty("elo", new Elo(1200, 0));
    }

    this.setProperty("killDeathHistory", new KillDeathHistory(0, 0, 0, 0,
        0, 0));
  }
View Full Code Here

Examples of org.moparscape.msc.gs.model.player.attribute.KillDeathHistory

        Elo winner = player.getProperty("elo");
        Elo loser = this.getProperty("elo");

        winner.recalculateForWin(loser);
      }
      KillDeathHistory kdh = player.getProperty("killDeathHistory");
      KillDeathHistory tkdh = this.getProperty("killDeathHistory");
      if (stake) {
        kdh.playerKillsDuel_$eq(kdh.playerKillsDuel() + 1);
        tkdh.playerDeathsDuel_$eq(tkdh.playerDeathsDuel() + 1);
      } else {
        kdh.playerKillsWild_$eq(kdh.playerKillsWild() + 1);
        tkdh.playerDeathsWild_$eq(tkdh.playerDeathsWild() + 1);
      }
      Instance.getServer().getLoginConnector().getActionSender()
          .logKill(player.getUsernameHash(), usernameHash, stake);
    } else {
      KillDeathHistory kdh = this.getProperty("killDeathHistory");
      kdh.npcDeaths_$eq(kdh.npcDeaths() + 1);
    }
    Mob opponent = super.getOpponent();
    if (opponent != null) {
      opponent.resetCombat(CombatState.WON);
    }
View Full Code Here

Examples of org.moparscape.msc.gs.model.player.attribute.KillDeathHistory

  public void killedBy(Mob mob, boolean stake) {
    if (mob instanceof Player) {
      Player player = (Player) mob;
      player.getActionSender().sendSound("victory");
      KillDeathHistory kdh = player.getProperty("killDeathHistory");
      kdh.npcKills_$eq(kdh.npcKills() + 1);
    }

    Mob opponent = super.getOpponent();
    if (opponent != null) {
      opponent.resetCombat(CombatState.WON);
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.