# HG changeset patch # User KarstenBock@gmx.net # Date 1315315296 -7200 # Node ID 8f9e9f47c3638e2eaf65ec2fa05627657903a847 # Parent 66a06de1bddcf6d472a3884216fb3ef4cac6363e Added dialogue value to Character entity diff -r 66a06de1bddc -r 8f9e9f47c363 entities/character.py --- a/entities/character.py Tue Sep 06 14:37:54 2011 +0200 +++ b/entities/character.py Tue Sep 06 15:21:36 2011 +0200 @@ -16,8 +16,8 @@ class Character(Entity): def __init__(self, world, view_name, real_name, desc, statistics, max_bulk, - identifier, layer=None, behaviour=None, gfx=None, - pos=Vec2d(0.0, 0.0), items=None + identifier, layer=None, behaviour=None, dialogue=None, + gfx=None, pos=Vec2d(0.0, 0.0), items=None ): self.characterstats.statistics = statistics @@ -25,6 +25,8 @@ self.description.real_name = real_name self.description.desc = desc + self.dialogue.dialogue = dialogue + self.container.children = items or [] self.container.max_bulk = max_bulk