mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove emission of an audio event from stats sys
This was accidentally left in by me during some testing of server emission of SFX events to all clients. There was no effect on gameplay since we dont emit a sound for this event yet, but it should not be here. The audio event is correctly handled elsewhere by each client.
This commit is contained in:
parent
a3f893d877
commit
c6f64564a8
@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
comp::{HealthSource, Stats},
|
||||
event::{EventBus, ServerEvent, SfxEvent, SfxEventItem},
|
||||
event::{EventBus, ServerEvent},
|
||||
state::DeltaTime,
|
||||
};
|
||||
use specs::{Entities, Join, Read, System, WriteStorage};
|
||||
@ -13,14 +13,10 @@ impl<'a> System<'a> for Sys {
|
||||
Entities<'a>,
|
||||
Read<'a, DeltaTime>,
|
||||
Read<'a, EventBus<ServerEvent>>,
|
||||
Read<'a, EventBus<SfxEventItem>>,
|
||||
WriteStorage<'a, Stats>,
|
||||
);
|
||||
|
||||
fn run(
|
||||
&mut self,
|
||||
(entities, dt, server_event_bus, audio_event_bus, mut stats): Self::SystemData,
|
||||
) {
|
||||
fn run(&mut self, (entities, dt, server_event_bus, mut stats): Self::SystemData) {
|
||||
let mut server_event_emitter = server_event_bus.emitter();
|
||||
|
||||
// Increment last change timer
|
||||
@ -58,10 +54,6 @@ impl<'a> System<'a> for Sys {
|
||||
stat.level.change_by(1);
|
||||
}
|
||||
|
||||
audio_event_bus
|
||||
.emitter()
|
||||
.emit(SfxEventItem::at_player_position(SfxEvent::LevelUp));
|
||||
|
||||
stat.update_max_hp();
|
||||
stat.health
|
||||
.set_to(stat.health.maximum(), HealthSource::LevelUp)
|
||||
|
Loading…
Reference in New Issue
Block a user