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 57951fd
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
These files were always supposed to match interfaces in `schema`. Every
json file has a corresponding type in `schema` e.g. ´data/items.json` is of
type `schema.Items`. ([#72](https://github.com/eps1lon/poe-mods/pull/72))
### Fixed
- Fixed master meta mods not being applicable to items.
([#77](https://github.com/eps1lon/poe-mods/pull/77))

## [1.11.0](https://github.com/eps1lon/poe-mods/compare/v1.10.0...v1.11.0) (2018-06-31)
### Added
Expand Down
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 57951fd

Please sign in to comment.