Closed iNko97 closed 6 years ago
I'm assuming you did this already but just realized I didn't ask, this introduces no new regression? All positive states work as expected? (e.g. locked but permitted chest while holding x,y,z can be opened OK)?
I will test this right away, I would guess everything works fine as at least some of my players would have complained already. Moreover, we are just introducing an additional check when player interacts with inventory (using offhand):
Enemy chest:
Unobfuscated, click with food: a. Nothing in offhand: Blocked b. Block in offhand: Blocked c. Food in offhand: Blocked
Unobfuscated, click with non consumable: a. Nothing in offhand: Blocked b. Block in offhand: Blocked c. Food in offhand: Blocked
Unobfuscated, click with empty hand: a. Nothing in offhand: Blocked b. Block in offhand: Blocked c. Food in offhand: Blocked
Obfuscated, click with food: a. Nothing in offhand: Blocked b. Block in offhand: Blocked c. Food in offhand: Blocked
Obfuscated, click with non consumable: a. Nothing in offhand: Blocked b. Block in offhand: Blocked c. Food in offhand: Blocked
Obfuscated, click with empty hand: a. Nothing in offhand: Blocked b. Block in offhand: Blocked c. Food in offhand: Blocked
Neutral chest:
Unobfuscated, click with food: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Unobfuscated, click with non consumable: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Unobfuscated, click with empty hand: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Obfuscated, click with food: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Obfuscated, click with non consumable: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Obfuscated, click with empty hand: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Allied chest:
Unobfuscated, click with food: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Unobfuscated, click with non consumable: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Unobfuscated, click with empty hand: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Obfuscated, click with food: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Obfuscated, click with non consumable: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Obfuscated, click with empty hand: a. Nothing in offhand: Allowed b. Block in offhand: Allowed c. Food in offhand: Allowed
Additional tests since some events fire naturally double events: Shift-opening chest: Enemy chest: Blocked Allied chest: Client eats the food Neutral chest: Client eats the cookie
Excellent! I'll merge this shortly, adding in v. increment and such.
Got busy over the weekend, on my docket for today.
Fix offhand reinforced inventories bypass