summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2019-04-04 18:32:58 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2019-04-04 18:32:58 +0200 |
commit | 11b234915be1eaa8098e651f1870a9322f1e30cf (patch) | |
tree | 8e04e1e64d49404fcfa09809d57680108cb70098 /src/shared | |
parent | 567ad4994492f4d53325260c63638cf12fe928e4 (diff) |
[Broken] ...
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 { |