Yukiko
Joined: 02 Feb 2006 Posts: 1094 Location: Southern Central USA
|
Posted: Mon Apr 23, 2007 4:38 am Post subject: Weight member on items. |
|
|
Thought I might suggest a change in the docs for the itemdesc.cfg file info concerning weight.
In the docs it states that weight is an integer value. I have found this to be true sometimes.
Here is what I have discovered:
On single, non-stackable items the weight is indeed an integer value.
On stackable items you can specify a weight as a fraction and POL will round up to the nearest integer. For example if you set a diamond to 1/3 and you place 4 diamonds in your pack your weight will increase by 2 stones. You can add 2 more diamonds to the stack and your weight will not increase. Apparently POL stores the weight correctly internally but rounds up only on the value sent to the client. It should be noted that weight values for stackables less than a stone must be defined as a fraction and not a decimal equivalent.
1/4 is acceptable.
0.25 is not.
I assume the reason single non-stackables are only allowed integer weights is due to the rounding up situation I noted earlier. |
|