Mercurial > rinkhals
diff gamelib/tiles.py @ 552:11c4cebfe4c5
Preparatory work for woodland biodiversity.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 28 Nov 2009 17:37:13 +0000 |
parents | 3ed6c011106d |
children | 5cdf26bde2f2 |
line wrap: on
line diff
--- a/gamelib/tiles.py Sat Nov 28 17:37:10 2009 +0000 +++ b/gamelib/tiles.py Sat Nov 28 17:37:13 2009 +0000 @@ -18,6 +18,10 @@ 4: ("guardtower", "grassland.png"), 5: ("broken fence", "broken_fence.png"), 6: ("hendominium", "grassland.png"), + + 255: ("woodland", "woodland.png"), + 254: ("woodland", "woodland2.png"), + 253: ("woodland", "woodland3.png"), } def __init__(self, tiles=None): @@ -25,6 +29,8 @@ tiles = self.DEFAULT_TILES.copy() self._tiles = tiles self._reverse_map = dict((v[0], k) for k, v in self._tiles.iteritems()) + # Wood is different: + self._reverse_map["woodland"] = 0 def __getitem__(self, n): """Get the string name of tile n."""