forked from 2009Scape/Server
Merge pull request 'Update master' (#5) from dev into master
Reviewed-on: #5
This commit is contained in:
commit
e19c89f441
2 changed files with 7 additions and 2 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;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,8 @@ class AntiMacro : PersistTimer(0, "antimacro", isAuto = true), Commands {
|
|||
override fun onRegister(entity: Entity) {
|
||||
if (entity !is Player || entity.isArtificial)
|
||||
entity.timers.removeTimer(this)
|
||||
if (entity is Player && entity.rights == Rights.ADMINISTRATOR)
|
||||
//if (entity is Player && entity.rights == Rights.ADMINISTRATOR)
|
||||
if (entity is Player)
|
||||
paused = true
|
||||
|
||||
if (runInterval == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue