Skip to content

Commit

Permalink
Slight cleanup and optimisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortifier42 committed Apr 19, 2016
1 parent 3b6ec09 commit f7ea8bd
Showing 1 changed file with 0 additions and 14 deletions.
Expand Up @@ -164,8 +164,6 @@ public static InteractScriptContainer getInteractScript(dNPC npc, dPlayer player
else if (interactableScripts.isEmpty()) {
if (dB.shouldDebug(assignmentScript)) {
dB.log(ChatColor.YELLOW + "+> " + ChatColor.WHITE + "No scripts meet requirements!");
}
if (dB.shouldDebug(assignmentScript)) {
dB.log(DebugElement.Footer, "");
}
return null;
Expand Down Expand Up @@ -196,14 +194,8 @@ else if (interactableScripts.isEmpty()) {
if (interactScript.containsTriggerInStep(getCurrentStep(player, interactScript.getName()), trigger)) {
if (dB.shouldDebug(interactScript)) {
dB.log("...found trigger!");
}
if (dB.shouldDebug(interactScript)) {
dB.echoApproval("Highest scoring script is " + interactScript.getName() + ".");
}
if (dB.shouldDebug(interactScript)) {
dB.log("Current step for this script is: " + getCurrentStep(player, interactScript.getName()));
}
if (dB.shouldDebug(interactScript)) {
dB.log(DebugElement.Footer, "");
}
return interactScript;
Expand All @@ -220,14 +212,8 @@ else if (interactableScripts.isEmpty()) {
else {
if (dB.shouldDebug(interactScript)) {
dB.log("...script is good!");
}
if (dB.shouldDebug(interactScript)) {
dB.echoApproval("Highest scoring script is " + interactScript.getName() + ".");
}
if (dB.shouldDebug(interactScript)) {
dB.log("Current step for this script is: " + getCurrentStep(player, interactScript.getName()));
}
if (dB.shouldDebug(interactScript)) {
dB.log(DebugElement.Footer, "");
}
return interactScript;
Expand Down

0 comments on commit f7ea8bd

Please sign in to comment.