- if (game.bonus == 0)
- score += 10;
- if (game.bonus == SPLATTER_MESSAGE)
- score += 25;
- if (game.bonus == DEFEAT_MESSAGE)
- score += 30;
- if (game.bonus == VICTORY_MESSAGE)
- score += 45;
+ if (game.bonus == none) {
+ score += 10;
+ }
+ if (game.bonus == splatter) {
+ score += 25;
+ }
+ if (game.bonus == defeat) {
+ score += 30;
+ }
+ if (game.bonus == victory) {
+ score += 45;
+ }