summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-11 13:29:43 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-11 13:29:43 +0000
commitf3622e18550ba50d694129391612c7b48e826107 (patch)
tree0f7ce492f2e6c26fa3fb05717be0ea099eeffca1 /src/map/pc.c
parent542ad876951945fccf8687618e380e9e60ff25ee (diff)
downloadhercules-f3622e18550ba50d694129391612c7b48e826107.tar.gz
hercules-f3622e18550ba50d694129391612c7b48e826107.tar.bz2
hercules-f3622e18550ba50d694129391612c7b48e826107.tar.xz
hercules-f3622e18550ba50d694129391612c7b48e826107.zip
* Fixed TaTaMiGaEShi(Improvised Defense) not working.
* Implemented new cooking success formula. Now cooking experience starts at 0.(bugreport:2439) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13881 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index fdd44339e..abb86f95d 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -972,7 +972,7 @@ int pc_reg_received(struct map_session_data *sd)
sd->kafraPoints = pc_readaccountreg(sd,"#KAFRAPOINTS");
// Cooking Exp
- sd->cooking_attempt = pc_readglobalreg(sd,"COOKING_ATTEMPT");
+ sd->cook_mastery = pc_readglobalreg(sd,"COOK_MASTERY");
if( (sd->class_&MAPID_BASEMASK) == MAPID_TAEKWON )
{ // Better check for class rather than skill to prevent "skill resets" from unsetting this
@@ -6445,10 +6445,10 @@ int pc_setregistry(struct map_session_data *sd,const char *reg,int val,int type)
if( i )
status_calc_pc(sd,0); // Lost the bonus.
}
- else if( !strcmp(reg,"COOKING_ATTEMPT") && sd->cooking_attempt != val )
+ else if( !strcmp(reg,"COOK_MASTERY") && sd->cook_mastery != val )
{
- val = cap_value(val, 0, 400);
- sd->cooking_attempt = val;
+ val = cap_value(val, 0, 1999);
+ sd->cook_mastery = val;
}
sd_reg = sd->save_reg.global;
max = &sd->save_reg.global_num;