Skip to content

Commit

Permalink
Remove more printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
Enet4 committed Nov 29, 2024
1 parent 1abebd0 commit 157c908
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/live/mob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ pub struct MobSpawnerBundle {
pub fn destroy_spawner_when_done(mut q: Query<(Entity, &MobSpawner)>, mut commands: Commands) {
for (entity, spawner) in q.iter_mut() {
if spawner.count == 0 {
println!("Destroying mob spawner");
commands.entity(entity).despawn();
}
}
Expand All @@ -110,7 +109,6 @@ pub fn process_spawner_trigger(
let time = time.elapsed_seconds();
for (entity, mut spawner, phase) in q.iter_mut() {
if phase.should_trigger(&player_transform.translation) {
println!("Mob spawner activated");
spawner.active = true;
spawner.last_spawn = time - spawner.spawn_interval;

Expand Down Expand Up @@ -138,7 +136,6 @@ pub fn spawn_mobs_on_time(
}
let relative_elapsed = time - spawner.last_spawn;
if relative_elapsed >= spawner.spawn_interval {
println!("Spawning mob");
// spawn a mob
// use an RNG to pseudorandomize the position
let rel_x = (random.rng.next_range(0..14_u32) as f32 - 7.) / 2.;
Expand Down
1 change: 0 additions & 1 deletion src/live/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ pub fn process_attacks(
for PlayerAttack { entity, num } in events.read() {
// query entity for target information
let Ok((mut target, health)) = target_query.get_mut(*entity) else {
eprintln!("no target found for attack");
return;
};

Expand Down

0 comments on commit 157c908

Please sign in to comment.