v0.2.2: fixed a visual sync bug with bones system

This commit is contained in:
Evan Debenham
2014-10-25 14:11:46 -04:00
parent 2d176b4b62
commit bd4405a805
6 changed files with 31 additions and 14 deletions
@@ -99,7 +99,7 @@ public class Bones {
if (!items.isEmpty()) {
item = Random.element(items);
if (item.stackable){
item.quantity(Random.NormalIntRange(1, (int)Math.sqrt(item.quantity())));
item.quantity((int)Math.sqrt(item.quantity()));
}
}
}
@@ -147,9 +147,7 @@ public class Bones {
}
}
if (item instanceof Ring) {
((Ring)item).syncGem();
}
item.syncVisuals();
return item;
} else {