DengSir / tdPack2

MIT License
3 stars 2 forks source link

防止背包内物品意外跑到银行 | Prevent items in the bag from being accidentally stacking to the bank #3

Closed SwimmingTiger closed 4 years ago

SwimmingTiger commented 4 years ago

当银行打开,并且背包和银行里有相同物品时,防止背包内物品意外跑到银行。 意外是指:

  1. “默认整理同时保存到银行”未启用。
  2. 仅进行“整理背包”,不是“默认整理”。
  3. 玩家可能完全没注意到背包内物品去了银行。
  4. 最典型的情况是,玩家刚刚把部分物品从银行提取到背包,然后点了整理背包,物品又回到银行。
  5. 玩家在打团时找不到自己放在背包内的物品:“我明明带了xxx,怎么不见了。”

When the bank is opened and the bag and the bank have the same items, prevent the item in the bag from accidentally stacking to the bank.

An accident is:

  1. "Save to bank when default packing" is not enabled.
  2. Only "Sort Bag", not "Default Packing".
  3. The player may not even notice that these items in the bag went to the bank.
  4. The most typical scenario is that the player just picked some items from the bank to the bag, then he sorting the bag, and these items returned to the bank.
  5. The player can't find what he put in his bag when he in RAID: "I obviously brought xxx, but it was gone."
SwimmingTiger commented 4 years ago

我在我的插件包里放了tdPack2,已经有好几个人和我说打团时找不到物品了,后来才发现物品在银行。。。

I put tdPack2 in my Addon collection. Several people have told me that he/she can't find some items when he/she join the RAID. After the RAID, he/she find that the items are in the bank. . .

SwimmingTiger commented 4 years ago

对了,该修复没有解决“默认整理”的问题,只解决了单独“整理背包”、“整理银行”的问题。代码的抽象程度太高,一时找不到修复“默认整理”的好办法。

By the way, this fix does not solve the problem of "Default Packing", but only solves the problems of "Sort Bank" and "Sort Bag" separately. The level of abstraction of the code is too high, so I couldn't find a good way to fix "Default Packing" for a while.

DengSir commented 4 years ago

我在1.4.0这个版本添加了这个选项,感谢!