Mercurial > hg > batmud > ggrtf
changeset 1603:b3c55b5994a6
Improve reagent pouch mangler output by using different colours for
different types of spells. Based on patch by Gileon, modified and fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 21 Sep 2015 14:54:43 +0300 |
parents | 33eab61839a7 |
children | 3147b227bd1a |
files | gm-rpouch.tf |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gm-rpouch.tf Tue May 05 21:14:16 2015 +0300 +++ b/gm-rpouch.tf Mon Sep 21 14:54:43 2015 +0300 @@ -76,7 +76,14 @@ /substitute -ag%;\ /else \ /if (opt_reglite=~"on")\ - /substitute -p @{BCyellow}$[pad(_nval,6)]@{n} | @{BCgreen}$[pad({6},-25)]@{n} (@{BCred}$[pad({2},6)]@{n},@{Cgreen}$[pad({3},5)]@{n},@{Cyellow}$[pad({4},5)]@{n}) @{BCgray}($[prsubstr({8},columns()-55)])@{n}%;\ + /if (regmatch("^(Electrocution|Lava Blast|Golden Arrow|Acid Blast|Cold Ray|Summon Carnal Spores|Blast Vacuum)$", {6}))\ + /let _nmcol=@{BCgreen}%;\ + /elseif (regmatch("^(Lava Storm|Magic Eruption|Lightning Storm|Acid Storm|Hailstorm|Killing Cloud|Vacuum Globe)$", {6}))\ + /let _nmcol=@{Cred}%;\ + /else \ + /let _nmcol=@{BCblue}%;\ + /endif%;\ + /substitute -p @{BCyellow}$[pad(_nval,6)]@{n} | %{_nmcol}$[pad({6},-25)]@{n} (@{BCred}$[pad({2},6)]@{n},@{Cgreen}$[pad({3},5)]@{n},@{Cyellow}$[pad({4},5)]@{n}) @{BCgray}($[prsubstr({8},columns()-55)])@{n}%;\ /endif%;\ /endif