Conversation
Item weight is calculated when an item is taken (to the mouse cursor) and then shown in the tooltip. Item weight data is persisted across sessions in Salem/itemWeight.ser.
|
Note, this is probably some of the ugliest code I've ever written. It does the following: |
|
Well, you can't use resname as a key. Buckets with liquids can weight different, gear with diffirent slots will have different weight, bags can weight different, piles of something can weight different etc. |
|
LOMS: yes, however I don't think there is any correct way of handling those without the server explicitly sending the weights. I'd rather have mostly correct weights than no weights at all :) I've been testing this for some hours of playing, it seems to work fine so far (except for the problems with items that can weight different weights, but as I said, I don't think we can solve this client-side). |
|
also, clay pots for example do not change weight if they contain less or more fluid.. |
Item weight is calculated when an item is taken (to the mouse cursor)
and then shown in the tooltip.
Item weight data is persisted across sessions in Salem/itemWeight.ser.