Переглянути джерело

Novice HP/SP (fixes #402)
- There will no longer be warnings in the log if HP/SP decreases from level 99 to 100 as this happens officially
- At level 99 only Super Novice will now get +2000 HP in both pre-renewal and renewal
- At level 150 all Novice classes get +2000 HP

Playtester 10 роки тому
батько
коміт
77cd4df358
3 змінених файлів з 4 додано та 5 видалено
  1. 0 1
      db/pre-re/job_basehpsp_db.txt
  2. 0 0
      db/re/job_basehpsp_db.txt
  3. 4 4
      src/map/pc.c

Різницю між файлами не показано, бо вона завелика
+ 0 - 1
db/pre-re/job_basehpsp_db.txt


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
db/re/job_basehpsp_db.txt


+ 4 - 4
src/map/pc.c

@@ -10688,8 +10688,8 @@ static bool pc_readdb_job_basehpsp(char* fields[], int columns, int current)
 				if (atoi(fields[j+4])) {
 					uint16 lvl_idx = startlvl-1+j;
 					job_info[idx].base_hp[lvl_idx] = atoi(fields[j+4]);
-					//Tells if this HP is lower than previous level
-					if (lvl_idx-1 >= 0 && job_info[idx].base_hp[lvl_idx] < job_info[idx].base_hp[lvl_idx-1])
+					//Tells if this HP is lower than previous level (but not for 99->100)
+					if (lvl_idx-1 >= 0 && lvl_idx != 99 && job_info[idx].base_hp[lvl_idx] < job_info[idx].base_hp[lvl_idx-1])
 						ShowInfo("pc_readdb_job_basehpsp: HP value at entry %d col %d is lower than previous level (job=%d,lvl=%d,oldval=%d,val=%d).\n",
 							current,j+4,job_id,lvl_idx+1,job_info[idx].base_hp[lvl_idx-1],job_info[idx].base_hp[lvl_idx]);
 				}
@@ -10701,8 +10701,8 @@ static bool pc_readdb_job_basehpsp(char* fields[], int columns, int current)
 				if (atoi(fields[j+4])) {
 					uint16 lvl_idx = startlvl-1+j;
 					job_info[idx].base_sp[lvl_idx] = atoi(fields[j+4]);
-					//Tells if this SP is lower than previous level
-					if (lvl_idx-1 >= 0 && job_info[idx].base_sp[lvl_idx] < job_info[idx].base_sp[lvl_idx-1])
+					//Tells if this SP is lower than previous level (but not for 99->100)
+					if (lvl_idx-1 >= 0 && lvl_idx != 99 && job_info[idx].base_sp[lvl_idx] < job_info[idx].base_sp[lvl_idx-1])
 						ShowInfo("pc_readdb_job_basehpsp: SP value at entry %d col %d is lower than previous level (job=%d,lvl=%d,oldval=%d,val=%d).\n",
 							current,j+4,job_id,lvl_idx+1,job_info[idx].base_sp[lvl_idx-1],job_info[idx].base_sp[lvl_idx]);
 				}

Деякі файли не було показано, через те що забагато файлів було змінено