Commit 6230d0d4 authored by 18손재민's avatar 18손재민

청소 단어가 이제 랜덤하게 30퍼센트의 단어를 없앰

parent cccf35e2
......@@ -76,7 +76,7 @@ class GameRoom
{
this.roomId = GameServer.getRoomNumber();
this.roomIndex = -1;
this.startCount = 3;
this.startCount = 2;
this.maxPlayer = 100;
this.nextRank = 100;
......
......@@ -383,8 +383,14 @@ class ItemWord extends WordObject
WordSpace.attackGauge.add(11);
break;
case Enums.item.clean:
let tempLenth = WordSpace.wordGroup.length * 0.3;
for(let i = 0; i < tempLenth; i++) WordSpace.wordGroup[i].destroy(false);
let tempWords = [];
WordSpace.wordGroup.forEach(function(element){
tempWords.push(WordSpace.wordGroup.indexOf(element));
});
tempWords = Phaser.Utils.Array.Shuffle(tempWords);
let tempLenth = tempWords.length * 0.3;
for(let i = 0; i < tempLenth; i++)
if(WordSpace.wordGroup[tempWords[i]] != null) WordSpace.wordGroup[tempWords[i]].destroy();
break;
case Enums.item.heavy:
Input.attackOption.isHeavy = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment