fix: `get.population` returnType error.

This commit is contained in:
Rintim 2023-10-13 01:23:16 +08:00
parent 6e0364795b
commit f49fc05864
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
1 changed files with 1 additions and 1 deletions

View File

@ -58877,7 +58877,7 @@
noSelected:()=>ui.selected.buttons.length+ui.selected.cards.length+ui.selected.targets.length==0,
population:identity=>identity==undefined?
game.players.length+game.dead.length:
game.players.filter(current=>current.identity==identity),
game.players.filter(current=>current.identity==identity).length,
totalPopulation:identity=>{
if(identity==undefined) return game.players.length+game.dead.length;
var i,players=game.players.concat(game.dead);