Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Otowa Kotori
Tales of MajEyal
Commits
562859d4
Commit
562859d4
authored
10 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
count esp correctly in prices
parent
a5217b7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/engines/default/engine/utils.lua
+8
-0
8 additions, 0 deletions
game/engines/default/engine/utils.lua
game/modules/tome/class/Object.lua
+1
-1
1 addition, 1 deletion
game/modules/tome/class/Object.lua
with
9 additions
and
1 deletion
game/engines/default/engine/utils.lua
+
8
−
0
View file @
562859d4
...
...
@@ -50,6 +50,14 @@ function table.concatNice(t, sep, endsep)
return
table.concat
(
t
,
sep
,
1
,
#
t
-
1
)
..
endsep
..
t
[
#
t
]
end
function
table
.
count
(
t
)
local
i
=
0
for
k
,
v
in
pairs
(
t
)
do
i
=
i
+
1
end
return
i
end
function
table
.
min
(
t
)
local
m
=
nil
for
_
,
v
in
pairs
(
t
)
do
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/class/Object.lua
+
1
−
1
View file @
562859d4
...
...
@@ -1924,9 +1924,9 @@ function _M:getPriceFlags()
if
w
.
lite
then
price
=
price
+
w
.
lite
*
10
end
if
w
.
size_category
then
price
=
price
+
w
.
size_category
*
25
end
if
w
.
esp_all
then
price
=
price
+
w
.
esp_all
*
25
end
if
w
.
esp
then
price
=
price
+
table
.
count
(
w
.
esp
)
*
7
end
if
w
.
esp_range
then
price
=
price
+
w
.
esp_range
*
15
end
if
w
.
can_breath
then
for
t
,
v
in
pairs
(
w
.
can_breath
)
do
price
=
price
+
v
*
30
end
end
if
w
.
esp_all
then
price
=
price
+
w
.
esp_all
*
25
end
if
w
.
damage_shield_penetrate
then
price
=
price
+
w
.
damage_shield_penetrate
*
1
end
if
w
.
spellsurge_on_crit
then
price
=
price
+
w
.
spellsurge_on_crit
*
5
end
if
w
.
quick_weapon_swap
then
price
=
price
+
w
.
quick_weapon_swap
*
50
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment