summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 07:37:23 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 07:37:23 +0000
commit5fb385aef1e83cef546ea69b1b06feb00b8e5a73 (patch)
tree2642028164794618af0e46d978eba49b0005baa8 /src/map/pc.h
parent505dca128017c2e65d52082ffdb54750ef371e6c (diff)
downloadhercules-5fb385aef1e83cef546ea69b1b06feb00b8e5a73.tar.gz
hercules-5fb385aef1e83cef546ea69b1b06feb00b8e5a73.tar.bz2
hercules-5fb385aef1e83cef546ea69b1b06feb00b8e5a73.tar.xz
hercules-5fb385aef1e83cef546ea69b1b06feb00b8e5a73.zip
Rehashed Item_delay.txt (bugreport:5487)
- Before you could only have MAX_ITEMDELAYS (10) items with delays. Now: you can have up to MAX_ITEMDELAYS (10) concurrent delays. and of course you can always increase MAX_ITEMDELAYS in src/map/itemdb.h as much as you may need. - Item delays are no longer lost on logout, they're persistent until server restarts. - When a item use is denied due to delay still up a message now tells the user why he can't use the item (before would leave the user wondering wtf was going on. it had no response) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15762 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index a035092b5..8d8e9e7e0 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -218,7 +218,7 @@ struct map_session_data {
unsigned int ks_floodprotect_tick; // [Kill Steal Protection]
struct {
- int nameid;
+ short nameid;
unsigned int tick;
} item_delay[MAX_ITEMDELAYS]; // [Paradox924X]
@@ -897,4 +897,8 @@ void pc_overheat(struct map_session_data *sd, int val);
* Royal Guard
**/
int pc_banding(struct map_session_data *sd, short skill_lv);
+/**
+ * Item Cooldown persistency
+ **/
+void pc_itemcd_do(struct map_session_data *sd, bool load);
#endif /* _PC_H_ */