TEASURE! +R
This commit is contained in:
parent
37a5024fcd
commit
cb9246281c
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user