Skip to content

Commit

Permalink
Remove unused mod.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankopf committed Aug 7, 2023
1 parent 1062ae4 commit 06c01e7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 23 deletions.
11 changes: 0 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ bevy = "*"
rand = "*"
winit = "0.27.5"
image = "*"
retrieve = "*"
iyes_loopless = "*"

[target.wasm32-unknown-unknown]
Expand Down
2 changes: 1 addition & 1 deletion src/combat_system/melee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn do_melee_damage(
body1: &PhysicalBody,
body2: &mut PhysicalBody,
) {
body2.attributes.health -= 10;
body2.attributes.health -= 1 + body1.attributes.strength;
println!("Health: {}", body2.attributes.health);
if body2.attributes.health <= 0 {
commands.entity(attacked_entity).despawn_recursive();
Expand Down
8 changes: 4 additions & 4 deletions src/combat_system/ranged.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ use crate::prelude::*;

pub fn combat_system_ranged(
_commands: Commands,
mut query: Query<(&mut Brain, &mut PhysicalBody)>
//mut query: Query<(&mut Brain, &mut PhysicalBody)>
) {
for (mut brain, mut physical_body) in query.iter_mut() {
if brain.task != Some(Task::Fight) { continue; }
// for (mut brain, mut physical_body) in query.iter_mut() {
// if brain.task != Some(Task::Fight) { continue; }

}
// }
}
9 changes: 3 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
mod prelude;
pub use crate::prelude::*;

use retrieve::mod_use;
use std::time::Duration;

// #[mod_use(
// biome,
// button_system,
Expand Down Expand Up @@ -41,9 +38,9 @@ use button_system::*;
mod combat_system;
use combat_system::*;
mod components;
use components::*;
// use components::*;
mod constants;
use constants::*;
// use constants::*;
mod interface;
use interface::*;
mod load;
Expand All @@ -67,7 +64,7 @@ use needs::*;
mod pause;
use pause::*;
mod resources;
use resources::*;
// use resources::*;
mod seasons;
use seasons::*;
mod selection_systems;
Expand Down

0 comments on commit 06c01e7

Please sign in to comment.