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:
Ceikry
2023-01-26 13:59:28 +00:00
committed by Ryan
parent e4b799c44a
commit a100affda2
3156 changed files with 24205 additions and 30585 deletions
@@ -0,0 +1,66 @@
package content.global.skill.summoning.familiar;
import core.game.node.entity.skill.Skills;
import core.game.node.entity.combat.equipment.WeaponInterface;
import core.game.node.entity.player.Player;
import core.game.node.item.Item;
import core.game.world.update.flag.context.Animation;
import core.plugin.Initializable;
import core.game.world.update.flag.context.Graphics;
/**
* Represents the Abyssal Lurker familiar.
* @author Aero
*/
@Initializable
public class AbyssalLurkerNPC extends BurdenBeast {
/**
* Constructs a new {@code AbyssalLurkerNPC} {@code Object}.
*/
public AbyssalLurkerNPC() {
this(null, 6820);
}
/**
* Constructs a new {@code AbyssalLurkerNPC} {@code Object}.
* @param owner The owner.
* @param id The id.
*/
public AbyssalLurkerNPC(Player owner, int id) {
super(owner, id, 4100, 12037, 3, 7, WeaponInterface.STYLE_CAST);
}
@Override
public Familiar construct(Player owner, int id) {
return new AbyssalLurkerNPC(owner, id);
}
@Override
public boolean isAllowed(Player owner, Item item) {
if (item.getId() != 1436 && item.getId() != 7936) {
owner.getPacketDispatch().sendMessage("Your familiar can only hold unnoted essence.");
return false;
}
return super.isAllowed(owner, item);
}
@Override
protected boolean specialMove(FamiliarSpecial special) {
visualize(Animation.create(7682), Graphics.create(0));
owner.getSkills().updateLevel(Skills.AGILITY, 4);
owner.getSkills().updateLevel(Skills.THIEVING, 4);
return true;
}
@Override
public void visualizeSpecialMove() {
owner.visualize(new Animation(7660), new Graphics(1296));
}
@Override
public int[] getIds() {
return new int[] { 6820, 6821 };
}
}