Added small summoning exp gain every minute a familiar is summoned

The gain is the summoning level required + 10.
This commit is contained in:
randy 2024-11-21 17:10:08 -07:00
parent 6ed0ead8a7
commit fba2e413cf

View file

@ -225,10 +225,14 @@ public abstract class Familiar extends NPC implements Plugin<Object> {
@Override
public void handleTickActions() {
//Snowscape: only count down the familiar timer if summoning points are zero
//Snowscape: only count down the familiar timer if summoning points are zero, and give some summoning exp every minute a familiar is summoned.
if (owner.getSkills().getLevel(Skills.SUMMONING) == 0) {
ticks--;
}
if (getWorldTicks() % 100 == 0) {
owner.getSkills().addExperience(Skills.SUMMONING, pouch.getLevelRequired()+10, true);
}
fracDrain += pointsPerTick;
if (fracDrain > 1.0 && ticks > 0) {
fracDrain -= 1.0;