add models: bone_door, bone_keyhole, bone_key

This commit is contained in:
flo666 2023-04-08 20:57:51 +02:00 committed by Sam
parent 8cbfb28da5
commit 38a6cc67f9
5 changed files with 30 additions and 18 deletions

BIN
assets/voxygen/voxel/object/key_bone.vox (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -656,6 +656,8 @@ impl SpriteKind {
| SpriteKind::MagicalBarrier
| SpriteKind::Helm
| SpriteKind::DoorWide,
| SpriteKind::BoneKeyhole
| SpriteKind::BoneKeyDoor
)
}
}

View File

@ -1357,7 +1357,7 @@ impl Structure for AdletStronghold {
painter
.cubic_bezier(
(yetipit_entrance_pos + door_dir * 10).with_z(alt as i32 + 2),
(yetipit_entrance_pos - door_dir * 20).with_z(alt as i32 - 10),
(yetipit_entrance_pos - door_dir * 16).with_z(alt as i32 - 10),
(yetipit_entrance_pos + door_dir * 20).with_z((alt as i32) - 30),
self.cavern_center.with_z((alt as i32) - 50),
4.0,
@ -1365,20 +1365,30 @@ impl Structure for AdletStronghold {
.clear();
// bone door
painter
.sphere_with_radius(
(yetipit_entrance_pos + door_dir).with_z(alt as i32 - 4),
4.0,
)
.cylinder(Aabb {
min: Vec2::new(yetipit_entrance_pos.x - 7, yetipit_entrance_pos.y - 7)
.with_z(alt as i32 - 8),
max: Vec2::new(yetipit_entrance_pos.x + 7, yetipit_entrance_pos.y + 7)
.with_z((alt as i32) - 7),
})
.fill(snow_ice_fill.clone());
painter
.cylinder(Aabb {
min: Vec2::new(yetipit_entrance_pos.x - 3, yetipit_entrance_pos.y - 3)
.with_z(alt as i32 - 8),
max: Vec2::new(yetipit_entrance_pos.x + 3, yetipit_entrance_pos.y + 3)
.with_z((alt as i32) - 7),
})
.fill(Fill::Block(Block::air(SpriteKind::BoneKeyDoor)));
painter
.sphere_with_radius(
(yetipit_entrance_pos + door_dir * 2).with_z(alt as i32 - 2),
1.0,
)
.aabb(Aabb {
min: Vec2::new(yetipit_entrance_pos.x - 1, yetipit_entrance_pos.y)
.with_z(alt as i32 - 8),
max: Vec2::new(yetipit_entrance_pos.x, yetipit_entrance_pos.y + 1)
.with_z((alt as i32) - 7),
})
.fill(Fill::Block(Block::air(SpriteKind::BoneKeyhole)));
painter
.sphere_with_radius(yetipit_entrance_pos.with_z(alt as i32 - 4), 4.0)
.clear();
},
AdletStructure::Tannery => {
// shattered bone pieces