undo unnecessary pub mod

fixed comments

fixed other comment
This commit is contained in:
telastrus 2019-08-06 22:26:24 -04:00 committed by Forest
parent 0eafd42c0f
commit e4f2c73b85
4 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,7 @@ mod inventory;
mod last;
mod phys;
mod player;
pub mod stats;
mod stats;
mod visual;
// Reexports

View File

@ -6,7 +6,7 @@ use specs_idvs::IDVStorage;
pub enum HealthSource {
Attack { by: Uid }, // TODO: Implement weapon
Suicide,
World, //ZA WARUDO!
World,
Revive,
Command,
LevelUp,

View File

@ -210,10 +210,9 @@ impl<'a> System<'a> for Sys {
// When the resolution direction is pointing upwards, we must be on the ground
if resolve_dir.z > 0.0 && vel.0.z <= 0.0 {
//check for fall damage
// Check for fall damage
let falldmg = (vel.0.z / 1.5 + 6.0) as i32;
if falldmg < 0 {
//println!("fall damage: {}", falldmg);
stat.health.change_by(falldmg, HealthSource::World);
}
on_ground = true;

View File

@ -511,7 +511,7 @@ impl Hud {
.font_id(self.fonts.opensans)
.font_size(14)
.set(self.ids.coordinates, ui_widgets);
//Player's velocity
// Player's velocity
let velocity_text = match debug_info.velocity {
Some(velocity) => format!("Velocity: {:.1}", velocity.0),
None => "Player has no Vel component".to_owned(),