1package com.osroyale.content.shootingstar;
3import com.osroyale.content.skill.impl.mining.PickaxeData;
4import com.osroyale.game.task.Task;
5import com.osroyale.game.world.World;
6import com.osroyale.game.world.entity.mob.player.Player;
7import com.osroyale.game.world.entity.skill.Skill;
8import com.osroyale.game.world.items.Item;
9import com.osroyale.game.world.object.GameObject;
10import org.apache.logging.log4j.LogManager;
11import org.apache.logging.log4j.Logger;
49 private static final Logger logger = LogManager.getLogger(
ShootingStar.class);
73 player.dialogueFactory.
sendStatement(
"Congratulations! You were the first person to find this star!").
execute();
81 player.message(
"You don't have a pickaxe.");
86 player.message(
"You need a level of " + pickaxe.
level +
" to use this pickaxe!");
96 player.message(
"Not enough space in your inventory.");
100 player.message(
"You swing your pick at the rock.");
104 player.action.execute(
new ShootingStarAction(player, pickaxe, o));
115 player.dialogueFactory.
sendStatement(
"Congratulations! You were the first person to find this star!",
"You have been granted 10,000 mining xp!").
execute();
127 logger.info(
"Loaded Shooting Stars event.");
130 protected void execute() {
147 protected void onCancel(
boolean logout) {
final DialogueFactory sendStatement(String... lines)
final DialogueFactory execute()
static void mine(Player player, GameObject o)
static void prospect(Player player)
static boolean starHasBeenFound
static ShootingStarData shootingStarData
static void sendMessage(String... messages)
static void schedule(Task task)
boolean reqLevel(int level)
void addExperience(int id, double experience)
final boolean hasCapacityFor(Item... item)
static Optional< PickaxeData > getBestPickaxe(Player player)