public int calculateMeleeDefence() {
        int defenceLevel = c.playerLevel[1];
		int i = c.playerBonus[bestMeleeDef()];
        if (c.prayerActive[0])
            defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.05;
        else if (c.prayerActive[5])
            defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.1;
        else if (c.prayerActive[13])
            defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.15;
        else if (c.prayerActive[24])
            defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.2;
        else if (c.prayerActive[25])
            defenceLevel += c.getLevelForXP(c.playerXP[c.playerDefence]) * 0.25;
        else if (c.curseActive[c.curses().TURMOIL])
			defenceLevel = (int)(defenceLevel * c.curses().getTurmoilMultiplier("Defence"));
        return (int)(defenceLevel + (defenceLevel * 0.15) + (i + i * 0.05));
    }