@@ -0,0 +1,537 @@
+package deepestDungeon;%0A%0Apublic abstract class Buff %7B%0A%09int duration;%0A%09boolean isPerm = false;%0A%09public Buff(int duration) %7B%0A%09%09this.duration = duration;%0A%09%09if(duration %3C 0)%7B%0A%09%09%09isPerm = true;%0A%09%09%7D%0A%09%7D%0A%09%0A%09public final void tick()%7B%0A%09%09if(!isPerm)%7Bduration--;%7D%0A%09%09onTick();%0A%09%7D%0A%09%0A%09protected abstract void onTick();//the thing that happens when it ticks down.%0A%09%0A%09public void onRemove()%7B%0A%09%09%0A%09%7D%0A%09%0A%09public void onApply()%7B%0A%09%09System.out.println(%22apply the pliers%22);%0A%09%7D%0A%09public abstract int onDamage(int i, int type); //any damage modifier that occurs.%0A%7D%0A

Create Buff.java