From 8e5ebc98b7959a95d6a54bda9ec537329c76e106 Mon Sep 17 00:00:00 2001 From: Vincent Le Goff Date: Mon, 29 Jul 2019 13:23:40 +0200 Subject: [PATCH] [clothing contrib] Allow to create new Clothing classes --- evennia/contrib/clothing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evennia/contrib/clothing.py b/evennia/contrib/clothing.py index 608fa0aa05..657a534591 100644 --- a/evennia/contrib/clothing.py +++ b/evennia/contrib/clothing.py @@ -368,7 +368,7 @@ class CmdWear(MuxCommand): wearstyle = True if not clothing: return - if not clothing.is_typeclass("evennia.contrib.clothing.Clothing"): + if not clothing.is_typeclass("evennia.contrib.clothing.Clothing", exact=False): self.caller.msg("That's not clothes!") return @@ -460,10 +460,10 @@ class CmdCover(MuxCommand): cover_with = self.caller.search(self.arglist[1], candidates=self.caller.contents) if not to_cover or not cover_with: return - if not to_cover.is_typeclass("evennia.contrib.clothing.Clothing"): + if not to_cover.is_typeclass("evennia.contrib.clothing.Clothing", exact=False): self.caller.msg("%s isn't clothes!" % to_cover.name) return - if not cover_with.is_typeclass("evennia.contrib.clothing.Clothing"): + if not cover_with.is_typeclass("evennia.contrib.clothing.Clothing", exact=False): self.caller.msg("%s isn't clothes!" % cover_with.name) return if cover_with.db.clothing_type: