Examples of PrayerDef


Examples of org.moparscape.msc.gs.model.definition.skill.PrayerDef

      player.getActionSender().sendMessage(
          "Prayer is disabled in this duel");
      player.getActionSender().sendPrayers();
      return;
    }
    PrayerDef prayer = EntityHandler.getPrayerDef(prayerID);
    switch (pID) {
    case 56:
      if (player.getMaxStat(5) < prayer.getReqLevel()) {
        player.setSuspiciousPlayer(true);
        player.getActionSender()
            .sendMessage(
                "Your prayer ability is not high enough to use this prayer");
        break;
View Full Code Here

Examples of org.moparscape.msc.gs.model.definition.skill.PrayerDef

    }
  }

  public void addPrayerDrain(int prayerID) {
    drainRate = 0;
    PrayerDef prayer = EntityHandler.getPrayerDef(prayerID);
    for (int x = 0; x <= 13; x++) {
      prayer = EntityHandler.getPrayerDef(x);
      if (super.isPrayerActivated(x)) {
        drainRate += prayer.getDrainRate();
      }
    }
    if (drainRate > 0) {
      drainer.setDelay((int) (180000.0 / drainRate * (1 + getPrayerBonus() / 30.0)));
    } else if (drainRate <= 0) {
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.