diff --git a/CHANGELOG.md b/CHANGELOG.md index 35ec7fd29b..20735e8a3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Tweaked critical chance of legendary weapons - Agents using fireball projectiles aim at the feet instead of the eyes - Explosions can now have a nonzero minimum falloff +- EXP on kill is now shared based on damage contribution ### Removed diff --git a/common/frontend/src/lib.rs b/common/frontend/src/lib.rs index 1f5b389f48..7ebfa4585d 100644 --- a/common/frontend/src/lib.rs +++ b/common/frontend/src/lib.rs @@ -53,6 +53,11 @@ where .add_directive("veloren_common::trade=info".parse().unwrap()) .add_directive("veloren_world::sim=info".parse().unwrap()) .add_directive("veloren_world::civ=info".parse().unwrap()) + .add_directive( + "veloren_server::events::entity_manipulation=info" + .parse() + .unwrap(), + ) .add_directive("hyper=info".parse().unwrap()) .add_directive("prometheus_hyper=info".parse().unwrap()) .add_directive("mio::pool=info".parse().unwrap()) diff --git a/common/net/src/msg/ecs_packet.rs b/common/net/src/msg/ecs_packet.rs index cac265fce0..09dcf509c2 100644 --- a/common/net/src/msg/ecs_packet.rs +++ b/common/net/src/msg/ecs_packet.rs @@ -1,6 +1,7 @@ use crate::sync; -use common::comp; +use common::{comp, resources::Time}; use serde::{Deserialize, Serialize}; +use specs::WorldExt; use std::marker::PhantomData; use sum_type::sum_type; @@ -92,7 +93,12 @@ impl sync::CompPacket for EcsCompPacket { EcsCompPacket::Auras(comp) => sync::handle_insert(comp, entity, world), EcsCompPacket::Energy(comp) => sync::handle_insert(comp, entity, world), EcsCompPacket::Combo(comp) => sync::handle_insert(comp, entity, world), - EcsCompPacket::Health(comp) => sync::handle_insert(comp, entity, world), + EcsCompPacket::Health(mut comp) => { + // Time isn't synced between client and server so replace the Time from the + // server with the Client's local Time to enable accurate comparison. + comp.last_change.time = *world.read_resource::