clues: make Anagram and Cipher clues check all clue text
This commit is contained in:
@@ -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."))
|
if (text.startsWith("i'd like to hear some music."))
|
||||||
{
|
{
|
||||||
return MusicClue.forText(clueScrollText.getText());
|
return MusicClue.forText(clueScrollText.getText());
|
||||||
@@ -525,6 +514,18 @@ public class ClueScrollPlugin extends Plugin
|
|||||||
return coordinatesToWorldPoint(text);
|
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);
|
final CrypticClue crypticClue = CrypticClue.forText(text);
|
||||||
|
|
||||||
if (crypticClue != null)
|
if (crypticClue != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user