Commit be184f3e authored by 18손재민's avatar 18손재민

반격 시간 수치 조정

parent 1fd8d927
......@@ -140,8 +140,8 @@ class AttackWord extends WordObject
this.wordWeight *= isStrong ? 3 : 2;
this.attacker = _playerData;
//서버 사용하게 되면 PlayerTyping을 피격자의 것으로 바꿔야 함
this.counterTime = WordSpace.gameTimer.now + 1000 * (this.wordTyping <= (5 - _wordGrade) * 2.5 ? this.wordTyping * (WordSpace.playerTyping / 60) * 1.5 :
((5 - _wordGrade) * 2.5 + (this.wordTyping - (5 - _wordGrade) * 2.5) * 2.5) * (WordSpace.playerTyping / 60) * 1.5);
this.counterTime = WordSpace.gameTimer.now + 1000 * (this.wordTyping <= (5 - _wordGrade) * 2.5 ? this.wordTyping / (WordSpace.playerTyping / 60) * 1.5 :
((5 - _wordGrade) * 2.5 + (this.wordTyping - (5 - _wordGrade) * 2.5) * 2.5) / (WordSpace.playerTyping / 60) * 1.5);
console.log('Attack text : ' + text + ', Attacker : ' + this.attacker.nickname + ', Weight : ' + this.wordWeight);
console.log('Counter time : ' + this.counterTime);
}
......
......@@ -354,7 +354,7 @@ WordSpace.findWord = function(wordText)
{
if(WordSpace.getEditDistance(wordText, element.wordText) == minDist)
{
//console.log('Attack word : ' + element.wordText + ' of ' + element.attacker.nickname + ' 오타임');
console.log('Attack word : ' + element.wordText + ' of ' + element.attacker.nickname + ' 오타임');
let attackedData =
{
roomNum: RoomData.roomNum,
......
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