Skip to content

Commit

Permalink
Remove lots of debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Apr 1, 2013
1 parent b95693b commit 26e65ab
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -46,20 +46,20 @@ public String doEvent(String eventName, dNPC npc, Player player, Map<String, Str

for (WorldScriptContainer script : world_scripts.values()) {

dB.report("Event",
aH.debugObj("Type", "On " + eventName)
+ script.getAsScriptArg().debug()
+ (npc != null ? aH.debugObj("NPC", npc.toString()) : "")
+ (player != null ? aH.debugObj("Player", player.getName()) : "")
+ (context != null ? aH.debugObj("Context", context.toString()) : ""));

if (script == null) continue;
if (!script.contains("EVENTS.ON " + eventName.toUpperCase())) continue;

// Fetch script from Event
List<ScriptEntry> entries = script.getEntries(player, npc, "events.on " + eventName);
if (entries.isEmpty()) continue;

dB.report("Event",
aH.debugObj("Type", "On " + eventName)
+ script.getAsScriptArg().debug()
+ (npc != null ? aH.debugObj("NPC", npc.toString()) : "")
+ (player != null ? aH.debugObj("Player", player.getName()) : "")
+ (context != null ? aH.debugObj("Context", context.toString()) : ""));

dB.echoDebug(dB.DebugElement.Header, "Building event 'On " + eventName.toUpperCase() + "' for " + script.getName());

if (context != null) {
Expand Down

0 comments on commit 26e65ab

Please sign in to comment.