From d444820036ca18e49c038deb799146a3f8f75fe0 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 6 Oct 2018 19:05:57 +0200 Subject: [PATCH] Fix bug in spawning with attributes --- evennia/prototypes/spawner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evennia/prototypes/spawner.py b/evennia/prototypes/spawner.py index 1ca7229bea..b22770aa94 100644 --- a/evennia/prototypes/spawner.py +++ b/evennia/prototypes/spawner.py @@ -733,8 +733,9 @@ def spawn(*prototypes, **kwargs): val = make_iter(prot.pop("attrs", [])) attributes = [] for (attrname, value, category, locks) in val: - attributes.append((attrname, init_spawn_value(val), category, locks)) + attributes.append((attrname, init_spawn_value(value), category, locks)) + print("attributes to spawn: IN: {}, OUT: {}".format(val, attributes)) simple_attributes = [] for key, value in ((key, value) for key, value in prot.items() if not (key.startswith("ndb_"))):