TEASURE! +R

This commit is contained in:
Mini-Chiss 2015-02-10 16:49:50 +13:00
parent 37a5024fcd
commit cb9246281c
3 changed files with 7 additions and 5 deletions

View File

@ -91,7 +91,6 @@ public class Treasure
_chestData[i] = new ChestData(chestBlocks[i]);
}
if (_treasureType == TreasureType.ANCIENT || _treasureType == TreasureType.MYTHICAL)
_animations.add(new BlockChangeAnimation(this, _otherBlockInfo));
}

View File

@ -51,12 +51,18 @@ public class BlockChangeAnimation extends Animation
}
else if (b.getType() == Material.SMOOTH_BRICK)
{
if (getTreasure().getTreasureType() == TreasureType.OLD)
continue;
Material newMaterial = getTreasure().getTreasureType() == TreasureType.ANCIENT ? Material.NETHER_BRICK : Material.QUARTZ_BLOCK;
_blockInfoList.add(new BlockInfo(b));
b.setType(newMaterial);
}
else if (b.getType() == Material.SMOOTH_STAIRS || b.getType() == Material.COBBLESTONE_STAIRS)
{
if (getTreasure().getTreasureType() == TreasureType.OLD)
continue;
Material newMaterial = getTreasure().getTreasureType() == TreasureType.ANCIENT ? Material.NETHER_BRICK_STAIRS : Material.QUARTZ_STAIRS;
_blockInfoList.add(new BlockInfo(b));
b.setType(newMaterial);

View File

@ -41,8 +41,5 @@ public class BuyBasicChestButton implements IButton
_page.Refresh();
}
}, _page, new OldChest(), CurrencyType.Coins, player));
_inventoryManager.addItemToInventory(player, "Item", "Ancient Chest", 1);
_inventoryManager.addItemToInventory(player, "Item", "Mythical Chest", 1);
}
}