فهرست منبع

* Follow up b7431efa03cd6d735956320f20582df120ba3952
* Separated HP table between Novices & Super Novices, since the hardcoded HP bonus for Super Novice (+2000) was disabled when `HP_SP_TABLES` is enabled. The bonuses are written in job_basehpsp_db.txt.
* Highly assumed there was typo for Gunslinger/Rebellion HP at level 95 (3834). If refer to Star Galaditor tables, those both use same HP values (even see their HP Factor & Multiplicator are some, no chance result different only one value in the middle of the table).
* Changed warning message to info if the previous HP/SP is higher and the next level.
* Follow up f19e2dc6c7497c530bb48f0898d50d611e59bd0f, changed `rand()` to `rnd()` (follow up 27ba6c5002d8fac002d7aa8ff309abc5f352ee9f)

Signed-off-by: Cydh Ramdh <cydh@pservero.com>

Cydh Ramdh 10 سال پیش
والد
کامیت
e2af581d1a
3فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 0 1
      db/re/job_basehpsp_db.txt
  2. 1 1
      src/map/battle.c
  3. 2 2
      src/map/pc.c

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 1
db/re/job_basehpsp_db.txt


+ 1 - 1
src/map/battle.c

@@ -4655,7 +4655,7 @@ struct Damage battle_calc_attack_left_right_hands(struct Damage wd, struct block
 struct block_list *battle_check_devotion(struct block_list *bl) {
 	struct block_list *d_bl = NULL;
 
-	if (battle_config.devotion_rdamage && battle_config.devotion_rdamage > rand() % 100) {
+	if (battle_config.devotion_rdamage && battle_config.devotion_rdamage > rnd() % 100) {
 		struct status_change *sc = status_get_sc(bl);
 		if (sc && sc->data[SC_DEVOTION])
 			d_bl = map_id2bl(sc->data[SC_DEVOTION]->val1);

+ 2 - 2
src/map/pc.c

@@ -10690,7 +10690,7 @@ static bool pc_readdb_job_basehpsp(char* fields[], int columns, int current)
 					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])
-						ShowWarning("pc_readdb_job_basehpsp: HP value at line %d col %d is lower than previous level (job=%d,lvl=%d,oldval=%d,val=%d).\n",
+						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]);
 				}
 			}
@@ -10703,7 +10703,7 @@ static bool pc_readdb_job_basehpsp(char* fields[], int columns, int current)
 					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])
-						ShowWarning("pc_readdb_job_basehpsp: SP value at line %d col %d is lower than previous level (job=%d,lvl=%d,oldval=%d,val=%d).\n",
+						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]);
 				}
 			}

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است