mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make different mobs drop different assetts on death (not just lootbags)
This commit is contained in:
parent
d523ed7216
commit
134c481408
@ -435,7 +435,11 @@ pub fn handle_destroy(server: &mut Server, entity: EcsEntity, cause: HealthSourc
|
||||
let _ = state
|
||||
.create_object(
|
||||
comp::Pos(pos.0 + Vec3::unit_z() * 0.25),
|
||||
object::Body::Pouch,
|
||||
match old_body{
|
||||
Some(common::comp::Body::Humanoid(_)) => object::Body::Pouch,
|
||||
Some(common::comp::Body::Golem(_)) => object::Body::Chest,
|
||||
_ => object::Body::Pumpkin,
|
||||
},
|
||||
)
|
||||
.with(item)
|
||||
.build();
|
||||
|
Loading…
Reference in New Issue
Block a user