kcunning/Katie-s-Rougish-PyGame — pull request #18 by IanWitham (2012-04-25 04:42:56+00:00)
Title: Treasure data and admin tool

Hi Katie. I've put together a version of your game using XML for the treasure configuration, and also made some improvements to admin.py.

There is also a new file, item_templates.xml where new types of treasure can be easily defined without needing to alter admin.py at all.

I also altered the Treasure class so that there are only three required attributes (item_type, name, description). All of the rest are supplied as an arbitrary keyword arguments, which will vary depending on the kind of treasure you are creating (damage for weapons, armor for armor etc). Again this should add the maximum flexibility in defining any kind of treasure you want without having to explicitly hard code new attributes to Treasure.py.