summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/pre-re/size_fix.txt (renamed from db/size_fix.txt)0
-rw-r--r--db/re/size_fix.txt7
-rw-r--r--src/map/status.c2
3 files changed, 8 insertions, 1 deletions
diff --git a/db/size_fix.txt b/db/pre-re/size_fix.txt
index 81bba5044..81bba5044 100644
--- a/db/size_fix.txt
+++ b/db/pre-re/size_fix.txt
diff --git a/db/re/size_fix.txt b/db/re/size_fix.txt
new file mode 100644
index 000000000..f83560a87
--- /dev/null
+++ b/db/re/size_fix.txt
@@ -0,0 +1,7 @@
+// Database for size fix for weapon damage.
+
+//Columns: Weapon type, Rows: Target size.
+//Unarmed, Knife, 1H Sword, 2H Sword, 1H Spear, 2H Spears, 1H Axe, 2H Axe, Mace, 2H Mace, Staff, Bow, Knuckle, Musical Instrument, Whip, Book, Katar, Revolver, Rifle, Shotgun, Gatling Gun, Grenade Launcher, Fuuma Shuriken, 2H Staff
+100,100, 75, 75, 75, 75, 50, 50, 75, 75,100,100,100, 75, 75,100, 75,100,100,100,100,100, 75,100 // Size: Small
+100, 75,100, 75, 75, 75, 75, 75,100,100,100,100, 75,100,100,100,100,100,100,100,100,100, 75,100 // Size: Medium
+100, 50, 75,100,100,100,100,100,100,100,100, 75, 50, 75, 50, 50, 75,100,100,100,100,100,100,100 // Size: Large
diff --git a/src/map/status.c b/src/map/status.c
index d3fa25aaa..36661f683 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -12179,7 +12179,7 @@ int status_readdb(void)
sv->readdb(map->db_path, "pre-re/job_db1.txt", ',', 5+MAX_WEAPON_TYPE, 5+MAX_WEAPON_TYPE, -1, status->readdb_job1);
#endif
sv->readdb(map->db_path, "job_db2.txt", ',', 1, 1+MAX_LEVEL, -1, status->readdb_job2);
- sv->readdb(map->db_path, "size_fix.txt", ',', MAX_WEAPON_TYPE, MAX_WEAPON_TYPE, ARRAYLENGTH(status->atkmods), status->readdb_sizefix);
+ sv->readdb(map->db_path, DBPATH"size_fix.txt", ',', MAX_WEAPON_TYPE, MAX_WEAPON_TYPE, ARRAYLENGTH(status->atkmods), status->readdb_sizefix);
sv->readdb(map->db_path, DBPATH"refine_db.txt", ',', 4+MAX_REFINE, 4+MAX_REFINE, ARRAYLENGTH(status->refine_info), status->readdb_refine);
sv->readdb(map->db_path, "sc_config.txt", ',', 2, 2, SC_MAX, status->readdb_scconfig);