Forbid buying >1 of any tool into gear

Previous duplicate check only checked player's current tools and the
buying array types for >1 of the same tool (not buying array amounts).

Also added prevention of binocular slot overflow.
This commit is contained in:
ebaydayz
2016-08-03 18:56:42 -04:00
parent de9d3feb0f
commit 5a55bcb9b0
3 changed files with 37 additions and 19 deletions

View File

@@ -16265,6 +16265,9 @@
<Key ID="STR_EPOCH_TRADE_GEAR_AND_BAG_FULL">
<English>Cannot buy: Not enough empty slots in your gear or bag to accept change!</English>
</Key>
<Key ID="STR_EPOCH_TRADE_BINOCULARS_FULL">
<English>Cannot buy: Not enough empty binocular slots in your gear!</English>
</Key>
<Key ID="STR_EPOCH_TRADE_NEED_COINS">
<English>You need %1 %2 to buy all these items.</English>
<Russian>Вам нужно %1 %2 для покупки.</Russian>