mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add water special index
This commit is contained in:
parent
d65bacbea1
commit
944067fd43
@ -15,6 +15,7 @@ pub enum StructureBlock {
|
||||
PineLeaves,
|
||||
Acacia,
|
||||
PalmLeaves,
|
||||
Water,
|
||||
Fruit,
|
||||
Hollow,
|
||||
Block(Block),
|
||||
@ -95,6 +96,7 @@ impl Asset for Structure {
|
||||
0 => StructureBlock::TemperateLeaves,
|
||||
1 => StructureBlock::PineLeaves,
|
||||
2 => StructureBlock::PalmLeaves,
|
||||
3 => StructureBlock::Water,
|
||||
4 => StructureBlock::Acacia,
|
||||
7 => StructureBlock::Fruit,
|
||||
15 => StructureBlock::Hollow,
|
||||
|
@ -465,6 +465,7 @@ fn block_from_structure(
|
||||
Lerp::lerp(Rgb::new(0.0, 108.0, 113.0), Rgb::new(30.0, 156.0, 10.0), lerp)
|
||||
.map(|e| e as u8),
|
||||
)),
|
||||
StructureBlock::Water => Some(Block::new(BlockKind::Water, Rgb::new(100, 150, 255))),
|
||||
StructureBlock::Acacia => Some(Block::new(
|
||||
BlockKind::Normal,
|
||||
Lerp::lerp(Rgb::new(35.0, 156.0, 0.0), Rgb::new(62.0, 208.0, 0.0), lerp)
|
||||
|
Loading…
Reference in New Issue
Block a user