修复生成字母bug
This commit is contained in:
parent
673a277ea9
commit
6cd918d669
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue