a100affda2
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
21 lines
613 B
Java
21 lines
613 B
Java
package content.data.consumables.effects;
|
|
|
|
import core.game.consumable.ConsumableEffect;
|
|
import core.game.node.entity.player.Player;
|
|
|
|
public class NettleTeaEffect extends ConsumableEffect {
|
|
|
|
private final static int healing = 3;
|
|
|
|
@Override
|
|
public void activate(Player p) {
|
|
final ConsumableEffect effect = p.getSkills().getLifepoints() < p.getSkills().getMaximumLifepoints() ? new MultiEffect(new HealingEffect(3), new EnergyEffect(5)) : new HealingEffect(3);
|
|
effect.activate(p);
|
|
}
|
|
|
|
@Override
|
|
public int getHealthEffectValue(Player player) {
|
|
return healing;
|
|
}
|
|
}
|