public void RefreshBlockList(int playerCurrentLayer) { blocksFromLayer.Clear(); currentLayer = currentDimension.getCurrentLayer(playerCurrentLayer); layerBlocks = currentDimension.getBlocksFromLayer(currentLayer); // * (!layerBlocks[i].ignoreLuck ? 1 + (player.stats["luck"].finalValue / 100) : 1) for (int i = 0; i < layerBlocks.Length; i++) { blocksFromLayer.Add(layerBlocks[i].blockId, layerBlocks[i].appearance); } }
// Returns the blocks that are within that layer public LayerBlock[] getBlocksFromLayer(Dimensionlayer layer) { return(layer.blocks); }