Skip to content

Commit

Permalink
Fix lowercased death item drop silliness
Browse files Browse the repository at this point in the history
And leave notes for other sillines
  • Loading branch information
mcmonkey4eva committed Oct 9, 2015
1 parent 8fee760 commit 6461308
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -106,6 +106,7 @@ public boolean applyDetermination(ScriptContainer container, String determinatio
// Deprecated
if (lower.startsWith("drops ")) {
lower = lower.substring(6);
determination = determination.substring(6);
}

//Handle no_drops and no_drops_or_xp and just no_xp
Expand All @@ -128,12 +129,12 @@ else if (aH.matchesInteger(determination)) {
else if (aH.Argument.valueOf(lower).matchesArgumentList(dItem.class)) {
drops.clear();
changed_drops = true;
dList drops_list = dList.valueOf(lower);
dList drops_list = dList.valueOf(determination);
drops_list.filter(dItem.class);
for (String drop : drops_list) {
dItem item = dItem.valueOf(drop);
if (item != null)
drops.add(item.identify());
drops.add(item.identify()); // TODO: Why not just store the dItem in an arraylist?
}
}

Expand Down

0 comments on commit 6461308

Please sign in to comment.