Bug + ujednolicenie.

This commit is contained in:
Bartek Stalewski 2012-08-14 16:33:58 +02:00
parent b7cd00b420
commit d73182860f
2 changed files with 14 additions and 3 deletions

View file

@ -7,8 +7,8 @@
/if ( {*} !~ NULL )\
/if (strstr({*}, "|") != -1) \
/let n=$[strchr({*}, '|')] %;\
/set cel=$[substr({*}, 0, n)] %;\
/set celu=$[substr({*}, n+1)] %;\
/test cel := substr({*}, 0, n) %;\
/test celu := substr({*}, n+1) %;\
/else \
/set cel %{*} %;\
/set celu %{*} %;\
@ -65,7 +65,15 @@
/echo -p #@{BC%kolor_info}#@{n}# Typ ataku: @{BC%kolor_info}%opis_ataku@{n} %;\
/endif
/alias x /_atak %{*}
/alias x \
/if (strstr({*}, "|") != -1) \
/let n=$[strchr({*}, '|')] %;\
/test p1 := substr({*}, 0, n) %;\
/test p2 := substr({*}, n+1) %;\
/_atak %{p1}|%{p2} %;\
/else \
/_atak %{*}|%{*} %;\
/endif
/alias x1 /_atak %{cel}|%{celu}
/alias x2 /_atak drugiego %{cel}|drugiego %{celu}
/alias x3 /_atak trzeciego %{cel}|trzeciego %{celu}