@@ -18,7 +18,7 @@ function ocena_broni_func()
18
18
19
19
local skutecznoscMap
20
20
21
- if matches [3 ] == " on" then
21
+ if matches [2 ] == " on" then
22
22
skutecznoscMap = {
23
23
[" kompletnie nieskuteczny" ] = 1 ,
24
24
[" strasznie nieskuteczny" ] = 2 ,
@@ -56,7 +56,7 @@ function ocena_broni_func()
56
56
57
57
local wywazenieMap
58
58
59
- if matches [3 ] == " on" then
59
+ if matches [2 ] == " on" then
60
60
wywazenieMap = {
61
61
[" wyjatkowo zle wywazony" ] = 1 ,
62
62
[" bardzo zle wywazony" ] = 2 ,
@@ -91,7 +91,22 @@ function ocena_broni_func()
91
91
[" genialnie wywazona" ] = 14
92
92
}
93
93
end
94
-
94
+ local krytyMap = {
95
+ [" wyjatkowo zle" ] = 1 ,
96
+ [" bardzo zle" ] = 2 ,
97
+ [" zle" ] = 3 ,
98
+ [" bardzo kiepsko" ] = 4 ,
99
+ [" kiepsko" ] = 5 ,
100
+ [" przyzwoicie" ] = 6 ,
101
+ [" srednio" ] = 7 ,
102
+ [" niezle" ] = 8 ,
103
+ [" dosc dobrze" ] = 9 ,
104
+ [" dobrze" ] = 10 ,
105
+ [" bardzo dobrze" ] = 11 ,
106
+ [" doskonale" ] = 12 ,
107
+ [" perfekcyjnie" ] = 13 ,
108
+ [" genialnie" ] = 14
109
+ }
95
110
local parowanieMap = {
96
111
[" wyjatkowo zle" ] = 1 ,
97
112
[" bardzo zle" ] = 2 ,
@@ -109,20 +124,22 @@ function ocena_broni_func()
109
124
[" genialnie" ] = 14
110
125
}
111
126
112
- local typ = matches [2 ]
113
- local wywazenie = matches [4 ].. " [" .. wywazenieMap [matches [4 ]].. " /14]"
114
- local skutecznosc = matches [5 ].. " [" .. skutecznoscMap [matches [5 ]].. " /14]"
115
- local parowanie = matches [6 ].. " [" .. parowanieMap [matches [6 ]].. " /14]"
127
+ -- local typ = matches[2]
128
+ local wywazenie = matches [3 ].. " [" .. wywazenieMap [matches [3 ]].. " /14]"
129
+ local skutecznosc = matches [4 ].. " [" .. skutecznoscMap [matches [4 ]].. " /14]"
130
+ local parowanie = matches [5 ].. " [" .. parowanieMap [matches [5 ]].. " /14]"
116
131
local szybkosc = matches [8 ].. " [" .. szybkoscMap [matches [8 ]].. " /7]"
117
- local suma = wywazenieMap [matches [4 ]] + skutecznoscMap [matches [5 ]]
132
+ local kryty = matches [6 ] .. " [" .. krytyMap [matches [6 ]] .. " /14]"
133
+ local suma = wywazenieMap [matches [3 ]] + skutecznoscMap [matches [4 ]]
118
134
119
135
deleteLine ()
120
- cecho (" <light_slate_blue>\n\n " .. string.sub (" Typ broni: <grey>" .. typ .. " " , 0 , 50 ))
121
- cecho (" <light_slate_blue>" .. string.sub (" Suma: <grey>" .. suma .. " " , 0 , 50 ))
136
+ -- cecho("<light_slate_blue>\n\n".. string.sub("Typ broni: <grey>" .. typ .. " ", 0, 50))
122
137
cecho (" <light_slate_blue>\n " .. string.sub (" Wywazenie: <grey>" .. wywazenie .. " " , 0 , 50 ))
123
138
cecho (" <light_slate_blue>" .. string.sub (" Skutecznosc: <grey>" .. skutecznosc .. " " , 0 , 50 ))
124
139
cecho (" <light_slate_blue>\n " .. string.sub (" Parowanie: <grey>" .. parowanie .. " " , 0 , 50 ))
125
140
cecho (" <light_slate_blue>" .. string.sub (" Szybkosc: <grey>" .. szybkosc .. " " , 0 , 50 ))
141
+ cecho (" <light_slate_blue>\n " .. string.sub (" Obrazenia krytyczne: <grey>" .. kryty .. " " , 0 , 50 ))
142
+ cecho (" <light_slate_blue>\n " .. string.sub (" Suma: <grey>" .. suma .. " " , 0 , 50 ))
126
143
127
144
end
128
145
0 commit comments