v2.5.0: fixed inventory stones not counting in catalogs in some cases

This commit is contained in:
Evan Debenham
2024-09-04 12:46:47 -04:00
parent 8b5c60d1d5
commit 4ff3a3365a
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ public class StoneOfAugmentation extends InventoryStone {
useAnimation();
ScrollOfUpgrade.upgrade(curUser);
curItem.detach( curUser.belongings.backpack );
Catalog.countUse(getClass());
}
public void apply( Armor armor, Armor.Augment augment ) {

View File

@@ -114,7 +114,7 @@ public class StoneOfIntuition extends InventoryStone {
protected void onClick() {
super.onClick();
useAnimation();
Catalog.countUse(getClass());
Catalog.countUse(StoneOfIntuition.class);
if (item.getClass() == curGuess){
if (item instanceof Ring){
((Ring) item).setKnown();