Fix healthbar stuff, remove double constant

This commit is contained in:
Lucas
2019-06-21 18:50:32 +02:00
parent 8020f758e1
commit 24228f86fe
13 changed files with 17 additions and 156 deletions

View File

@@ -934,7 +934,7 @@ public interface Client extends GameShell
*
* @return all projectiles
*/
java.util.List<Projectile> getProjectiles();
List<Projectile> getProjectiles();
/**
* Gets a list of all graphics objects currently drawn.
@@ -1631,7 +1631,7 @@ public interface Client extends GameShell
void draw2010Menu();
NodeCache getHealthBarCache();
void resetHealthBarCaches();
void setRenderSelf(boolean enabled);
@@ -1655,6 +1655,4 @@ public interface Client extends GameShell
String getSelectedSpellName();
boolean getIsSpellSelected();
void resetHealthBarCaches();
}

View File

@@ -99,9 +99,11 @@ public class Constants
public static final int GAME_TICK_LENGTH = 600;
/**
* Used when getting High Alchemy value - multiplied by general store price.
* High alchemy = shop price * HIGH_ALCHEMY_MULTIPLIER
*
* @see ItemDefinition#getPrice
*/
public static final float HIGH_ALCHEMY_CONSTANT = 0.6f;
public static final float HIGH_ALCHEMY_MULTIPLIER = 0.6f;
/**
* Width of a standard item sprite
@@ -112,11 +114,4 @@ public class Constants
* Height of a standard item sprite
*/
public static final int ITEM_SPRITE_HEIGHT = 32;
/**
* High alchemy = shop price * HIGH_ALCHEMY_MULTIPLIER
*
* @see ItemComposition#getPrice
*/
public static final float HIGH_ALCHEMY_MULTIPLIER = .6f;
}