WIP
This commit is contained in:
parent
2ae50baeff
commit
2597a9ae30
@ -153,8 +153,11 @@
|
|||||||
$.setIniDbBoolean('chatguessr', 'isOpen',false) //NEW ROUND /Score
|
$.setIniDbBoolean('chatguessr', 'isOpen',false) //NEW ROUND /Score
|
||||||
var gp = newseed.player.guesses[seed.round - 1].lat+","+newseed.player.guesses[seed.round - 1].lng
|
var gp = newseed.player.guesses[seed.round - 1].lat+","+newseed.player.guesses[seed.round - 1].lng
|
||||||
addGuess($.channelName,gp);
|
addGuess($.channelName,gp);
|
||||||
}else{
|
}else if(newseed.state=="finished" && newseed.player.guesses.length > seed.player.guesses.length){
|
||||||
if(newseed.state=="finished"){
|
$.setIniDbBoolean('chatguessr', 'isOpen',false)
|
||||||
|
var gp = newseed.player.guesses[newseed.round - 1].lat+","+newseed.player.guesses[newseed.round - 1].lng
|
||||||
|
addGuess($.channelName,gp);
|
||||||
|
}else if(newseed.state=="finished"){
|
||||||
$.setIniDbBoolean('chatguessr', 'isOpen',false) //FINISHED
|
$.setIniDbBoolean('chatguessr', 'isOpen',false) //FINISHED
|
||||||
//Compute total scores + give reward
|
//Compute total scores + give reward
|
||||||
seed = newseed;
|
seed = newseed;
|
||||||
@ -164,7 +167,6 @@
|
|||||||
guesses.round = seed.round - 1;
|
guesses.round = seed.round - 1;
|
||||||
sendGuessData();
|
sendGuessData();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
seed = newseed;
|
seed = newseed;
|
||||||
}else if(action.equalsIgnoreCase('gg')){
|
}else if(action.equalsIgnoreCase('gg')){
|
||||||
sendGuessData();
|
sendGuessData();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user