Mercurial > parpg-core
comparison src/parpg/entities/__init__.py @ 69:ad75fa042b99
Changes to make PARPG "runable" with grease. (With the correct modified assets)
author | KarstenBock@gmx.net |
---|---|
date | Tue, 06 Sep 2011 15:22:51 +0200 |
parents | d153be6d36cc |
children | d89e88a90c9e |
comparison
equal
deleted
inserted
replaced
68:d7286cba42df | 69:ad75fa042b99 |
---|---|
45 # add the extra info | 45 # add the extra info |
46 for key, val in extra.items(): | 46 for key, val in extra.items(): |
47 info[key] = val | 47 info[key] = val |
48 | 48 |
49 # this is for testing purposes | 49 # this is for testing purposes |
50 return getAllEntities()[ent_type](world, **info) | 50 try: |
51 return getAllEntities()[ent_type](world, **info) | |
52 except KeyError: | |
53 return None |