Mercurial > hg > batmud > ggrtf
changeset 1559:4912cac99455
Fix hitstats to actually work again. Durr, 100L.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 19 Apr 2013 15:29:41 +0300 |
parents | 52f8ab4fb54a |
children | 96c55e665a55 |
files | gm-hitstats.tf |
diffstat | 1 files changed, 24 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/gm-hitstats.tf Thu Apr 18 11:25:50 2013 +0300 +++ b/gm-hitstats.tf Fri Apr 19 15:29:41 2013 +0300 @@ -554,6 +554,7 @@ /eval /ghitstats_dolist %{1} %%{hst_nlines%{hst_column}} %%{lst_%{2}_hits} + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Main stats output macro ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -565,8 +566,11 @@ /set hst_count=0%;\ /set hst_total=0%;\ /set hst_crits=0%;\ +/msw ,----------------------.%;\ +/msw | @{BCgreen}GgrTF@{n} @{Cyellow}Hit Statistics@{n} |%;\ +\ +/set hst_column=0%;\ /set hst_noprint=1%;\ -/set hst_column=0%;\ /if (set_weapon1!~"none") /ghitstats_list %{set_weapon1} %{set_weapon1}%;/endif%;\ /set hst_nlines1=%{hst_line}%;\ /if (set_weapon2!~"none") /ghitstats_list %{set_weapon2} %{set_weapon2}%;/endif%;\ @@ -578,39 +582,40 @@ /set hst_nlines=%{hst_nlines2}%;\ /set hst_list=%{set_weapon2}%;\ /endif%;\ -/set hst_noprint=0%;\ -/set hst_column=0%;\ /gline_clear %{hst_nlines}%;\ -/set hst_noprint=1%;\ /set hst_column=0%;\ -/if (set_weapon3!~"none") /ghitstats_list %{set_weapon3} %{set_weapon3}%;/endif%;\ -/set hst_nlines3=%{hst_line}%;\ -/if (set_weapon4!~"none") /ghitstats_list %{set_weapon4} %{set_weapon4}%;/endif%;\ -/set hst_nlines4=%{hst_line}%;\ -/if (hst_nlines3 >= hst_nlines4)\ - /set hst_nlines=%{hst_nlines3}%;\ - /set hst_list=%{set_weapon3}%;\ -/else \ - /set hst_nlines=%{hst_nlines4}%;\ - /set hst_list=%{set_weapon4}%;\ -/endif%;\ /set hst_noprint=0%;\ -/set hst_column=0%;\ -/gline_clear %{hst_nlines}%;\ -/msw ,----------------------.%;\ -/msw | @{BCgreen}GgrTF@{n} @{Cyellow}Hit Statistics@{n} |%;\ /if (set_weapon1!~"none") /ghitstats_list %{set_weapon1} %{hst_list}%;/endif%;\ /if (set_weapon2!~"none") /set hst_str_0=%{hst_str_0}-%;/ghitstats_list %{set_weapon2} %{hst_list}%;/endif%;\ /if (hst_str_0!~"") /msw +%{hst_str_0}.%;/endif%;\ /gline_print $[hst_nlines]%;\ /if (hst_str_0!~"") /msw +%{hst_str_0}+%;/endif%;\ /gline_clear %{hst_nlines}%;\ +\ +\ +/set hst_column=0%;\ +/set hst_noprint=1%;\ +/if (set_weapon3!~"none") /ghitstats_list %{set_weapon3} %{set_weapon3}%;/endif%;\ +/set hst_nlines1=%{hst_line}%;\ +/if (set_weapon4!~"none") /ghitstats_list %{set_weapon4} %{set_weapon4}%;/endif%;\ +/set hst_nlines2=%{hst_line}%;\ +/if (hst_nlines3 >= hst_nlines4)\ + /set hst_nlines=%{hst_nlines1}%;\ + /set hst_list=%{set_weapon1}%;\ +/else \ + /set hst_nlines=%{hst_nlines2}%;\ + /set hst_list=%{set_weapon2}%;\ +/endif%;\ +/gline_clear %{hst_nlines}%;\ +/set hst_column=0%;\ +/set hst_noprint=0%;\ /if (set_weapon3!~"none") /ghitstats_list %{set_weapon3} %{hst_list}%;/endif%;\ /if (set_weapon4!~"none") /set hst_str_0=%{hst_str_0}-%;/ghitstats_list %{set_weapon4} %{hst_list}%;/endif%;\ /if (hst_str_0!~"") /msw +%{hst_str_0}.%;/endif%;\ /gline_print $[hst_nlines]%;\ /if (hst_str_0!~"") /msw +%{hst_str_0}+%;/endif%;\ /gline_clear %{hst_nlines}%;\ +\ /msw +-| @{BCred}Totals@{n} |-------------------------------------------+%;\ /let _qtmp=$[hst_total + hst_misses]%;\ /if (_qtmp != 0) \