MUnique / OpenMU

This project aims to create an easy to use, extendable and customizable server for a MMORPG called "MU Online".
https://munique.net
MIT License
707 stars 296 forks source link

Prevent equipping two-handed items with shields #393

Closed halflumi closed 9 months ago

halflumi commented 9 months ago

Prevent equipping a two-handed item to the left hand slot when the right hand slot has a one-handed item or shield, and vice versa.

sven-n commented 9 months ago

Thanks, it looks fine. However, it doesn't seem to compile:

D:\a\1\s\src\GameLogic\PlayerActions\Items\MoveItemAction.cs(237,49): error CS0246: The type or namespace name 'ItemDefinition' could not be found (are you missing a using directive or an assembly reference?) [D:\a\1\s\src\GameLogic\MUnique.OpenMU.GameLogic.csproj]
D:\a\1\s\src\GameLogic\PlayerActions\Items\MoveItemAction.cs(244,44): error CS1503: Argument 1: cannot convert from 'MUnique.OpenMU.DataModel.Configuration.Items.ItemDefinition' to 'ItemDefinition' [D:\a\1\s\src\GameLogic\MUnique.OpenMU.GameLogic.csproj]

I think a using statement is missing at the top of the file ;)

halflumi commented 9 months ago

I should've cherry-picked instead of manually copying n' pasting. Now it's fixed.