protected void wandEffect(final int cell) { setKnown(); QuickSlot.target(curItem, Actor.findChar(cell)); if (curCharges > 0) { getCurUser().busy(); fx( cell, new Callback() { @Override public void call() { onZap(cell); wandUsed(); } }); Invisibility.dispel(getCurUser()); } else { getCurUser().spendAndNext(TIME_TO_ZAP); GLog.w(TXT_FIZZLES); levelKnown = true; if (Random.Int(5) == 0) { identify(); } updateQuickslot(); } }
@Override public Item identify() { setKnown(); curChargeKnown = true; super.identify(); updateQuickslot(); return this; }