1
0
Fork 0
forked from OpenNeo/impress
impress/app
Emi Matchu 3dab235335 Handle newly-released PB items in Item Getting Guide
Oh right, it's possible for `Item#pb?` to return true, but
`Item#pb_color` to return `nil`, if the item has the paintbrush item
description but we can't find a color whose name matches the item name.
This would be expected if a new color were added to Neopets, and PB
items for it were modeled by the community, but we hadn't manually
added the color to the database yet.

Previously, the Item Getting Guide would crash in this scenario. Now,
it correctly handles the possibility of a `nil` value for `pb_color`,
and shows some placeholder info.

To test this, I temporarily edited some item names to not contain the
color name anymore (e.g. "P-rate Elephante Shirt and Vest"), then
loaded the guide and made changes until it no longer crashed.
2024-06-05 19:23:57 -07:00
..
assets Don't let action buttons wrap onto multiple lines in Item Getting Guide 2024-05-28 17:16:41 -07:00
controllers Handle newly-released PB items in Item Getting Guide 2024-06-05 19:23:57 -07:00
helpers Add OWLS values to non-NC-Mall NC items in Item Getting Guide 2024-05-27 15:53:08 -07:00
javascript Redesign "Get these items!" button to use a cart icon instead 2024-05-31 17:38:25 -07:00
mailers/fundraising Move most fundraising files into a Fundraising module 2024-02-18 20:12:14 -08:00
models Improve performance for occupies:X searches 2024-06-03 11:45:51 -07:00
services Load *all* NC Mall pages in nc_mall:sync 2024-05-10 17:39:40 -07:00
views Handle newly-released PB items in Item Getting Guide 2024-06-05 19:23:57 -07:00