From 1838d7a34123b596a9a8411da5991a91f49ea713 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Mon, 15 Oct 2007 05:55:55 +0000 Subject: Implemented new skill "Enlarge Weight Limit R", and increased MAX_SKILL_TREE by 1. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11476 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.h | 4 ++-- src/map/skill.c | 1 + src/map/skill.h | 2 ++ src/map/status.c | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/pc.h b/src/map/pc.h index fcf3665f9..b8169e954 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -11,8 +11,8 @@ #include "status.h" // OPTION_* #include "unit.h" // unit_stop_attack(), unit_stop_walking() -//Update this max as necessary. 53 is the value needed for Super Baby currently -#define MAX_SKILL_TREE 53 +//Update this max as necessary. 54 is the value needed for Super Baby currently +#define MAX_SKILL_TREE 54 enum { W_FIST, //Bare hands diff --git a/src/map/skill.c b/src/map/skill.c index 3b95d257d..20f40315c 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -52,6 +52,7 @@ const struct skill_name_db skill_names[] = { { AC_SHOWER, "AC_SHOWER", "Arrow Shower" } , { AC_VULTURE, "AC_VULTURE", "Vulture's Eye" } , { ALL_RESURRECTION, "ALL_RESURRECTION", "Resurrection" } , + { ALL_INCCARRY, "ALL_INCCARRY", "Enlarge Weight Limit R" } , { AL_ANGELUS, "AL_ANGELUS", "Angelus" } , { AL_BLESSING, "AL_BLESSING", "Blessing" } , { AL_CRUCIS, "AL_CRUCIS", "Signum Crusis" } , diff --git a/src/map/skill.h b/src/map/skill.h index 9905c761b..1025e4aea 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -894,6 +894,8 @@ enum _skill { NPC_VAMPIRE_GIFT, NPC_WIDESOULDRAIN, + ALL_INCCARRY = 681, + KN_CHARGEATK = 1001, CR_SHRINK, AS_SONICACCEL, diff --git a/src/map/status.c b/src/map/status.c index 36333aac4..defef4f27 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2232,6 +2232,8 @@ int status_calc_pc(struct map_session_data* sd,int first) sd->max_weight += 10000; if(sd->sc.data[SC_KNOWLEDGE].timer != -1) sd->max_weight += sd->max_weight*sd->sc.data[SC_KNOWLEDGE].val1/10; + if((skill=pc_checkskill(sd,ALL_INCCARRY))>0) + sd->max_weight += 2000*skill; if (pc_checkskill(sd,SM_MOVINGRECOVERY)>0) sd->regen.state.walk = 1; -- cgit v1.2.3-70-g09d2