v0.4.1: wands now charge slightly faster when in the wand holster

This commit is contained in:
Evan Debenham
2016-07-10 20:20:43 -04:00
committed by Evan Debenham
parent 64b0f46a06
commit 2166d13c62
3 changed files with 9 additions and 3 deletions
@@ -31,6 +31,8 @@ public class WandHolster extends Bag {
size = 12;
}
public static float HOLSTER_SCALE_FACTOR = 0.85f;
@Override
public boolean grab( Item item ) {
@@ -42,7 +44,7 @@ public class WandHolster extends Bag {
if (super.collect( container )) {
if (owner != null) {
for (Item item : items) {
((Wand)item).charge( owner );
((Wand)item).charge( owner, HOLSTER_SCALE_FACTOR );
}
}
return true;