Disable Holiday Words in DMT and Build

This commit is contained in:
Shaun Bennett 2016-01-08 01:38:49 -05:00
parent b6b455c1c0
commit 003af1b87c
2 changed files with 4 additions and 2 deletions

View File

@ -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)];

View File

@ -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)];
}