I've got a headache but I did it. Enemies steal any item that isn't your currently equipped weapon. It's probably the hackiest code I've ever written but that's because inventories contain 3 kinds of weapons and equipped items aren't in your inventory so I have to iterate over 4 different arrays, then compare the 4 resulting highest values, then use the right function to take that item from the player and give it to the enemy (who then probably erases it like a dumbass but hey not my problem)

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!