Repository reorganisation
Unified kotlin and java into just src/main Unified the rs09 and core packages Took all content out of the core package, and placed it into the new content package Reorganised all source code relating to content to be easier to find and explore
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package content.data.consumables.effects;
|
||||
|
||||
import core.game.node.entity.player.Player;
|
||||
import core.game.consumable.ConsumableEffect;
|
||||
|
||||
public class HealingEffect extends ConsumableEffect {
|
||||
int amt;
|
||||
public HealingEffect(int amount){
|
||||
this.amt = amount;
|
||||
}
|
||||
@Override
|
||||
public void activate(Player p) {
|
||||
p.getSkills().heal(amt);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getHealthEffectValue(Player player) {
|
||||
return amt;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user