Browse Source

* EXP updates for Renewal
-- Base Level 150 ~ 175 for 3rd classes & Expanded classes (256 ~ 1000 use custom gap 10m)
-- Job Level 50 ~ 60 for 3rd classes (61 ~ 255 use custom gap 5m)
Reference: http://www.divine-pride.net/database/experience

* Follow up fea3489
- Got extra ';' there https://github.com/rathena/rathena/commit/fea348968cf090e2c69d0cdf2573b511cbc82fe2#commitcomment-7332456
- Reduce w1's length

* Added some newline at end of file

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>

Cydh Ramdh 10 năm trước cách đây
mục cha
commit
98c83eeb7f

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
db/re/job_exp.txt


+ 0 - 6
src/char/char_clif.h

@@ -53,12 +53,6 @@ void chclif_block_character( int fd, struct char_session_data* sd);
 
 int chclif_parse(int fd);
 
-
-
-
-
-
-    
 #ifdef	__cplusplus
 }
 #endif

+ 4 - 1
src/char/inter.c

@@ -641,7 +641,10 @@ static int inter_config_read(const char* cfgName)
 	while(fgets(line, sizeof(line), fp)) {
 		char w1[24], w2[1024];
 
-		if (sscanf(line, "%23[^:]: %1023[^\r\n]", w1, w2) != 2);
+		if (line[0] == '/' && line[1] == '/')
+			continue;
+
+		if (sscanf(line, "%23[^:]: %1023[^\r\n]", w1, w2) != 2)
 			continue;
 
 		if(!strcmpi(w1,"char_server_ip"))

+ 0 - 1
src/login/account.c

@@ -285,7 +285,6 @@ static bool account_db_sql_set_property(AccountDB* self, const char* key, const
 	AccountDB_SQL* db = (AccountDB_SQL*)self;
 	const char* signature;
 
-
 	signature = "sql.";
 	if( strncmp(key, signature, strlen(signature)) == 0 )
 	{

+ 2 - 2
src/login/login.c

@@ -590,7 +590,7 @@ int login_lan_config_read(const char *lancfgName) {
  * @return 0:success, 1:failure (file not found|readable)
  */
 int login_config_read(const char* cfgName) {
-	char line[1024], w1[1024], w2[1024];
+	char line[1024], w1[32], w2[1024];
 	FILE* fp = fopen(cfgName, "r");
 	if (fp == NULL) {
 		ShowError("Configuration file (%s) not found.\n", cfgName);
@@ -600,7 +600,7 @@ int login_config_read(const char* cfgName) {
 		if (line[0] == '/' && line[1] == '/')
 			continue;
 
-		if (sscanf(line, "%1023[^:]: %1023[^\r\n]", w1, w2) < 2)
+		if (sscanf(line, "%31[^:]: %1023[^\r\n]", w1, w2) < 2)
 			continue;
 
 		if(!strcmpi(w1,"timestamp_format"))

+ 1 - 1
src/login/loginchrif.c

@@ -969,4 +969,4 @@ void do_final_loginchrif(void){
 	int i;
 	for( i = 0; i < ARRAYLENGTH(ch_server); ++i )
 		logchrif_server_destroy(i);
-}
+}

+ 1 - 1
src/login/loginclif.c

@@ -561,4 +561,4 @@ void do_init_loginclif(void){
  */
 void do_final_loginclif(void){
 	return;
-}
+}

+ 1 - 1
src/login/logincnslif.c

@@ -173,4 +173,4 @@ void do_init_logincnslif(void){
  */
 void do_final_logincnslif(void){
 	return;
-}
+}

+ 1 - 1
src/login/loginlog.c

@@ -211,4 +211,4 @@ bool loginlog_final(void) {
 	Sql_Free(sql_handle);
 	sql_handle = NULL;
 	return true;
-}
+}

+ 2 - 2
src/map/map.c

@@ -3418,7 +3418,7 @@ int parse_console(const char* buf){
  *------------------------------------------*/
 int map_config_read(char *cfgName)
 {
-	char line[1024], w1[1024], w2[1024];
+	char line[1024], w1[32], w2[1024];
 	FILE *fp;
 
 	fp = fopen(cfgName,"r");
@@ -3436,7 +3436,7 @@ int map_config_read(char *cfgName)
 			continue;
 		if( (ptr = strstr(line, "//")) != NULL )
 			*ptr = '\n'; //Strip comments
-		if( sscanf(line, "%1023[^:]: %1023[^\t\r\n]", w1, w2) < 2 )
+		if( sscanf(line, "%31[^:]: %1023[^\t\r\n]", w1, w2) < 2 )
 			continue;
 
 		//Strip trailing spaces

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác