diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-04-29 01:21:45 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-01 23:45:51 +0300 |
commit | 6ff97aad8bf4af8e1a69665b3ad414042efada02 (patch) | |
tree | ed0f186c524146d0b68c082373b1053d84f51c16 /src/defaults.cpp | |
parent | bba99b414167d9adb40622d8fc8c1e9dc814e956 (diff) | |
download | manaverse-6ff97aad8bf4af8e1a69665b3ad414042efada02.tar.gz manaverse-6ff97aad8bf4af8e1a69665b3ad414042efada02.tar.bz2 manaverse-6ff97aad8bf4af8e1a69665b3ad414042efada02.tar.xz manaverse-6ff97aad8bf4af8e1a69665b3ad414042efada02.zip |
Added customizable on-hit effects for characters.
This patch adds support for the following two parameters
in weapon items:
hit-effect-id: Effect triggered on the victim on normal hit.
critical-hit-effect-id: Triggered on the victim on critical hit.
(Specified in effects.xml)
The patch also permits the use of custom defaults set in paths.xml
by setting the following keys:
(Paths are relative to the 'particles' key value, here.)
hitEffectId: defaulted to effect id 26.
criticalHitEffectId: defaulted to effect id 28.
Resolves: Mana-mantis #337.
Reviewed-by: bcs86
Conflicts:
src/being.cpp
src/resources/itemdb.cpp
src/resources/iteminfo.h
ManaPlus: adding missing checks.
Diffstat (limited to 'src/defaults.cpp')
-rw-r--r-- | src/defaults.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp index 5249addd2..622740f61 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -244,6 +244,8 @@ DefaultsData* getPathsDefaults() AddDEF(pathsData, "particles", "graphics/particles/"); AddDEF(pathsData, "levelUpEffectFile", "levelup.particle.xml"); AddDEF(pathsData, "portalEffectFile", "warparea.particle.xml"); + AddDEF(pathsData, "hitEffectId", 26); + AddDEF(pathsData, "criticalHitEffectId", 28); AddDEF(pathsData, "minimaps", "graphics/minimaps/"); AddDEF(pathsData, "maps", "maps/"); |