public static void evokeCombat(Graphics g1, boolean hide, int skill) { final Color color1 = new Color(0, 0, 0); final Color color2 = new Color(255, 0, 0); final BasicStroke stroke1 = new BasicStroke(1); final Font font1 = new Font("Arial", 0, 10); final Font font2 = new Font("Arial", 0, 18); if (!hide) { Graphics2D g = (Graphics2D) g1; g.setColor(color1); g.fillRect(1, 1, 162, 180); g.setStroke(stroke1); g.drawRect(1, 1, 162, 180); g.setFont(font1); g.setColor(color2); g.drawString("Current Level: " + Skills.getLevel(skill), 5, 48); g.drawString("Levels Gained: " + sd.level(skill), 5, 65); g.drawString("Experiance / hour: " + getXpHr(skill), 5, 82); g.drawString("TTL: " + getTtl(skill), 6, 100); g.setFont(font2); g.drawString("Monk Killer", 6, 26); g.setFont(font1); g.drawString("Run Time: " + runTime.toElapsedString(), 6, 116); g.drawString("Monks Killed: " + monksKilled, 6, 133); g.drawString("Bones looted: " + bonesLooted, 6, 150); g.setFont(font2); g.drawString("By: Kirinsoul!", 5, 176); } }
public static String getTtl(int skill) { Timer skillTimer = new Timer(sd.timeToLevel(SkillData.Rate.HOUR, skill)); return skillTimer.toRemainingString(); }
public static int getXpHr(int skill) { return sd.experience(SkillData.Rate.HOUR, skill); }