Disable Holiday Words in DMT and Build
This commit is contained in:
parent
b6b455c1c0
commit
003af1b87c
@ -119,6 +119,7 @@ public class Build extends SoloGame
|
||||
|
||||
private String[] _words;
|
||||
private String[] _holidayWords;
|
||||
private boolean _useHolidayWords = false;
|
||||
|
||||
private String _word = "?";
|
||||
|
||||
@ -249,7 +250,7 @@ public class Build extends SoloGame
|
||||
player.setFlySpeed(0.1f);
|
||||
}
|
||||
|
||||
if (Math.random() >= 0.5)
|
||||
if (!_useHolidayWords || Math.random() >= 0.5)
|
||||
_word = _words[UtilMath.r(_words.length)];
|
||||
else
|
||||
_word = _holidayWords[UtilMath.r(_holidayWords.length)];
|
||||
|
@ -84,6 +84,7 @@ public class Draw extends SoloGame
|
||||
private HashSet<Tool> _tools;
|
||||
private String[] _words;
|
||||
private String[] _holidayWords;
|
||||
private boolean _useHolidayWords = false;
|
||||
private HashSet<String> _usedWords = new HashSet<String>();
|
||||
|
||||
public Draw(ArcadeManager manager)
|
||||
@ -302,7 +303,7 @@ public class Draw extends SoloGame
|
||||
|
||||
private String getRandomWord()
|
||||
{
|
||||
if (Math.random() >= 0.30)
|
||||
if (!_useHolidayWords || Math.random() >= 0.30)
|
||||
{
|
||||
return _words[UtilMath.r(_words.length)];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user