1
0
Fork 0
forked from OpenNeo/impress
impress/app/models
Matchu 03c76fe882 Update missing body ID prediction to handle, say, the Maraquan Mynci.
It turns out that some pets for seemingly nonstandard colors have the
standard body type anyway, and vice-versa. This implies that we should
stop relying on a color's standardness, but, for the time being, we've
just revised the prediction model:

Old model:
    * If I see a body_id, I find the corresponding color_ids, and it's wearable
      by all pet types with those color_ids.

New model:
    * If I see a body_id,
        * If it also belongs to a basic pet type, it's a standard body ID.
            * It therefore fits all pet types of standard color (if there's
              more than one body ID modeled already). (Not really,
              because of weird exceptions like Orange Chia. Should that be
              standard or not?)
        * If it doesn't also belong to a basic pet type, it's a nonstandard
          body ID.
            * It therefore only belongs to one color, and therefore the item
              fits all pet types of the same color.
2014-01-20 15:29:01 -06:00
..
item prepare partials for closet_hangers#index, too 2013-12-27 21:48:28 -05:00
asset_image_conversion_request.rb timeout on background jobs 2012-11-04 12:01:03 -06:00
closet_group.rb import items to a specific list 2013-04-09 15:50:33 -05:00
closet_hanger.rb prepare partials for closet_hangers#index, too 2013-12-27 21:48:28 -05:00
closet_hanger_observer.rb oh poo, didn't commit these properly with the closet hanger caching :( 2013-12-27 21:48:38 -05:00
closet_list.rb Cache trade info on items#show, finally! I think it's the performance culprit. 2013-12-27 14:49:46 -05:00
closet_list_observer.rb oh poo, didn't commit these properly with the closet hanger caching :( 2013-12-27 21:48:38 -05:00
closet_page.rb Remove redundant queries when importing closet pages 2013-06-26 00:10:52 -07:00
closet_visibility.rb Cache trade info on items#show, finally! I think it's the performance culprit. 2013-12-27 14:49:46 -05:00
color.rb better handle new colors and species 2013-02-15 23:57:06 -06:00
contribution.rb phew, fixed some issues with contribution saving in rails 3.2 2013-03-05 20:51:24 -06:00
contribution_observer.rb i18n for items#show (including javascripts/items/show.js) 2013-01-24 18:23:19 -06:00
fragment_expiration.rb only send cache deletions for usable locales 2013-12-08 23:44:25 -06:00
fragment_localization.rb i18n for outfits#new (and layouts#application), including caching 2013-01-24 18:23:18 -06:00
item.rb Update missing body ID prediction to handle, say, the Maraquan Mynci. 2014-01-20 15:29:01 -06:00
item_observer.rb Cache trade info on items#show, finally! I think it's the performance culprit. 2013-12-27 14:49:46 -05:00
item_outfit_relationship.rb lovely interface for saving outfits. still no reading them yet 2010-11-10 16:59:54 -05:00
neopets_connection.rb store all neopets usernames for logged-in users, but breaks closet_hangers#index 2014-01-18 21:55:01 -06:00
neopets_user.rb choose list when importing from pets 2013-08-17 12:07:04 -04:00
outfit.rb move zones to database 2013-01-24 18:26:00 -06:00
outfit_image_update.rb timeout on background jobs 2012-11-04 12:01:03 -06:00
outfit_image_uploader.rb use openneo-uploads bucket 2012-07-31 11:42:27 -04:00
parent_swf_asset_relationship.rb give SWFs real, unique ID numbers 2012-01-12 17:17:59 -06:00
pet.rb basic neopia api integration 2014-01-10 16:25:02 -05:00
pet_attribute.rb capitalize each word of a species/color name (for Swamp Gas) 2011-07-12 18:22:16 -04:00
pet_state.rb basic neopia api integration 2014-01-10 16:25:02 -05:00
pet_type.rb cache pet images on items#show, in case that's what's being a super-slow jerkface 2013-12-05 15:22:43 -06:00
pet_type_observer.rb cache pet images on items#show, in case that's what's being a super-slow jerkface 2013-12-05 15:22:43 -06:00
pretty_param.rb parameterize user params like items, plus a cleaner parameterization scheme 2011-07-26 18:49:52 -04:00
roulette.rb species check was in the wrong place. fixed 2011-01-27 17:50:08 -05:00
safety_deposit_page.rb i18n for neopets_pages#new 2013-01-24 18:23:19 -06:00
species.rb better handle new colors and species 2013-02-15 23:57:06 -06:00
static_resource.rb attempt to fix new species_support_ids format. sigh. 2013-01-23 00:25:09 -06:00
swf_asset.rb dev util method to manually change SWF asset body ID 2013-06-26 20:08:19 -07:00
user.rb closet hangers index uses neopets connections dropdown 2014-01-18 22:50:14 -06:00
user_sweeper.rb Cache trade info on items#show, finally! I think it's the performance culprit. 2013-12-27 14:49:46 -05:00
zone.rb only show item zones on outfits#edit occupies filter helper 2013-02-05 11:52:52 -06:00