Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
tome
Tales of MajEyal
Commits
c4e3aa1b
Commit
c4e3aa1b
authored
6 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Worldly Knowledge is not for NPCs
parent
d1a8058d
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/modules/tome/class/Actor.lua
+2
-4
2 additions, 4 deletions
game/modules/tome/class/Actor.lua
game/modules/tome/data/talents/uber/cun.lua
+2
-0
2 additions, 0 deletions
game/modules/tome/data/talents/uber/cun.lua
with
4 additions
and
4 deletions
game/modules/tome/class/Actor.lua
+
2
−
4
View file @
c4e3aa1b
...
...
@@ -4939,7 +4939,6 @@ end
-- @param ab the talent (not the id, the table)
-- @return true to continue, false to stop
function
_M
:
preUseTalent
(
ab
,
silent
,
fake
)
if
ab
.
_ai_parsed
==
nil
then
-- add some AI info to the talent if needed
print
(
"[Actor:preUseTalent] PARSING TALENT for AI info"
,
ab
.
id
,
self
.
name
)
mod
.
class
.
interface
.
ActorAI
.
aiParseTalent
(
ab
,
self
)
...
...
@@ -4950,7 +4949,8 @@ function _M:preUseTalent(ab, silent, fake)
return
false
end
if
not
self
:
attr
(
"no_talent_fail"
)
then
if
self
:
attr
(
"no_talent_fail"
)
then
return
true
end
if
not
ab
.
never_fail
and
self
:
attr
(
"feared"
)
and
(
ab
.
mode
~=
"sustained"
or
not
self
:
isTalentActive
(
ab
.
id
))
then
if
not
silent
then
game
.
logSeen
(
self
,
"%s is too afraid to use %s."
,
self
.
name
:
capitalize
(),
ab
.
name
)
end
return
false
...
...
@@ -5169,8 +5169,6 @@ function _M:preUseTalent(ab, silent, fake)
if
ab
.
is_heal
and
(
self
:
attr
(
"no_healing"
)
or
((
self
.
healing_factor
or
1
)
<=
0
))
then
return
false
end
if
ab
.
is_teleport
and
self
:
attr
(
"encased_in_ice"
)
then
return
false
end
end
return
true
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/uber/cun.lua
+
2
−
0
View file @
c4e3aa1b
...
...
@@ -273,7 +273,9 @@ uberTalent{
name
=
"Worldly Knowledge"
,
mode
=
"passive"
,
cant_steal
=
true
,
no_npc_use
=
true
,
on_learn
=
function
(
self
,
t
,
kind
)
if
not
game
.
party
:
hasMember
(
self
)
then
return
end
local
Chat
=
require
"engine.Chat"
local
chat
=
Chat
.
new
(
"worldly-knowledge"
,
{
name
=
"Worldly Knowledge"
},
self
)
chat
:
invoke
()
...
...
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