summaryrefslogtreecommitdiff
path: root/src/constants.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-08-06 20:05:35 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-08-06 20:05:35 +0200
commit298d67d4fdb36f8fb81ad6d8e817345e3d692558 (patch)
tree4a97cd018fc3a5ea7c6ecd698e8ceb62a94a30ee /src/constants.rs
parent416ad2d3a0b6bf28b343d0951d6f8723bd63aef2 (diff)
More snowball implementation. Now with freezing your opponent!
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs
index 08e39dd..d796e57 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -173,6 +173,19 @@ pub const BOMB_DAMAGES: [(Vec2d<i8>, i32); BOMB_DAMAGED_SPACES] = [
(Vec2d::new(0, 0), 20),
];
+pub const SNOWBALL_FREEZES_SPACES: usize = 9;
+pub const SNOWBALL_FREEZES: [Vec2d<i8>; SNOWBALL_FREEZES_SPACES] = [
+ Vec2d::new(-1, -1),
+ Vec2d::new(0, -1),
+ Vec2d::new(1, -1),
+ Vec2d::new(-1, 0),
+ Vec2d::new(0, 0),
+ Vec2d::new(1, 0),
+ Vec2d::new(-1, 1),
+ Vec2d::new(0, 1),
+ Vec2d::new(1, 1),
+];
+
pub const MISSED_ATTACK_SCORE: i32 = 2;
pub const ATTACK_SCORE_MULTIPLIER: i32 = 2;
pub const KILL_SCORE: i32 = 40;
@@ -190,3 +203,6 @@ pub const LAVA_DAMAGE: i32 = 3;
pub const LAVA_ROUND_START: usize = 100;
pub const LAVA_ROUND_END: usize = 350;
pub const MAX_ROUNDS: usize = 400;
+
+pub const FREEZE_DURATION: u8 = 5;
+pub const FREEZE_SCORE: i32 = 17;