diff --git a/arkadia/substitute.tf b/arkadia/substitute.tf index 50f37eb..b50bfb7 100644 --- a/arkadia/substitute.tf +++ b/arkadia/substitute.tf @@ -79,13 +79,26 @@ /def -mregexp -Fp1 -t'ledwo zyw.' _sub_ledwo = /return substitute(strcat({PL}, decode_attr(decode_attr(toupper({P0}), {zc_bold}), {zc_crit_background}), {PR})) -;;/def -mregexp -Fp2 -t'Jestes (w swietnej kondycji|w dobrym stanie|(?:lekko |ciezko |)rann.|w zlej kondycji|ledwo zyw.).' _sub_kondycja_me = /return substitute(strcat({PL}, decode_attr("### TY ### ", {zc_bold}), {P1}, {PR})) - /def -mregexp -Fp2 -t'([Jj]est(?:es|)) (w swietnej kondycji|w dobrym stanie|(?:lekko |ciezko |)rann.|w zlej kondycji|ledwo zyw.).$' _sub_kondycja_no_fight = \ - /if ({P1} =~"Jestes")\ - /return substitute(strcat("[-] ", {PL}, decode_attr("### TY ### ", {zc_bold}), {P2}, {PR}))%;\ + /if ({P2} =~ "w swietnej kondycji")\ + /let _showkondycja=$[strcat(decode_attr("#######", {zc_main}))]%;\ + /elseif ({P2} =~ "w dobrym stanie")\ + /let _showkondycja=$[strcat(decode_attr("###### ", {zc_main}))]%;\ + /elseif ({P2} =/ "lekko rann*")\ + /let _showkondycja=$[strcat(decode_attr("##### ", {zc_main}))]%;\ + /elseif ({P2} =/ "rann*")\ + /let _showkondycja=$[strcat(decode_attr("#### ", {zc_alarm}))]%;\ + /elseif ({P2} =~ "w zlej kondycji")\ + /let _showkondycja=$[strcat(decode_attr("### ", {zc_alarm}))]%;\ + /elseif ({P2} =/ "ciezko rann*")\ + /let _showkondycja=$[strcat(decode_attr("## ", {zc_crit}))]%;\ + /elseif ({P2} =/ "ledwo zyw*")\ + /let _showkondycja=$[strcat(decode_attr("-LEDWO-", {zc_crit}))]%;\ + /endif %;\ + /if ({P1} =~ "Jestes")\ + /return substitute(strcat("[-] [", {_showkondycja}, "] ", {PL}, decode_attr("### TY ### ", {zc_bold}), {P2}, ".", {PR}))%;\ /else \ - /return substitute(strcat("[-] ", {PL}, {P1}, " ", {P2}, {PR}))%;\ + /return substitute(strcat("[-] [", {_showkondycja}, "] ", {PL}, {P1}, " ", {P2}, ".", {PR}))%;\ /endif /def -mregexp -Fp2 -t'([Jj]est(?:es|)) (w swietnej kondycji|w dobrym stanie|(?:lekko |ciezko |)rann.|w zlej kondycji|ledwo zyw.). Atakuj(?:e|a|esz) (go|ja|je|jego|to|cie)' _sub_kondycja_show = \ @@ -99,15 +112,30 @@ /let _enemy_count 0 %;\ /endif %;\ /unset _enemy %;\ + /if ({P2} =~ "w swietnej kondycji")\ + /let _showkondycja=$[strcat(decode_attr("#######", {zc_main}))]%;\ + /elseif ({P2} =~ "w dobrym stanie")\ + /let _showkondycja=$[strcat(decode_attr("###### ", {zc_main}))]%;\ + /elseif ({P2} =/ "lekko rann*")\ + /let _showkondycja=$[strcat(decode_attr("##### ", {zc_main}))]%;\ + /elseif ({P2} =/ "rann*")\ + /let _showkondycja=$[strcat(decode_attr("#### ", {zc_alarm}))]%;\ + /elseif ({P2} =~ "w zlej kondycji")\ + /let _showkondycja=$[strcat(decode_attr("### ", {zc_alarm}))]%;\ + /elseif ({P2} =/ "ciezko rann*")\ + /let _showkondycja=$[strcat(decode_attr("## ", {zc_crit}))]%;\ + /elseif ({P2} =/ "ledwo zyw*")\ + /let _showkondycja=$[strcat(decode_attr("-LEDWO-", {zc_crit}))]%;\ + /endif %;\ /if ({PR} =~ ".") \ /let _ktobije=$[decode_attr(" ATAKUJESZ", {zc_crit})]%;\ /else \ /let _ktobije=%{PR}%;\ /endif%;\ /if ({P1} =~"Jestes")\ - /return substitute(strcat("[", decode_attr({_enemy_count}, {zc_crit}), "] ", {PL}, decode_attr("### TY ### ", {zc_bold}), {P2}, ". ", decode_attr("<<<<<", {zc_crit}), {_ktobije}))%;\ + /return substitute(strcat("[", decode_attr({_enemy_count}, {zc_crit}), "] [", {_showkondycja}, "] ", {PL}, decode_attr("### TY ### ", {zc_bold}), {P2}, ". ", decode_attr("<<<<<", {zc_crit}), {_ktobije}))%;\ /else \ - /return substitute(strcat("[", decode_attr({_enemy_count}, {zc_bold}), "] ", {PL}, {P1}, " ", {P2}, ". ", "<<<<<", {_ktobije}))%;\ + /return substitute(strcat("[", decode_attr({_enemy_count}, {zc_bold}), "] [", {_showkondycja}, "] ", {PL}, {P1}, " ", {P2}, ". ", "<<<<<", {_ktobije}))%;\ /endif ;; odporności