1
0
Fork 0
forked from OpenNeo/impress

Add comment to Item#inferred_dyeworks_base_item

This commit is contained in:
Emi Matchu 2024-06-18 15:26:28 -07:00
parent c6fbb9b797
commit 4e2110bf25

View file

@ -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.