mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
added white firework
This commit is contained in:
parent
db3bc1b9bb
commit
ab12df50cc
@ -237,6 +237,7 @@ impl Body {
|
||||
Reagent::Green => Body::FireworkGreen,
|
||||
Reagent::Purple => Body::FireworkPurple,
|
||||
Reagent::Red => Body::FireworkRed,
|
||||
Reagent::White => Body::FireworkWhite,
|
||||
Reagent::Yellow => Body::FireworkYellow,
|
||||
}
|
||||
}
|
||||
|
@ -644,18 +644,7 @@ pub fn handle_inventory(server: &mut Server, entity: EcsEntity, manip: comp::Inv
|
||||
let mut new_entity = state
|
||||
.create_object(Default::default(), match kind {
|
||||
item::Throwable::Bomb => comp::object::Body::Bomb,
|
||||
<<<<<<< HEAD
|
||||
item::Throwable::Firework(reagent) => comp::object::Body::for_firework(reagent),
|
||||
=======
|
||||
item::Throwable::Firework(reagent) => match reagent {
|
||||
item::Reagent::Blue => comp::object::Body::FireworkBlue,
|
||||
item::Reagent::Green => comp::object::Body::FireworkGreen,
|
||||
item::Reagent::Purple => comp::object::Body::FireworkPurple,
|
||||
item::Reagent::Red => comp::object::Body::FireworkRed,
|
||||
item::Reagent::White => comp::object::Body::FireworkWhite,
|
||||
item::Reagent::Yellow => comp::object::Body::FireworkYellow,
|
||||
},
|
||||
>>>>>>> added a white firework
|
||||
item::Throwable::TrainingDummy => comp::object::Body::TrainingDummy,
|
||||
})
|
||||
.with(comp::Pos(pos.0 + Vec3::unit_z() * 0.25))
|
||||
|
Loading…
Reference in New Issue
Block a user