[CF-Devel] item sorting
Mark Wedel
mwedel at scruz.net
Thu Apr 5 22:49:43 CDT 2001
Preston Crow wrote:
>
>
Occasionally there is a particular item that is not sorted into the right
>
place in my inventory. I'm using the GTK client, though I suspect this is
>
a server issue. For example, if I pick up a bunch of treatises, they're
>
all together, except for the treatise of dancing sword, which is up near my
>
containers. Likewise, a few of the artifact weapons will show up down near
>
the end of my inventory instead of with the other weapons.
>
Actually, its a client issue. The client deals with all sorting of objects.
Look at the item_types file and adjust as needed.
In retrospect, it may not have been the best idea to leave all the sorting
responsibility to the client. A better approach probably would have been for
the item type (as in define.h) to get sent along with the item, and then the
client could have a translation table on how to order those (ie, I want type 65
at the top, top 4 near the bottom, group type 20, 25, 28 together, etc).
More information about the crossfire
mailing list