Skip to content

Commit

Permalink
Merge branch 'master' of git.niax.co.uk:comp3001
Browse files Browse the repository at this point in the history
  • Loading branch information
niax committed Jan 11, 2012
2 parents 04fbd80 + e02a179 commit b4e0e77
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions webapp/conquest/models.py
Expand Up @@ -305,6 +305,10 @@ def attack_action(self, request):
old_owner_data = self.basegameplayer_set.filter('play_index', old_owner).get()
old_owner_data.eliminated = True
old_owner_data.put()
if self.basegameplayer_set.filter('eliminate =', True).count(2) <= 1:
action.new_state = 'finished'
self.state = 'finished'


action.origin = origin
action.destination = destination
Expand Down
2 changes: 1 addition & 1 deletion webapp/static/play.css
Expand Up @@ -36,6 +36,6 @@ ul#player-list {
box-shadow: 3px 3px 4px #000;
}


.debug {display:none}
.avatar {padding-top:6px; padding-left:5px;}
.nickname {}
2 changes: 1 addition & 1 deletion webapp/templates/play.html
Expand Up @@ -20,7 +20,7 @@
{% endblock %}

{% block sidebar %}
<div class="block">
<div class="block debug">
<h3>Debug</h3>
<dl>
<dt>Game State</dt>
Expand Down

0 comments on commit b4e0e77

Please sign in to comment.