Skip to content

Commit 36e5a4d

Browse files
authored
Merge pull request #66 from bfraszczyk/main
Ocena broni poprawka.
2 parents e8a7886 + 3bc6a85 commit 36e5a4d

File tree

3 files changed

+30
-13
lines changed

3 files changed

+30
-13
lines changed

skrypty.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
scripts = scripts or { ver = "2.1.16" }
1+
scripts = scripts or { ver = "2.1.17" }
22
scripts["event_handlers"] = scripts["event_handlers"] or {}
33
scripts["utils"] = {}
44
scripts.character_name = ""

triggers/ekwipunek.lua

+27-10
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function ocena_broni_func()
1818

1919
local skutecznoscMap
2020

21-
if matches[3] == "on" then
21+
if matches[2] == "on" then
2222
skutecznoscMap = {
2323
["kompletnie nieskuteczny"] = 1,
2424
["strasznie nieskuteczny"] = 2,
@@ -56,7 +56,7 @@ function ocena_broni_func()
5656

5757
local wywazenieMap
5858

59-
if matches[3] == "on" then
59+
if matches[2] == "on" then
6060
wywazenieMap = {
6161
["wyjatkowo zle wywazony"] = 1,
6262
["bardzo zle wywazony"] = 2,
@@ -91,7 +91,22 @@ function ocena_broni_func()
9191
["genialnie wywazona"] = 14
9292
}
9393
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+
}
95110
local parowanieMap = {
96111
["wyjatkowo zle"] = 1,
97112
["bardzo zle"] = 2,
@@ -109,20 +124,22 @@ function ocena_broni_func()
109124
["genialnie"] = 14
110125
}
111126

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]"
116131
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]]
118134

119135
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))
122137
cecho("<light_slate_blue>\n".. string.sub("Wywazenie: <grey>" .. wywazenie .. " ", 0, 50))
123138
cecho("<light_slate_blue>".. string.sub("Skutecznosc: <grey>" .. skutecznosc .. " ", 0, 50))
124139
cecho("<light_slate_blue>\n" .. string.sub("Parowanie: <grey>" .. parowanie .. " ", 0, 50))
125140
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))
126143

127144
end
128145

warlock_scripts.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2125,7 +2125,7 @@
21252125
<colorTriggerBgColor>#000000</colorTriggerBgColor>
21262126
<regexCodeList />
21272127
<regexCodePropertyList />
2128-
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
2128+
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="yes" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
21292129
<name>ocena_broni</name>
21302130
<script>ocena_broni_func()</script>
21312131
<triggerType>0</triggerType>
@@ -2139,7 +2139,7 @@
21392139
<colorTriggerFgColor>#000000</colorTriggerFgColor>
21402140
<colorTriggerBgColor>#000000</colorTriggerBgColor>
21412141
<regexCodeList>
2142-
<string>Jak na (.*) jest (on|ona) (.*) i (.*), dodatkowo (.*) nadaje sie do parowania ciosow i wydaje ci sie ze mozna (nim|nia) (.*) wyprowadzac ataki.</string>
2142+
<string>^Jest (on|ona) (.*) i (.*), dodatkowo (.*) nadaje sie do parowania ciosow, a jej konstrukcja sprawia, ze (.*) nadaje sie do zadawania trafien krytycznych i wydaje ci sie ze mozna (nim|nia) (.*) wyprowadzac ataki.</string>
21432143
</regexCodeList>
21442144
<regexCodePropertyList>
21452145
<integer>1</integer>

0 commit comments

Comments
 (0)