v0.3.2b: tweaked lock floor effect, allowed for some regen to process if time is awarded.

This commit is contained in:
Evan Debenham
2015-11-07 20:02:22 -05:00
parent 519e1252cb
commit 47aa30c830
11 changed files with 46 additions and 22 deletions
@@ -436,7 +436,8 @@ public abstract class Wand extends Item {
float turnsToCharge = (float) (BASE_CHARGE_DELAY
+ (SCALING_CHARGE_ADDITION * Math.pow(scalingFactor, missingCharges)));
if (target.buff(LockedFloor.class) == null)
LockedFloor lock = target.buff(LockedFloor.class);
if (lock == null || lock.regenOn())
partialCharge += 1f/turnsToCharge;
ScrollOfRecharging.Recharging bonus = target.buff(ScrollOfRecharging.Recharging.class);