summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-14 23:12:19 -0200
committershennetsind <ind@henn.et>2013-02-14 23:12:19 -0200
commitef49bfc4445d464f19f84d78a2e6a1a5a3d9f0ac (patch)
treedf150223d48b5379d47a365c05a143691c79cdf6 /src/map/map.h
parent7d33212f95653edd621961487f5622611d62ae88 (diff)
downloadhercules-ef49bfc4445d464f19f84d78a2e6a1a5a3d9f0ac.tar.gz
hercules-ef49bfc4445d464f19f84d78a2e6a1a5a3d9f0ac.tar.bz2
hercules-ef49bfc4445d464f19f84d78a2e6a1a5a3d9f0ac.tar.xz
hercules-ef49bfc4445d464f19f84d78a2e6a1a5a3d9f0ac.zip
New Mapflag adjust_skill_damage
Made as a improvement of the original ADJUST_SKILL_DAMAGE -- special thanks to Muad_Dib! . This mapflag allows you to modify the damage of any skill in any map, for example "prontera mapflag adjust_skill_damage MG_FIREBOLT 200" doubles the damage of Firebolt in prontera Another Example: "prontera mapflag adjust_skill_damage MG_FIREBOLT 50" Halves the damage of Firebolt in prontera. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/map.h b/src/map/map.h
index a9699efc2..861a55d0a 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -496,8 +496,8 @@ struct iwall_data {
bool shootable;
};
-struct adjust_unit_duration {
- int skill_id;
+struct mapflag_skill_adjust {
+ unsigned short skill_id;
unsigned short modifier;
};
@@ -594,8 +594,12 @@ struct map_data {
int instance_id;
int instance_src_map;
- struct adjust_unit_duration **units;
+ /* adjust_unit_duration mapflag */
+ struct mapflag_skill_adjust **units;
unsigned short unit_count;
+ /* adjust_skill_damage mapflag */
+ struct mapflag_skill_adjust **skills;
+ unsigned short skill_count;
};
/// Stores information about a remote map (for multi-mapserver setups).