v0.4.1: wands now charge slightly faster when in the wand holster
This commit is contained in:
committed by
Evan Debenham
parent
64b0f46a06
commit
2166d13c62
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user