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,
|
Acacia,
|
||||||
PalmLeaves,
|
PalmLeaves,
|
||||||
Water,
|
Water,
|
||||||
|
GreenSludge,
|
||||||
Fruit,
|
Fruit,
|
||||||
Hollow,
|
Hollow,
|
||||||
Block(Block),
|
Block(Block),
|
||||||
@ -98,6 +99,7 @@ impl Asset for Structure {
|
|||||||
2 => StructureBlock::PalmLeaves,
|
2 => StructureBlock::PalmLeaves,
|
||||||
3 => StructureBlock::Water,
|
3 => StructureBlock::Water,
|
||||||
4 => StructureBlock::Acacia,
|
4 => StructureBlock::Acacia,
|
||||||
|
6 => StructureBlock::GreenSludge,
|
||||||
7 => StructureBlock::Fruit,
|
7 => StructureBlock::Fruit,
|
||||||
15 => StructureBlock::Hollow,
|
15 => StructureBlock::Hollow,
|
||||||
index => {
|
index => {
|
||||||
|
@ -466,6 +466,7 @@ fn block_from_structure(
|
|||||||
.map(|e| e as u8),
|
.map(|e| e as u8),
|
||||||
)),
|
)),
|
||||||
StructureBlock::Water => Some(Block::new(BlockKind::Water, Rgb::new(100, 150, 255))),
|
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(
|
StructureBlock::Acacia => Some(Block::new(
|
||||||
BlockKind::Normal,
|
BlockKind::Normal,
|
||||||
Lerp::lerp(Rgb::new(35.0, 156.0, 0.0), Rgb::new(62.0, 208.0, 0.0), lerp)
|
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