summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/struct/inventory/shr_inventory.erl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/shared/struct/inventory/shr_inventory.erl b/src/shared/struct/inventory/shr_inventory.erl index d6e6dbe..0670546 100644 --- a/src/shared/struct/inventory/shr_inventory.erl +++ b/src/shared/struct/inventory/shr_inventory.erl @@ -99,7 +99,12 @@ default () -> glyphs = EmptySet }. --spec allows_equipment (shr_equipment:type(), type()) -> boolean(). +-spec allows_equipment + ( + (shr_equipment:type()|shr_equipment:unresolved()), + type() + ) + -> boolean(). allows_equipment (Eq, Inv) -> Weapons = Inv#inventory.weapons, Glyphs = Inv#inventory.glyphs, @@ -133,7 +138,12 @@ allows_equipment (Eq, Inv) -> ) ). --spec add_equipment (shr_equipment:type(), type()) -> type(). +-spec add_equipment + ( + (shr_equipment:type()|shr_equipment:unresolved()), + type() + ) + -> type(). add_equipment (Eq, Inv) -> Inv#inventory { |