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
477bd36c
Commit
477bd36c
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
92c98953
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/class/Actor.lua
+17
-1
17 additions, 1 deletion
game/modules/tome/class/Actor.lua
with
17 additions
and
1 deletion
game/modules/tome/class/Actor.lua
+
17
−
1
View file @
477bd36c
...
...
@@ -3262,9 +3262,25 @@ end
function
_M
:
checkPool
(
tid
,
pid
)
if
tid
==
pid
then
return
end
if
not
self
:
knowTalent
(
pid
)
then
self
:
learnTalent
(
pid
,
true
)
end
if
not
self
:
knowTalent
(
pid
)
then
self
:
learnTalent
(
pid
,
true
)
else
if
not
self
.
resource_pool_refs
[
pid
]
or
not
next
(
self
.
resource_pool_refs
[
pid
])
then
self
.
resource_pool_refs
[
pid
]
=
self
.
resource_pool_refs
[
pid
]
or
{}
self
.
resource_pool_refs
[
pid
][
pid
]
=
1
-- Make it never unlearnable
end
end
self
.
resource_pool_refs
[
pid
]
=
self
.
resource_pool_refs
[
pid
]
or
{}
self
.
resource_pool_refs
[
pid
][
tid
]
=
(
self
.
resource_pool_refs
[
pid
][
tid
]
or
0
)
+
1
game
.
log
(
"#CRIMSON#DG MADE THIS BUT CANT TEST, MAKE SURE PREXISTING POOLS ARE NOT REMOVED !!!"
)
game
.
log
(
"#CRIMSON#DG MADE THIS BUT CANT TEST, MAKE SURE PREXISTING POOLS ARE NOT REMOVED !!!"
)
game
.
log
(
"#CRIMSON#DG MADE THIS BUT CANT TEST, MAKE SURE PREXISTING POOLS ARE NOT REMOVED !!!"
)
game
.
log
(
"#CRIMSON#DG MADE THIS BUT CANT TEST, MAKE SURE PREXISTING POOLS ARE NOT REMOVED !!!"
)
game
.
log
(
"#CRIMSON#DG MADE THIS BUT CANT TEST, MAKE SURE PREXISTING POOLS ARE NOT REMOVED !!!"
)
game
.
log
(
"#CRIMSON#DG MADE THIS BUT CANT TEST, MAKE SURE PREXISTING POOLS ARE NOT REMOVED !!!"
)
game
.
log
(
"#CRIMSON#DG MADE THIS BUT CANT TEST, MAKE SURE PREXISTING POOLS ARE NOT REMOVED !!!"
)
game
.
log
(
"#CRIMSON#DG MADE THIS BUT CANT TEST, MAKE SURE PREXISTING POOLS ARE NOT REMOVED !!!"
)
game
.
log
(
"#CRIMSON#DG MADE THIS BUT CANT TEST, MAKE SURE PREXISTING POOLS ARE NOT REMOVED !!!"
)
end
--- Actor learns a resource pool
...
...
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