mirror of
https://github.com/Febbweiss/sis.git
synced 2026-03-04 22:25:35 +00:00
Bugfix: right score/wave_score/bonus
This commit is contained in:
@@ -58,12 +58,13 @@ Game = {
|
|||||||
levelComplete : function() {
|
levelComplete : function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
Game.running = false;
|
Game.running = false;
|
||||||
var bonus = Math.round(((Game.shots.total - Game.shots.lost) / Game.shots.total) * Game.wave.score);
|
var bonus = Math.round(((Game.shots.total - Game.shots.lost) / Game.shots.total) * Game.wave.score),
|
||||||
|
wave_score = Game.wave.score;
|
||||||
Game.addToScore(bonus);
|
Game.addToScore(bonus);
|
||||||
|
|
||||||
displayModal( {
|
displayModal( {
|
||||||
bonus: bonus,
|
bonus: bonus,
|
||||||
wave_score: Game.wave.score,
|
wave_score: wave_score,
|
||||||
score: Game.score,
|
score: Game.score,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user