summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-04 01:10:54 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-04 01:10:54 +0300
commit8b8007f5267a8972b0d5f087e1e2971500a60c50 (patch)
tree1d507deb7d066ab066bdab2cf7bd4f549c471278 /src/map/pc.h
parentb943ddf81d071f3135851cadf4dc474e64e7f059 (diff)
parent818acc5866707b9e294a87d2dd902aebb670707f (diff)
downloadhercules-8b8007f5267a8972b0d5f087e1e2971500a60c50.tar.gz
hercules-8b8007f5267a8972b0d5f087e1e2971500a60c50.tar.bz2
hercules-8b8007f5267a8972b0d5f087e1e2971500a60c50.tar.xz
hercules-8b8007f5267a8972b0d5f087e1e2971500a60c50.zip
Merge pull request #1056 from MishimaHaruna/skill_tree_fix
Skill tree fix
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 97f339bf6..23b46a631 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -2,7 +2,7 @@
* This file is part of Hercules.
* http://herc.ws - http://github.com/HerculesWS/Hercules
*
- * Copyright (C) 2012-2015 Hercules Dev Team
+ * Copyright (C) 2012-2016 Hercules Dev Team
* Copyright (C) Athena Dev Teams
*
* Hercules is free software: you can redistribute it and/or modify
@@ -41,7 +41,6 @@
* Defines
**/
#define MAX_PC_BONUS 10
-#define MAX_PC_SKILL_REQUIRE 5
#define MAX_PC_FEELHATE 3
#define MAX_PC_DEVOTION 5 ///< Max amount of devotion targets
#define PVP_CALCRANK_INTERVAL 1000 ///< PVP calculation interval
@@ -714,17 +713,19 @@ END_ZEROED_BLOCK;
#define pc_can_give_items(sd) ( pc_has_permission((sd),PC_PERM_TRADE) )
#define pc_can_give_bound_items(sd) ( pc_has_permission((sd),PC_PERM_TRADE_BOUND) )
+struct skill_tree_requirement {
+ short id;
+ unsigned short idx;
+ unsigned char lv;
+};
+
struct skill_tree_entry {
short id;
unsigned short idx;
unsigned char max;
unsigned char joblv;
short inherited;
- struct {
- short id;
- unsigned short idx;
- unsigned char lv;
- } need[MAX_PC_SKILL_REQUIRE];
+ VECTOR_DECL(struct skill_tree_requirement) need;
}; // Celest
struct sg_data {
@@ -1052,6 +1053,7 @@ END_ZEROED_BLOCK; /* End */
int (*autosave) (int tid, int64 tick, int id, intptr_t data);
int (*follow_timer) (int tid, int64 tick, int id, intptr_t data);
void (*read_skill_tree) (void);
+ void (*clear_skill_tree) (void);
int (*isUseitem) (struct map_session_data *sd,int n);
int (*show_steal) (struct block_list *bl,va_list ap);
int (*checkcombo) (struct map_session_data *sd, struct item_data *data );