Make some stuff work.

This commit is contained in:
Ottermandias 2023-06-02 23:21:07 +02:00
parent 4eb46a9fff
commit e79ee55f3b
8 changed files with 69 additions and 12 deletions

View file

@ -54,7 +54,7 @@ public struct ModelData
public ModelData(CharacterWeapon mainHand)
=> MainHand = mainHand;
public CharacterArmor Armor(EquipSlot slot)
public readonly CharacterArmor Armor(EquipSlot slot)
=> slot switch
{
EquipSlot.MainHand => MainHand.ToArmor(),
@ -72,7 +72,7 @@ public struct ModelData
_ => CharacterArmor.Empty,
};
public CharacterWeapon Piece(EquipSlot slot)
public readonly CharacterWeapon Piece(EquipSlot slot)
=> slot switch
{
EquipSlot.MainHand => MainHand,