forked from OpenNeo/impress
Add comment to Item#inferred_dyeworks_base_item
This commit is contained in:
parent
c6fbb9b797
commit
4e2110bf25
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ class Item
|
|||
nc_trade_value.value_text.match?(DYEWORKS_LIMITED_PATTERN)
|
||||
end
|
||||
|
||||
# Infer what base item this Dyeworks item probably relates to, based on
|
||||
# their names. We only use this when a new item is modeled to initialize
|
||||
# the `dyeworks_base_item` relationship in the database; after that, we
|
||||
# just use whatever the database says. (This allows manual overrides!)
|
||||
DYEWORKS_NAME_PATTERN = %r{
|
||||
^(
|
||||
# Most Dyeworks items have a colon in the name.
|
||||
|
|
Loading…
Reference in a new issue