forked from OpenNeo/impress
Emi Matchu
bd6b6450d9
This is less likely than the newly-released color case for PB items, but I figure let's be resilient anyway, especially since it's so easy to—and also I figure this is less likely to be triggered by an *actual* new species, and more likely to be triggered by a surprise in an item's naming conventions. But yeah, if `Item#pb_species` returns `nil` upstream, it'll be passed to `Color#example_pet_type`, which will crash trying to read its ID. So in this change, we update `Color#example_pet_type` to accept a `nil` value, and fall back to the first Species (Acara) in that case. This means that, if you e.g. take the Mutant Aisha Collar and delete the word "Aisha" from the name, then load it in the Item Getting Guide, you'll see a thumbnail of a Mutant Acara. Good enough! |
||
---|---|---|
.. | ||
fundraising | ||
item | ||
alt_style.rb | ||
application_record.rb | ||
auth_record.rb | ||
auth_user.rb | ||
closet_hanger.rb | ||
closet_list.rb | ||
closet_visibility.rb | ||
color.rb | ||
contribution.rb | ||
item.rb | ||
item_outfit_relationship.rb | ||
nc_mall_record.rb | ||
neopets_connection.rb | ||
neopets_page.rb | ||
outfit.rb | ||
parent_swf_asset_relationship.rb | ||
pet.rb | ||
pet_state.rb | ||
pet_type.rb | ||
species.rb | ||
swf_asset.rb | ||
user.rb | ||
zone.rb |