Mercurial > mamba
changeset 372:1655f8c0d96e
The grammar nazi commit
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 17 Sep 2011 00:44:05 +0200 |
parents | 64971910a321 |
children | 7376ebff1699 |
files | mamba/sprites.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mamba/sprites.py Sat Sep 17 00:39:08 2011 +0200 +++ b/mamba/sprites.py Sat Sep 17 00:44:05 2011 +0200 @@ -143,7 +143,10 @@ def interact(self, world, segment): if self.get_solid(world.snake, segment): - world.snake.crash('You hit a %s' % self.name) + article = 'a' + if self.name[0] in 'aeiou': + article = 'an' + world.snake.crash('You hit %s %s' % (article, self.name)) class SingleImageTileSprite(TileSprite):