summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-07-08 22:44:14 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-07-08 22:44:14 +0200
commitb9983669d07ff590d002fb8b4637bc08fa880907 (patch)
tree8f0e8b68513b8d79451044b8d7f289f57ee3ca0a /src
parent770f14609849552d965b4e9101bfb5c0870c08d0 (diff)
Test case that included a collision
Diffstat (limited to 'src')
-rw-r--r--src/game.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.rs b/src/game.rs
index c31f64f..2158b8b 100644
--- a/src/game.rs
+++ b/src/game.rs
@@ -247,7 +247,8 @@ impl GameBoard {
if let Some(worm) = player.active_worm_mut() {
worm.health -= damage;
}
- player.moves_score += ATTACK_SCORE_MULTIPLIER * damage + MOVE_SCORE;
+ // You might expect damage score too here, but nope
+ player.moves_score += MOVE_SCORE;
}
}
_ => {