|
|
@ -764,13 +764,6 @@ public class Item extends AbstractWorldObject { |
|
|
|
this.bonuses.put(key, amount); |
|
|
|
this.bonuses.put(key, amount); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void multBonus(AbstractEffectModifier key, float amount) { |
|
|
|
|
|
|
|
if (this.bonuses.containsKey(key)) |
|
|
|
|
|
|
|
this.bonuses.put(key, (this.bonuses.get(key) * amount)); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
this.bonuses.put(key, amount); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public synchronized void decrementChargesRemaining() { |
|
|
|
public synchronized void decrementChargesRemaining() { |
|
|
|
this.chargesRemaining -= 1; |
|
|
|
this.chargesRemaining -= 1; |
|
|
|
if (this.chargesRemaining < 0) |
|
|
|
if (this.chargesRemaining < 0) |
|
|
|