mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
expose and use blocking consts
This commit is contained in:
parent
237393993f
commit
e04fdd715e
@ -9,8 +9,8 @@ use crate::{
|
||||
use specs::{Entities, Join, Read, ReadStorage, System, WriteStorage};
|
||||
use vek::*;
|
||||
|
||||
const BLOCK_EFFICIENCY: f32 = 0.9;
|
||||
const BLOCK_ANGLE: f32 = 180.0;
|
||||
pub const BLOCK_EFFICIENCY: f32 = 0.9;
|
||||
pub const BLOCK_ANGLE: f32 = 180.0;
|
||||
|
||||
/// This system is responsible for handling accepted inputs like moving or
|
||||
/// attacking
|
||||
|
@ -1,6 +1,6 @@
|
||||
pub mod agent;
|
||||
pub mod character_behavior;
|
||||
mod combat;
|
||||
pub mod combat;
|
||||
pub mod controller;
|
||||
mod mount;
|
||||
pub mod phys;
|
||||
|
@ -5,6 +5,7 @@ use common::{
|
||||
msg::ServerMsg,
|
||||
state::BlockChange,
|
||||
sync::{Uid, WorldSyncExt},
|
||||
sys::combat::{BLOCK_ANGLE, BLOCK_EFFICIENCY},
|
||||
terrain::{Block, TerrainGrid},
|
||||
vol::{ReadVol, Vox},
|
||||
};
|
||||
@ -12,9 +13,6 @@ use log::error;
|
||||
use specs::{join::Join, Entity as EcsEntity, WorldExt};
|
||||
use vek::Vec3;
|
||||
|
||||
const BLOCK_EFFICIENCY: f32 = 0.9;
|
||||
const BLOCK_ANGLE: f32 = 180.0;
|
||||
|
||||
pub fn handle_damage(server: &Server, uid: Uid, change: HealthChange) {
|
||||
let state = &server.state;
|
||||
let ecs = state.ecs();
|
||||
|
Loading…
Reference in New Issue
Block a user