Adjust kill NPC objective to progress to next stage, fixes #1647

This commit is contained in:
PikaMug 2021-03-16 23:47:08 -04:00
parent f7f8ebdab0
commit 857b580278
2 changed files with 3 additions and 3 deletions

View File

@ -1228,7 +1228,7 @@ public class Quester implements Comparable<Quester> {
if (data.citizenNumKilled.size() > data.citizensKilled.indexOf(n2)
&& stage.citizenNumToKill.size() > stage.citizensToKill.indexOf(n)) {
final ChatColor color = data.citizenNumKilled.get(data.citizensKilled.indexOf(n2))
< stage.citizenNumToKill.get(stage.citizensToKill.indexOf(n)) == false
< stage.citizenNumToKill.get(stage.citizensToKill.indexOf(n))
? ChatColor.GREEN : ChatColor.GRAY;
String message = color + Lang.get(getPlayer(), "kill");
if (message.contains("<mob>")) {

View File

@ -1297,7 +1297,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
if (data.citizenNumKilled.size() > data.citizensKilled.indexOf(n2)
&& stage.citizenNumToKill.size() > stage.citizensToKill.indexOf(n)) {
final ChatColor color = data.citizenNumKilled.get(data.citizensKilled.indexOf(n2))
< stage.citizenNumToKill.get(stage.citizensToKill.indexOf(n)) == false
< stage.citizenNumToKill.get(stage.citizensToKill.indexOf(n))
? ChatColor.GREEN : ChatColor.GRAY;
String message = color + "- " + Lang.get(quester.getPlayer(), "kill");
if (message.contains("<mob>")) {
@ -1378,7 +1378,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
for (final String s : stage.passwordDisplays) {
if (data.passwordsSaid.containsKey(s)) {
final Boolean b = data.passwordsSaid.get(s);
final ChatColor color = b != null && !b == false ? ChatColor.GREEN : ChatColor.GRAY;
final ChatColor color = b != null && b == false ? ChatColor.GREEN : ChatColor.GRAY;
final String message = color + "- " + s;
quester.sendMessage(message);
}