v3.0.0: fixed a final wealth bug where equip drops were not spawning
This commit is contained in:
+6
-4
@@ -113,13 +113,15 @@ public class RingOfWealth extends Ring {
|
|||||||
|
|
||||||
if (bonus <= 0) return null;
|
if (bonus <= 0) return null;
|
||||||
|
|
||||||
CounterBuff triesToDrop = Buff.affect(target, TriesToDropTracker.class);
|
CounterBuff triesToDrop = target.buff(TriesToDropTracker.class);
|
||||||
if (triesToDrop.count() == 0){
|
if (triesToDrop == null){
|
||||||
|
triesToDrop = Buff.affect(target, TriesToDropTracker.class);
|
||||||
triesToDrop.countUp( Random.NormalIntRange(0, 20) );
|
triesToDrop.countUp( Random.NormalIntRange(0, 20) );
|
||||||
}
|
}
|
||||||
|
|
||||||
CounterBuff dropsToEquip = Buff.affect(target, DropsToEquipTracker.class);
|
CounterBuff dropsToEquip = target.buff(DropsToEquipTracker.class);
|
||||||
if (dropsToEquip.count() == 0){
|
if (dropsToEquip == null){
|
||||||
|
dropsToEquip = Buff.affect(target, DropsToEquipTracker.class);
|
||||||
dropsToEquip.countUp( Random.NormalIntRange(5, 10) );
|
dropsToEquip.countUp( Random.NormalIntRange(5, 10) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user