TEASURE! +R
This commit is contained in:
parent
37a5024fcd
commit
cb9246281c
@ -91,8 +91,7 @@ public class Treasure
|
|||||||
_chestData[i] = new ChestData(chestBlocks[i]);
|
_chestData[i] = new ChestData(chestBlocks[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_treasureType == TreasureType.ANCIENT || _treasureType == TreasureType.MYTHICAL)
|
_animations.add(new BlockChangeAnimation(this, _otherBlockInfo));
|
||||||
_animations.add(new BlockChangeAnimation(this, _otherBlockInfo));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getFinishedTickCount()
|
public int getFinishedTickCount()
|
||||||
|
@ -51,12 +51,18 @@ public class BlockChangeAnimation extends Animation
|
|||||||
}
|
}
|
||||||
else if (b.getType() == Material.SMOOTH_BRICK)
|
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;
|
Material newMaterial = getTreasure().getTreasureType() == TreasureType.ANCIENT ? Material.NETHER_BRICK : Material.QUARTZ_BLOCK;
|
||||||
_blockInfoList.add(new BlockInfo(b));
|
_blockInfoList.add(new BlockInfo(b));
|
||||||
b.setType(newMaterial);
|
b.setType(newMaterial);
|
||||||
}
|
}
|
||||||
else if (b.getType() == Material.SMOOTH_STAIRS || b.getType() == Material.COBBLESTONE_STAIRS)
|
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;
|
Material newMaterial = getTreasure().getTreasureType() == TreasureType.ANCIENT ? Material.NETHER_BRICK_STAIRS : Material.QUARTZ_STAIRS;
|
||||||
_blockInfoList.add(new BlockInfo(b));
|
_blockInfoList.add(new BlockInfo(b));
|
||||||
b.setType(newMaterial);
|
b.setType(newMaterial);
|
||||||
|
@ -41,8 +41,5 @@ public class BuyBasicChestButton implements IButton
|
|||||||
_page.Refresh();
|
_page.Refresh();
|
||||||
}
|
}
|
||||||
}, _page, new OldChest(), CurrencyType.Coins, player));
|
}, _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