1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

item data defects w.r.t. modifiers

Discussion in 'Census: General Discussion' started by Quicktiger, Feb 8, 2012.

  1. Quicktiger

    Quicktiger Guest

    Item 1267518888 has an unusual defect where it shows two different intelligence modifiers, one for +18 and one for +40.   Another item has two health modifiers, item 792204700, but both are identical.  There are several (perhaps 6) items which have duplicate statistics, either with the same or different values.  In game, this is displayed as two modifiers.

    I don't know how to handle this sort of item.  I could display both values of course, but I suspect these items are actually broken in terms of what is expected.  It certainly thew my display code for a loop when I found an array of hashes where I expected a single hash.

    Another item, 1554665099, has two "cold" modifiers, but both are of different types:

     "cold" => [

        {"type"=>"hpdamage", "displayname"=>"cold", "value"=>1},

        {"type"=>"mpdamage", "displayname"=>"cold", "value"=>1}

    ]

    My decision here was to just not display anything about the second item.  This item is unique so far, in that it is the only one with a single "key" of "cold" but two different "type" values under the array.  It also displays in-game with the green bug display, so perhaps I'll not worry much about the decision I've made :)

    But, I handle this one now too:

    <span style="white-space: pre;"> Finished in 32.79 seconds

    <span style="white-space: pre;"> 2556 examples, 0 failures



     

Share This Page