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
8868e8c1
Commit
8868e8c1
authored
7 years ago
by
Sheila
Browse files
Options
Downloads
Patches
Plain Diff
New damtype for Frost Treads' effect
parent
61c47516
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!447
Artifact Cheese :cheese:
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/damage_types.lua
+16
-1
16 additions, 1 deletion
game/modules/tome/data/damage_types.lua
with
16 additions
and
1 deletion
game/modules/tome/data/damage_types.lua
+
16
−
1
View file @
8868e8c1
...
...
@@ -4055,4 +4055,19 @@ newDamageType{
target
:
setEffect
(
target
.
EFF_SHADOW_SMOKE
,
5
,
{
sight
=
dam
,
apply_power
=
src
:
combatAttack
()})
end
end
,
}
\ No newline at end of file
}
newDamageType
{
name
=
"frozen earth"
,
type
=
"ITEM_FROST_TREADS"
,
projector
=
function
(
src
,
x
,
y
,
type
,
dam
,
state
)
state
=
initState
(
state
)
useImplicitCrit
(
src
,
state
)
local
target
=
game
.
level
.
map
(
x
,
y
,
Map
.
ACTOR
)
if
target
and
src
:
reactionToward
(
target
)
<
0
then
target
:
setEffect
(
target
.
EFF_SLIPPERY_GROUND
,
2
,
{
fail
=
20
},
true
)
end
if
target
and
target
==
src
then
target
:
setEffect
(
target
.
EFF_FROZEN_GROUND
,
2
,
{
},
true
)
end
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