I've added a group equip implementation. Items are only shown, retrieved or given if all members of the group have an item or can be provided.
- Trying to equip items to a group of characters at least one of which doesn't want
or cannot equip it causes ctd.
- Transfer button causes ctd. It should either be disabled or preferably lead to transfer screen with all of the chosen chars and mc.
- Some GUI stuff is still misaligned.
And most importantly:
-
ALL item operations must go through their respective functions defined in item functions file. You should not pass items between inventories directly or equip them directly. There are cases where this doesn't matter but normal transfer/equipment is never one of those cases.
Reason for this is that in PyTFall a free character may refuse to receive, equip or give away an item. There are also counters in place that attempt to track how many items were transferred between characters (for character to which that matters) so they would give back an item that MC gave them but not one of their own items.
There may also be rules that prevent character transferring or equipping specific items.
All of those functions where such things are relevant take a "silent" argument, when set to True, characters do not try to explain or complain why they don't want to do some specific thing which is useful when dealing with them in bulk.