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
36a2754e
Commit
36a2754e
authored
8 years ago
by
Chris Davidson
Browse files
Options
Downloads
Patches
Plain Diff
Redesign Projection ego
parent
01340a23
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!400
Items misc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/general/objects/egos/weapon.lua
+19
-25
19 additions, 25 deletions
game/modules/tome/data/general/objects/egos/weapon.lua
with
19 additions
and
25 deletions
game/modules/tome/data/general/objects/egos/weapon.lua
+
19
−
25
View file @
36a2754e
...
...
@@ -827,38 +827,32 @@ newEntity{
name
=
" of projection"
,
suffix
=
true
,
instant_resolve
=
true
,
keywords
=
{
projection
=
true
},
level_range
=
{
1
,
50
},
rarity
=
5
,
rarity
=
2
5
,
cost
=
15
,
resolvers
.
charm
(
function
(
self
,
who
)
return
(
"project a melee attack out to range %d, dealing 150%%%% (mind) weapon damage"
):
format
(
self
.
use_power
.
range
)
end
,
6
,
function
(
self
,
who
)
local
tg
=
self
.
use_power
.
target
(
self
,
who
)
local
x
,
y
=
who
:
getTarget
(
tg
)
if
not
x
or
not
y
then
return
nil
end
local
_
_
,
x
,
y
=
who
:
canProject
(
tg
,
x
,
y
)
if
not
x
or
not
y
then
return
nil
end
local
target
=
game
.
level
.
map
(
x
,
y
,
engine
.
Map
.
ACTOR
)
who
:
logCombat
(
target
,
"#Source# psionically attacks #target# with %s %s!"
,
who
:
his_her
(),
self
:
getName
({
do_color
=
true
,
no_add_name
=
true
}))
if
target
then
who
:
attackTarget
(
target
,
engine
.
DamageType
.
MIND
,
1
.
5
,
true
)
end
return
{
id
=
true
,
used
=
true
}
end
,
"T_GLOBAL_CD"
,
{
range
=
10
,
requires_target
=
true
,
tactical
=
{
ATTACK
=
{
MIND
=
2
}
},
target
=
function
(
self
,
who
)
return
{
type
=
"hit"
,
range
=
self
.
use_power
.
range
}
end
}
),
greater_ego
=
1
,
combat
=
{
melee_project
=
{
[
DamageType
.
MIND
]
=
resolvers
.
mbonus_material
(
15
,
5
),
},
special_on_hit
=
{
desc
=
"Strikes a different enemy in radius 10 for 30% weapon damage"
,
fct
=
function
(
combat
,
who
,
target
)
if
who
.
turn_procs
.
ego_projection
then
return
end
who
.
turn_procs
.
ego_projection
=
true
local
tg
=
{
type
=
"ball"
,
radius
=
10
}
local
grids
=
who
:
project
(
tg
,
who
.
x
,
who
.
y
,
function
()
end
)
local
tgts
=
{}
for
x
,
ys
in
pairs
(
grids
)
do
for
y
,
_
in
pairs
(
ys
)
do
local
target2
=
game
.
level
.
map
(
x
,
y
,
engine
.
Map
.
ACTOR
)
if
target2
and
target
~=
target2
and
who
:
reactionToward
(
target2
)
<
0
then
tgts
[
#
tgts
+
1
]
=
target2
end
end
end
local
project_target
=
rng
.
tableRemove
(
tgts
)
if
project_target
then
who
:
attackTarget
(
project_target
,
engine
.
DamageType
.
MIND
,
0
.
3
,
true
)
end
end
},
},
}
-- Merged with Psychic/redesigned a bit
newEntity
{
power_source
=
{
psionic
=
true
},
...
...
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