]> de.git.xonotic.org Git - xonotic/xonstat.git/commit
Integrate the damage efficiency graph in player_info.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 16 Jun 2012 13:44:21 +0000 (09:44 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 16 Jun 2012 13:44:21 +0000 (09:44 -0400)
commit7ceb773ef64c3bff51fc1c325e3f203c439c43fc
treee482b3b764d5de25469160eecdcffd07d8876c8c
parentfbe02f385740039b3f15608488949d3d2c0207d1
Integrate the damage efficiency graph in player_info.

It isn't complete yet, but it is much better than before, where
new players would have a blank graph. Now it checks that the
given player has *any* accuracy or damage based weapon usage
and shows the graph accordingly. If the player does not have
five games of either, the appropriate graph doesn't show.

The incomplete part is that I'm not setting the default
weapon to show (nex and rocket launcher). If a player plays,
say, 10 games avoiding the rocket launcher then it will still
show a blank graph b/c the rocket launcher is the default dmg
weapon shown. This will be fixed, I just need to find a good way.
xonstat/templates/player_info.mako