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
461af289
Commit
461af289
authored
5 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Visual effect to Congeal Time debuff
parent
c00b8ee1
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/gfx/particles/congeal_time.lua
+47
-0
47 additions, 0 deletions
game/modules/tome/data/gfx/particles/congeal_time.lua
game/modules/tome/data/timed_effects/magical.lua
+5
-0
5 additions, 0 deletions
game/modules/tome/data/timed_effects/magical.lua
with
52 additions
and
0 deletions
game/modules/tome/data/gfx/particles/congeal_time.lua
0 → 100644
+
47
−
0
View file @
461af289
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2019 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
use_shader
=
{
type
=
"distort"
,
power
=
0
.
05
,
power_time
=
200
,
blacken
=
10
,
power_amp
=
0
.
3
}
alterscreen
=
true
base_size
=
64
local
life
=
30
local
nb
=
0
return
{
generator
=
function
()
return
{
trail
=
0
,
life
=
life
,
size
=
70
,
sizev
=
-
70
/
life
,
sizea
=
0
,
x
=
0
,
xv
=
0
,
xa
=
0
,
y
=
0
,
yv
=
0
,
ya
=
0
,
dir
=
0
,
dirv
=
dirv
,
dira
=
0
,
vel
=
0
,
velv
=
0
,
vela
=
0
,
r
=
1
,
rv
=
0
,
ra
=
0
,
g
=
1
,
gv
=
0
,
ga
=
0
,
b
=
1
,
bv
=
0
,
ba
=
0
,
a
=
1
,
av
=
0
,
aa
=
0
,
}
end
,
},
function
(
self
)
self
.
ps
:
emit
(
1
)
end
,
1
,
"particles_images/distort_wave3"
This diff is collapsed.
Click to expand it.
game/modules/tome/data/timed_effects/magical.lua
+
5
−
0
View file @
461af289
...
...
@@ -2552,6 +2552,11 @@ newEffect{
activate
=
function
(
self
,
eff
)
eff
.
tmpid
=
self
:
addTemporaryValue
(
"global_speed_add"
,
-
eff
.
slow
)
eff
.
prjid
=
self
:
addTemporaryValue
(
"slow_projectiles_outgoing"
,
eff
.
proj
)
if
core
.
shader
.
allow
(
"distort"
)
then
self
:
effectParticles
(
eff
,
{
type
=
"congeal_time"
})
else
self
:
effectParticles
(
eff
,
{
type
=
"circle"
,
args
=
{
oversize
=
0
.
5
,
a
=
80
,
base_rot
=
180
,
shader
=
true
,
appear
=
8
,
img
=
"combination_kicks_2"
,
speed
=
2
,
radius
=
0
}})
end
end
,
deactivate
=
function
(
self
,
eff
)
self
:
removeTemporaryValue
(
"global_speed_add"
,
eff
.
tmpid
)
...
...
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