forked from 2009Scape/Server
Added small summoning exp gain every minute a familiar is summoned
The gain is the summoning level required + 10.
This commit is contained in:
parent
6ed0ead8a7
commit
fba2e413cf
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue