mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
undo unnecessary pub mod
fixed comments fixed other comment
This commit is contained in:
parent
0eafd42c0f
commit
e4f2c73b85
@ -8,7 +8,7 @@ mod inventory;
|
||||
mod last;
|
||||
mod phys;
|
||||
mod player;
|
||||
pub mod stats;
|
||||
mod stats;
|
||||
mod visual;
|
||||
|
||||
// Reexports
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user