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
0e77efc0
Commit
0e77efc0
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Mitosis & Call of the Ooze correctly respect maxes
parent
0cfe8448
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/data/talents/gifts/gifts.lua
+3
-3
3 additions, 3 deletions
game/modules/tome/data/talents/gifts/gifts.lua
game/modules/tome/data/talents/gifts/ooze.lua
+3
-2
3 additions, 2 deletions
game/modules/tome/data/talents/gifts/ooze.lua
with
6 additions
and
5 deletions
game/modules/tome/data/talents/gifts/gifts.lua
+
3
−
3
View file @
0e77efc0
...
...
@@ -84,18 +84,18 @@ gifts_req_high5 = {
level
=
function
(
level
)
return
26
+
(
level
-
1
)
end
,
}
function
checkMaxSummon
(
self
,
silent
,
div
)
function
checkMaxSummon
(
self
,
silent
,
div
,
check_attr
)
div
=
div
or
1
local
nb
=
0
-- Count party members
if
game
.
party
:
hasMember
(
self
)
then
for
act
,
def
in
pairs
(
game
.
party
.
members
)
do
if
act
.
summoner
and
act
.
summoner
==
self
and
act
.
wild_gift_summon
then
nb
=
nb
+
1
end
if
act
.
summoner
and
act
.
summoner
==
self
and
act
.
wild_gift_summon
and
(
not
check_attr
or
act
:
attr
(
check_attr
))
then
nb
=
nb
+
1
end
end
else
for
_
,
act
in
pairs
(
game
.
level
.
entities
)
do
if
act
.
summoner
and
act
.
summoner
==
self
and
act
.
wild_gift_summon
then
nb
=
nb
+
1
end
if
act
.
summoner
and
act
.
summoner
==
self
and
act
.
wild_gift_summon
and
(
not
check_attr
or
act
:
attr
(
check_attr
))
then
nb
=
nb
+
1
end
end
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/gifts/ooze.lua
+
3
−
2
View file @
0e77efc0
...
...
@@ -162,11 +162,12 @@ newTalent{
points
=
5
,
equilibrium
=
5
,
cooldown
=
20
,
getMax
=
function
(
self
,
t
)
local
_
,
_
,
max
=
checkMaxSummon
(
self
,
true
)
return
math.min
(
max
,
math.max
(
1
,
math.floor
(
self
:
combatTalentScale
(
t
,
0
.
5
,
2
.
5
))))
end
,
getMax
=
function
(
self
,
t
)
local
_
,
_
,
max
=
checkMaxSummon
(
self
,
true
)
return
math.min
(
max
,
self
:
callTalent
(
self
.
T_MITOSIS
,
"getMax"
),
math.max
(
1
,
math.floor
(
self
:
combatTalentScale
(
t
,
0
.
5
,
2
.
5
))))
end
,
getModHP
=
function
(
self
,
t
)
return
self
:
combatTalentLimit
(
t
,
1
,
0
.
46
,
0
.
7
)
end
,
-- Limit < 1
action
=
function
(
self
,
t
)
local
ot
=
self
:
getTalentFromId
(
self
.
T_MITOSIS
)
for
i
=
1
,
t
.
getMax
(
self
,
t
)
do
local
_
,
cur_nb
,
max
=
checkMaxSummon
(
self
,
true
,
nil
,
"bloated_ooze"
)
for
i
=
cur_nb
+
1
,
t
.
getMax
(
self
,
t
)
do
ot
.
spawn
(
self
,
ot
,
ot
.
getMaxHP
(
self
,
ot
)
*
t
.
getModHP
(
self
,
t
))
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