* Fixed itemgroup_db that being reseted when read import file. http://rathena.org/board/tracker/issue-8419-cant-not-open-any-itemgroup/
* Fixed typo for maxsp bonus as follow up of 96443cd. Thank Baalberith Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
This commit is contained in:
parent
b9aae13340
commit
2d35b03bf7
@ -769,7 +769,6 @@ static void itemdb_read_itemgroup(const char* basedir, bool silent)
|
||||
{
|
||||
char filepath[256];
|
||||
sprintf(filepath, "%s/%s", basedir, "item_group_db.txt");
|
||||
memset(&itemgroup_db, 0, sizeof(itemgroup_db));
|
||||
itemdb_read_itemgroup_sub(filepath, silent);
|
||||
return;
|
||||
}
|
||||
@ -1537,8 +1536,7 @@ static void itemdb_read(void) {
|
||||
else
|
||||
itemdb_readdb();
|
||||
|
||||
|
||||
|
||||
memset(&itemgroup_db, 0, sizeof(itemgroup_db));
|
||||
|
||||
for(i=0; i<ARRAYLENGTH(dbsubpath); i++){
|
||||
int n1 = strlen(db_path)+strlen(dbsubpath[i])+1;
|
||||
|
@ -2604,8 +2604,8 @@ static int status_get_spbonus(struct block_list *bl, enum e_status_bonus type) {
|
||||
struct map_session_data *sd = map_id2sd(bl->id);
|
||||
int8 i;
|
||||
|
||||
bonus += sd->hprate;
|
||||
bonus -= 100; //Default hprate is 100, so it should be add 0%
|
||||
bonus += sd->sprate;
|
||||
bonus -= 100; //Default sprate is 100, so it should be add 0%
|
||||
|
||||
if((i=pc_checkskill(sd,HP_MEDITATIO)) > 0)
|
||||
bonus += i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user