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
Otowa Kotori
Tales of MajEyal
Commits
a8a318b6
Commit
a8a318b6
authored
9 years ago
by
Alex Ksandra
Browse files
Options
Downloads
Patches
Plain Diff
handle non-primary damage types for charm powers and Channel Staff a bit better
parent
0fd1e4b4
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/general/objects/egos/staves.lua
+6
-6
6 additions, 6 deletions
game/modules/tome/data/general/objects/egos/staves.lua
game/modules/tome/data/talents/spells/staff-combat.lua
+1
-1
1 addition, 1 deletion
game/modules/tome/data/talents/spells/staff-combat.lua
with
7 additions
and
7 deletions
game/modules/tome/data/general/objects/egos/staves.lua
+
6
−
6
View file @
a8a318b6
...
...
@@ -250,7 +250,7 @@ newEntity{
local
explosion
,
particle
,
trail
local
DamageType
=
require
"engine.DamageType"
local
damtype
=
combat
.
element
local
damtype
=
combat
.
element
or
DamageType
.
ARCANE
if
damtype
==
DamageType
.
FIRE
then
explosion
=
"flame"
particle
=
"bolt_fire"
trail
=
"firetrail"
elseif
damtype
==
DamageType
.
COLD
then
explosion
=
"freeze"
particle
=
"ice_shards"
trail
=
"icetrail"
elseif
damtype
==
DamageType
.
ACID
then
explosion
=
"acid"
particle
=
"bolt_acid"
trail
=
"acidtrail"
...
...
@@ -261,7 +261,7 @@ newEntity{
elseif
damtype
==
DamageType
.
BLIGHT
then
explosion
=
"slime"
particle
=
"bolt_slime"
trail
=
"slimetrail"
elseif
damtype
==
DamageType
.
PHYSICAL
then
explosion
=
"dark"
particle
=
"stone_shards"
trail
=
"earthtrail"
elseif
damtype
==
DamageType
.
TEMPORAL
then
explosion
=
"light"
particle
=
"temporal_bolt"
trail
=
"lighttrail"
else
explosion
=
"manathrust"
particle
=
"bolt_arcane"
trail
=
"arcanetrail"
damtype
=
DamageType
.
ARCANE
else
explosion
=
"manathrust"
particle
=
"bolt_arcane"
trail
=
"arcanetrail"
--
damtype = DamageType.ARCANE
end
local
x
,
y
=
who
:
getTarget
(
tg
)
...
...
@@ -351,7 +351,7 @@ newEntity{
if
not
combat
then
return
end
local
DamageType
=
require
"engine.DamageType"
local
damtype
=
combat
.
element
local
damtype
=
combat
.
element
or
DamageType
.
ARCANE
local
explosion
if
damtype
==
DamageType
.
FIRE
then
explosion
=
"flame"
...
...
@@ -364,7 +364,7 @@ newEntity{
elseif
damtype
==
DamageType
.
BLIGHT
then
explosion
=
"slime"
elseif
damtype
==
DamageType
.
PHYSICAL
then
explosion
=
"dark"
elseif
damtype
==
DamageType
.
TEMPORAL
then
explosion
=
"light"
else
explosion
=
"manathrust"
damtype
=
DamageType
.
ARCANE
else
explosion
=
"manathrust"
--
damtype = DamageType.ARCANE
end
-- Compute damage
...
...
@@ -466,7 +466,7 @@ newEntity{
local
combat
=
weapon
.
combat
local
DamageType
=
require
"engine.DamageType"
local
damtype
=
combat
.
element
local
damtype
=
combat
.
element
or
DamageType
.
ARCANE
local
explosion
if
damtype
==
DamageType
.
FIRE
then
explosion
=
"flame"
...
...
@@ -479,7 +479,7 @@ newEntity{
elseif
damtype
==
DamageType
.
BLIGHT
then
explosion
=
"slime"
elseif
damtype
==
DamageType
.
PHYSICAL
then
explosion
=
"dark"
elseif
damtype
==
DamageType
.
TEMPORAL
then
explosion
=
"light"
else
explosion
=
"manathrust"
damtype
=
DamageType
.
ARCANE
else
explosion
=
"manathrust"
--
damtype = DamageType.ARCANE
end
local
x
,
y
=
who
:
getTarget
(
tg
)
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/talents/spells/staff-combat.lua
+
1
−
1
View file @
a8a318b6
...
...
@@ -58,7 +58,7 @@ newTalent{
elseif
damtype
==
DamageType
.
BLIGHT
then
explosion
=
"slime"
particle
=
"bolt_slime"
trail
=
"slimetrail"
elseif
damtype
==
DamageType
.
PHYSICAL
then
explosion
=
"dark"
particle
=
"stone_shards"
trail
=
"earthtrail"
elseif
damtype
==
DamageType
.
TEMPORAL
then
explosion
=
"light"
particle
=
"temporal_bolt"
trail
=
"lighttrail"
else
explosion
=
"manathrust"
particle
=
"bolt_arcane"
trail
=
"arcanetrail"
damtype
=
DamageType
.
ARCANE
else
explosion
=
"manathrust"
particle
=
"bolt_arcane"
trail
=
"arcanetrail"
--
damtype = DamageType.ARCANE
end
local
tg
=
self
:
getTalentTarget
(
t
)
...
...
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