修复生成字母bug

This commit is contained in:
石皮幼鸟 2024-06-14 18:52:39 +08:00
parent 673a277ea9
commit 6cd918d669
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ public class RoomServiceImpl implements RoomService {
if (val == 0) if (val == 0)
// 回血爱心 // 回血爱心
letter = new Letter("10", random.nextFloat(1), random.nextFloat(2, 6)); letter = new Letter("10", random.nextFloat(1), random.nextFloat(2, 6));
if (val >= 1 && val <= 81) else if (val <= 81)
// 从当前单词中随机选择一个字母 // 从当前单词中随机选择一个字母
letter = new Letter(words.keySet().toArray()[random.nextInt(words.size())].toString(), random.nextFloat(1), random.nextFloat(2, 6)); letter = new Letter(words.keySet().toArray()[random.nextInt(words.size())].toString(), random.nextFloat(1), random.nextFloat(2, 6));
else else