mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add green sludge special index
This commit is contained in:
parent
944067fd43
commit
b5b3b980fe
@ -16,6 +16,7 @@ pub enum StructureBlock {
|
||||
Acacia,
|
||||
PalmLeaves,
|
||||
Water,
|
||||
GreenSludge,
|
||||
Fruit,
|
||||
Hollow,
|
||||
Block(Block),
|
||||
@ -98,6 +99,7 @@ impl Asset for Structure {
|
||||
2 => StructureBlock::PalmLeaves,
|
||||
3 => StructureBlock::Water,
|
||||
4 => StructureBlock::Acacia,
|
||||
6 => StructureBlock::GreenSludge,
|
||||
7 => StructureBlock::Fruit,
|
||||
15 => StructureBlock::Hollow,
|
||||
index => {
|
||||
|
@ -466,6 +466,7 @@ fn block_from_structure(
|
||||
.map(|e| e as u8),
|
||||
)),
|
||||
StructureBlock::Water => Some(Block::new(BlockKind::Water, Rgb::new(100, 150, 255))),
|
||||
StructureBlock::GreenSludge => Some(Block::new(BlockKind::Water, Rgb::new(30, 126, 23))),
|
||||
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