fix clothing type limits being ignored
This commit is contained in:
parent
78221f8ac3
commit
89a45a57bb
2 changed files with 17 additions and 2 deletions
|
|
@ -487,12 +487,12 @@ class CmdWear(MuxCommand):
|
|||
return
|
||||
|
||||
# Apply individual clothing type limits.
|
||||
if clothing_type := clothing.db.type:
|
||||
if clothing_type := clothing.db.clothing_type:
|
||||
if clothing_type in CLOTHING_TYPE_LIMIT:
|
||||
type_count = single_type_count(already_worn, clothing_type)
|
||||
if type_count >= CLOTHING_TYPE_LIMIT[clothing_type]:
|
||||
self.caller.msg(
|
||||
"You can't wear any more clothes of the type '{clothing_type}'."
|
||||
f"You can't wear any more clothes of the type '{clothing_type}'."
|
||||
)
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue