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
bef7967c
Commit
bef7967c
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Mindlash psi cost now increases the more it is spammed
parent
34ddb1d6
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/psionic/focus.lua
+6
-1
6 additions, 1 deletion
game/modules/tome/data/talents/psionic/focus.lua
game/modules/tome/data/timed_effects/mental.lua
+17
-0
17 additions, 0 deletions
game/modules/tome/data/timed_effects/mental.lua
with
23 additions
and
1 deletion
game/modules/tome/data/talents/psionic/focus.lua
+
6
−
1
View file @
bef7967c
...
...
@@ -33,7 +33,11 @@ newTalent{
local
gem_level
=
getGemLevel
(
self
)
return
math.max
(
c
-
gem_level
,
0
)
end
,
psi
=
10
,
psi
=
function
(
self
,
t
)
local
eff
=
self
:
hasEffect
(
self
.
EFF_MINDLASH
)
local
power
=
eff
and
eff
.
power
or
1
return
10
*
power
end
,
tactical
=
{
ATTACK
=
function
(
self
,
t
,
target
)
local
val
=
{
PHYSICAL
=
2
}
local
gem_level
=
getGemLevel
(
self
)
...
...
@@ -94,6 +98,7 @@ newTalent{
end
end
self
:
setEffect
(
self
.
EFF_MINDLASH
,
4
,
{})
return
true
end
,
info
=
function
(
self
,
t
)
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/timed_effects/mental.lua
+
17
−
0
View file @
bef7967c
...
...
@@ -2931,3 +2931,20 @@ newEffect{
self
:
effectTemporaryValue
(
eff
,
"random_talent_cooldown_on_use_turns"
,
eff
.
turns
)
end
,
}
newEffect
{
name
=
"MINDLASH"
,
image
=
"talents/mindlash.png"
,
desc
=
"Mindlash"
,
long_desc
=
function
(
self
,
eff
)
return
(
"Repeated mindlash usage is very taxing increasing the psi cost each time (currently %d%%)"
):
format
(
eff
.
power
*
100
)
end
,
type
=
"mental"
,
subtype
=
{
mind
=
true
},
status
=
"detrimental"
,
parameters
=
{
},
on_merge
=
function
(
self
,
old_eff
,
new_eff
)
new_eff
.
power
=
old_eff
.
power
+
1
return
new_eff
end
,
activate
=
function
(
self
,
eff
)
eff
.
power
=
2
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