summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-14 21:12:18 -0200
committershennetsind <ind@henn.et>2013-02-14 21:12:18 -0200
commit7d33212f95653edd621961487f5622611d62ae88 (patch)
treeb992a814eeefc27de512231c5bf5eaf0c2efa111 /src/map/map.h
parent82005a99f5b1cca68e9fb1ac6b1614c815e4bd45 (diff)
downloadhercules-7d33212f95653edd621961487f5622611d62ae88.tar.gz
hercules-7d33212f95653edd621961487f5622611d62ae88.tar.bz2
hercules-7d33212f95653edd621961487f5622611d62ae88.tar.xz
hercules-7d33212f95653edd621961487f5622611d62ae88.zip
New Mapflag adjust_unit_duration
Made as a improvement of the original ADJUST_TRAP_DURATION -- special thanks to Muad_Dib! . This mapflag allows you to control the duration of unit skills in any map, for example. "prontera mapflag adjust_unit_duration PR_SANCTUARY 50" halves the duration of sanctuary in prontera Another Example: "prontera mapflag adjust_unit_duration WZ_QUAGMIRE 250" Increases duration of quagmire by 2.5 times in prontera map. Be aware that some skill units have their visual effect durations not controlled by the server (e.g. storm gust). Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 73f8e694b..a9699efc2 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -496,6 +496,11 @@ struct iwall_data {
bool shootable;
};
+struct adjust_unit_duration {
+ int skill_id;
+ unsigned short modifier;
+};
+
struct map_data {
char name[MAP_NAME_LENGTH];
uint16 index; // The map index used by the mapindex* functions.
@@ -588,6 +593,9 @@ struct map_data {
// Instance Variables
int instance_id;
int instance_src_map;
+
+ struct adjust_unit_duration **units;
+ unsigned short unit_count;
};
/// Stores information about a remote map (for multi-mapserver setups).