clues: make Anagram and Cipher clues check all clue text

This commit is contained in:
Hydrox6
2019-10-18 02:54:38 +01:00
parent 3f33f09757
commit d4e40b6342

View File

@@ -504,17 +504,6 @@ public class ClueScrollPlugin extends Plugin
}
}
// (This|The) anagram reveals who to speak to next:
if (text.contains("anagram reveals who to speak to next:"))
{
return AnagramClue.forText(text);
}
if (text.startsWith("the cipher reveals who to speak to next:"))
{
return CipherClue.forText(text);
}
if (text.startsWith("i'd like to hear some music."))
{
return MusicClue.forText(clueScrollText.getText());
@@ -525,6 +514,18 @@ public class ClueScrollPlugin extends Plugin
return coordinatesToWorldPoint(text);
}
final AnagramClue anagramClue = AnagramClue.forText(text);
if (anagramClue != null)
{
return anagramClue;
}
final CipherClue cipherClue = CipherClue.forText(text);
if (cipherClue != null)
{
return cipherClue;
}
final CrypticClue crypticClue = CrypticClue.forText(text);
if (crypticClue != null)