From 11b234915be1eaa8098e651f1870a9322f1e30cf Mon Sep 17 00:00:00 2001 From: nsensfel Date: Thu, 4 Apr 2019 18:32:58 +0200 Subject: [Broken] ... --- src/shared/struct/inventory/shr_inventory.erl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/shared/struct/inventory') 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 { -- cgit v1.2.3-70-g09d2