mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-18 05:21:20 +01:00
Adjust kill NPC objective to progress to next stage, fixes #1647
This commit is contained in:
parent
f7f8ebdab0
commit
857b580278
@ -1228,7 +1228,7 @@ public class Quester implements Comparable<Quester> {
|
|||||||
if (data.citizenNumKilled.size() > data.citizensKilled.indexOf(n2)
|
if (data.citizenNumKilled.size() > data.citizensKilled.indexOf(n2)
|
||||||
&& stage.citizenNumToKill.size() > stage.citizensToKill.indexOf(n)) {
|
&& stage.citizenNumToKill.size() > stage.citizensToKill.indexOf(n)) {
|
||||||
final ChatColor color = data.citizenNumKilled.get(data.citizensKilled.indexOf(n2))
|
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;
|
? ChatColor.GREEN : ChatColor.GRAY;
|
||||||
String message = color + Lang.get(getPlayer(), "kill");
|
String message = color + Lang.get(getPlayer(), "kill");
|
||||||
if (message.contains("<mob>")) {
|
if (message.contains("<mob>")) {
|
||||||
|
@ -1297,7 +1297,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
|||||||
if (data.citizenNumKilled.size() > data.citizensKilled.indexOf(n2)
|
if (data.citizenNumKilled.size() > data.citizensKilled.indexOf(n2)
|
||||||
&& stage.citizenNumToKill.size() > stage.citizensToKill.indexOf(n)) {
|
&& stage.citizenNumToKill.size() > stage.citizensToKill.indexOf(n)) {
|
||||||
final ChatColor color = data.citizenNumKilled.get(data.citizensKilled.indexOf(n2))
|
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;
|
? ChatColor.GREEN : ChatColor.GRAY;
|
||||||
String message = color + "- " + Lang.get(quester.getPlayer(), "kill");
|
String message = color + "- " + Lang.get(quester.getPlayer(), "kill");
|
||||||
if (message.contains("<mob>")) {
|
if (message.contains("<mob>")) {
|
||||||
@ -1378,7 +1378,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
|||||||
for (final String s : stage.passwordDisplays) {
|
for (final String s : stage.passwordDisplays) {
|
||||||
if (data.passwordsSaid.containsKey(s)) {
|
if (data.passwordsSaid.containsKey(s)) {
|
||||||
final Boolean b = data.passwordsSaid.get(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;
|
final String message = color + "- " + s;
|
||||||
quester.sendMessage(message);
|
quester.sendMessage(message);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user