Hello,
In the game I'm currently developing, I have lines of cards in the table, and for each line, cards need to be displayed in a given oder (based on when and where they were added basically).
Based on the stock component (http://en.doc.boardgamearena.com/Stock), there is a weight parameter that is used to sort items of the stock during the display, but only for ItemType, not for individual cards. Is there something similar at the Item level
What I would expect : The weight can (must?) be defined at the type level and is the default weight for each component of this type, unless the weight is overwritten by the Item. Display order is then done by sorting all the items based on their weight. If no weight is defined at the item level, it would not change the current behavior, and it would allow to choose the order of individual cards.
I can have a workaround by creating a new "type" in the stock for each "true type of card" X "position", but that sounds like a dirty hack. (That's more or less what is done in hanabi, creating a type per card_id because the position is sorted by card_id for each hand, so I'm not the first game to have this concern.
)
Does it already exists or Is it a modification that can be made? (I might help by doing a Pull Request if I know where to find the Stock source code or updating the wiki if it is already possible.)
In the game I'm currently developing, I have lines of cards in the table, and for each line, cards need to be displayed in a given oder (based on when and where they were added basically).
Based on the stock component (http://en.doc.boardgamearena.com/Stock), there is a weight parameter that is used to sort items of the stock during the display, but only for ItemType, not for individual cards. Is there something similar at the Item level
What I would expect : The weight can (must?) be defined at the type level and is the default weight for each component of this type, unless the weight is overwritten by the Item. Display order is then done by sorting all the items based on their weight. If no weight is defined at the item level, it would not change the current behavior, and it would allow to choose the order of individual cards.
I can have a workaround by creating a new "type" in the stock for each "true type of card" X "position", but that sounds like a dirty hack. (That's more or less what is done in hanabi, creating a type per card_id because the position is sorted by card_id for each hand, so I'm not the first game to have this concern.
Does it already exists or Is it a modification that can be made? (I might help by doing a Pull Request if I know where to find the Stock source code or updating the wiki if it is already possible.)