Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
fix(MasterBenchOption): add meta mods options to applicable options
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 10, 2018
1 parent 3eaaf62 commit 5df154b
Show file tree
Hide file tree
Showing 2 changed files with 315 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/generators/MasterBenchOption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default class MasterBenchOption extends Generator<Mod, Item> {
}

/**
* every item is welcome
* Can accept only certain itemclasses
*/
public applicableTo(item: Item): ApplicableFlags {
const applicable_flags = {
Expand All @@ -81,6 +81,8 @@ export default class MasterBenchOption extends Generator<Mod, Item> {
const { item_classes } = this.props;

applicable_flags.wrong_itemclass =
// no item classes means every item is welcome
item_classes.length > 0 &&
item_classes.find(
item_class => item_class === item.baseitem.item_class,
) === undefined;
Expand Down
Loading

0 comments on commit 5df154b

Please sign in to comment.