diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2019-08-13 22:00:10 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2019-08-13 22:00:10 +0200 |
commit | dabedf442d65fcaec36d0a30ed3ed2327b39a44d (patch) | |
tree | a9bbcb4e97dcb98050fd872997ace284f2f764e0 /src/constants.rs | |
parent | 33b9c9e05a3693d944342753288fda824f0da13c (diff) |
Trimming down on redundant code and tweaking perf
Diffstat (limited to 'src/constants.rs')
-rw-r--r-- | src/constants.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs index 1c2b8a1..e2db8fb 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -156,6 +156,12 @@ impl MapRow { } } +pub const HEALTH_PACK_VALUE: i32 = 10; + +pub const SHOOT_RANGE: i8 = 4; +pub const SHOOT_RANGE_DIAGONAL: i8 = 3; +pub const SHOOT_DAMAGE: i32 = 8; + pub const BOMB_RANGE: i8 = 5; pub const BOMB_DAMAGED_SPACES: usize = 13; pub const BOMB_DAMAGES: [(Vec2d<i8>, i32); BOMB_DAMAGED_SPACES] = [ |