v0.3.0: modified some basic wand properties (now max at 10 charges, and IDs much quicker)
This commit is contained in:
parent
673f024c17
commit
9c0391f39e
|
@ -46,7 +46,7 @@ import com.watabou.utils.Random;
|
||||||
|
|
||||||
public abstract class Wand extends KindOfWeapon {
|
public abstract class Wand extends KindOfWeapon {
|
||||||
|
|
||||||
private static final int USAGES_TO_KNOW = 40;
|
private static final int USAGES_TO_KNOW = 10;
|
||||||
|
|
||||||
public static final String AC_ZAP = "ZAP";
|
public static final String AC_ZAP = "ZAP";
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ public abstract class Wand extends KindOfWeapon {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateLevel() {
|
public void updateLevel() {
|
||||||
maxCharges = Math.min( initialCharges() + level, 9 );
|
maxCharges = Math.min( initialCharges() + level, 10 );
|
||||||
curCharges = Math.min( curCharges, maxCharges );
|
curCharges = Math.min( curCharges, maxCharges );
|
||||||
|
|
||||||
calculateDamage();
|
calculateDamage();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user