hardcode some color-specific items 😬
This commit is contained in:
parent
d6ab0e71b3
commit
bd3b75c675
1 changed files with 11 additions and 3 deletions
|
@ -180,11 +180,19 @@ class Item < ActiveRecord::Base
|
||||||
return Color.find_by_name(color.downcase)
|
return Color.find_by_name(color.downcase)
|
||||||
end
|
end
|
||||||
|
|
||||||
# HACK: omg I hate this. why can't the Baby Raindorf Hoodie Robe just
|
# HACK: this should probably be a flag on the record instead of
|
||||||
# contain the standard pattern? >_>
|
# being hardcoded :P
|
||||||
if description.include? 'This soft robe is sure to keep your little one warm and toasty.'
|
if [71893, 76192, 76202].include?(id)
|
||||||
return Color.find_by_name('baby')
|
return Color.find_by_name('baby')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if [76198].include?(id)
|
||||||
|
return Color.find_by_name('mutant')
|
||||||
|
end
|
||||||
|
|
||||||
|
if [75372].include?(id)
|
||||||
|
return Color.find_by_name('maraquan')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
public
|
public
|
||||||
|
|
Loading…
Reference in a new issue