Troll.java
package com.jadventure.game.monsters;
/*
* A monster without low damage, but high health and armour.
*/
public class Troll extends Monster {
public Troll(int playerLevel){
this.monsterType = "Troll";
this.setHealthMax(70 + playerLevel * 11);
this.setHealth(70 + playerLevel * 11);
this.setArmour(playerLevel + 12);
this.setDamage(20 + playerLevel * 3);
this.setCritChance(0.05);
this.setIntelligence(1);
this.setStealth(1);
this.setDexterity(1);
this.setXPGain(75 + playerLevel * 3);
this.setGold(25 + playerLevel * 10);
addRandomItems(playerLevel, "wbrd1", "ashi1", "pmil2");
}
}