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
K'van
Tales of MajEyal
Commits
24df8ef5
Commit
24df8ef5
authored
11 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
plop
git-svn-id:
http://svn.net-core.org/repos/t-engine4@6798
51575b47-30f0-44d4-a5cc-537603b46e54
parent
815bfb98
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/class/interface/Archery.lua
+2
-2
2 additions, 2 deletions
game/modules/tome/class/interface/Archery.lua
with
2 additions
and
2 deletions
game/modules/tome/class/interface/Archery.lua
+
2
−
2
View file @
24df8ef5
...
...
@@ -36,7 +36,7 @@ function _M:archeryAcquireTargets(tg, params)
return
nil
end
local
infinite
=
ammo
.
infinite
or
self
:
attr
(
"infinite_ammo"
)
local
infinite
=
ammo
.
infinite
or
self
:
attr
(
"infinite_ammo"
)
or
params
.
infinite
if
not
ammo
or
(
ammo
.
combat
.
shots_left
<=
0
and
not
infinite
)
then
game
.
logPlayer
(
self
,
"You do not have enough ammo left!"
)
...
...
@@ -262,7 +262,7 @@ local function archery_projectile(tx, ty, tg, self, tmp)
DamageType
:
get
(
damtype
).
projector
(
self
,
target
.
x
,
target
.
y
,
damtype
,
math.max
(
0
,
dam
),
tmp
)
game
.
level
.
map
:
particleEmitter
(
target
.
x
,
target
.
y
,
1
,
"archery"
)
if
not
tg
.
no_archery_particle
then
game
.
level
.
map
:
particleEmitter
(
target
.
x
,
target
.
y
,
1
,
"archery"
)
end
hitted
=
true
if
talent
.
archery_onhit
then
talent
.
archery_onhit
(
self
,
talent
,
target
,
target
.
x
,
target
.
y
)
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