1package com.runehive.content.shootingstar;
3import com.runehive.Config;
4import com.runehive.game.world.World;
5import com.runehive.game.world.entity.mob.player.Player;
6import com.runehive.game.world.entity.skill.Skill;
7import com.runehive.game.world.items.Item;
8import com.runehive.game.world.object.CustomGameObject;
9import com.runehive.util.RandomUtils;
41 public int[]
starIds = { 41229, 41228, 41227, 41226, 41225, 41224, 41223, 41021, };
46 public int[]
possibleDust = { 1200, 700, 430, 250, 175, 80, 40, 40, 15 };
51 public int[]
xpDrops = { 12, 22, 26, 31, 48, 74, 123, 162, 244 };
69 System.out.println(
"starLocation.starPosition " +
starLocation.starPosition);
91 if(p ==
null || !(p.action.getCurrentAction() instanceof
ShootingStarAction))
continue;
93 System.out.println(
"Reset the mining action for all the players with a shooting star action...");
129 int[] chances = { 0, 16, 18, 20, 17, 12, 9, 5 };
131 for (
int index = chances.length - 1; index > 0; index--) {
133 if (roll < chances[index])
The class that contains setting-related constants for the server.
static final double MINING_MODIFICATION
The experience modification for mining.
int getObjectId()
The current object id.
int maxDust
The max dust for this star level.
int[] starIds
All the possible object ids for the different star levels.
int availableDust
How much dust there currently is in the star.
CustomGameObject starObject
The game object linked to the star.
int getXPDrop()
The xp the player gets for the current star.
int[] xpDrops
Possible xp drops for the differernt star levels.
void decreaseDust(Player player)
Handles decreasing the dust for a star.
String getLocationName()
The current location of the star.
void destruct()
Handles removing the star from the game.
int getLevel()
Gets the random star level.
boolean decreaseDouble
See if the dust needs to be removed double.
int[] possibleDust
The amount of star dust the player receives for the different star levels.
String getHint()
The current hint of the star location.
int[] doubleChance
The chance of doubling stardust depending on the star level.
int getPercentage()
Percentage till the next star level.
int getMiningLevel()
The required mining level for the star level.
void decreaseLevel()
Handles the decreasing of the star level.
int starLevel
The current level of the star.
ShootingStarLocations starLocation
The current location of the star.
Represents the game world.
static MobList< Player > getPlayers()
final SkillManager skills
This class represents a character controlled by a player.
final Inventory inventory
Represents a trainable and usable skill.
static final int MINING
The mining skill id.
void addExperience(int id, double experience)
Adds experience to a given skill.
The container class that represents an item that can be interacted with.
boolean add(Item item)
Attempts to deposit item into this container.
Represents a static game object loaded from the map fs.
A static-util class that provides additional functionality for generating pseudo-random numbers.
static int inclusive(int min, int max)
Returns a pseudo-random int value between inclusive min and inclusive max.