summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-30 16:38:14 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-30 16:38:14 +0000
commit296c89017a4dc3fcf6ccad304b4e325c944dabbc (patch)
tree9551127297064bc16e231959a063f1e472b86f34
parentd427fe23e39d1384c03c0d54fa4fe34e46eb80b6 (diff)
downloadhercules-296c89017a4dc3fcf6ccad304b4e325c944dabbc.tar.gz
hercules-296c89017a4dc3fcf6ccad304b4e325c944dabbc.tar.bz2
hercules-296c89017a4dc3fcf6ccad304b4e325c944dabbc.tar.xz
hercules-296c89017a4dc3fcf6ccad304b4e325c944dabbc.zip
Added support for RE attr table, due to bugreport:5182
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15332 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--db/attr_fix_re.txt56
-rw-r--r--src/map/pc.c5
2 files changed, 60 insertions, 1 deletions
diff --git a/db/attr_fix_re.txt b/db/attr_fix_re.txt
new file mode 100644
index 000000000..9fa75b631
--- /dev/null
+++ b/db/attr_fix_re.txt
@@ -0,0 +1,56 @@
+// Elemental attribute damage adjustment tables
+//
+// Row: target's defense element
+// Column: attacker's weapon element
+
+1,10 // lv1 Attribute table
+//Neut Watr Erth Fire Wind Pois Holy Shdw Gho Und
+ 100, 100, 100, 100, 100, 100, 100, 100, 70, 100, // Neutral
+ 100, 25, 100, 150, 90, 100, 75, 100, 100, 100, // Water
+ 100, 100, 25, 90, 150, 100, 75, 100, 100, 100, // Earth
+ 100, 90, 150, 25, 100, 100, 75, 100, 100, 125, // Fire
+ 100, 175, 90, 100, 25, 100, 75, 100, 100, 100, // Wind
+ 100, 100, 125, 125, 125, 0, 75, 50, 100, -25, // Poison
+ 100, 100, 100, 100, 100, 100, 0, 125, 100, 150, // Holy
+ 100, 100, 100, 100, 100, 50, 125, 0, 100, -25, // Shadow
+ 70, 100, 100, 100, 100, 100, 75, 75, 125, 100, // Ghost
+ 100, 100, 100, 100, 100, 50, 100, 0, 100, 0, // Undead
+
+2,10 // lv2 Attribute table
+//Neut Watr Erth Fire Wind Pois Holy Shdw Gho Und
+ 100, 100, 100, 100, 100, 100, 100, 100, 50, 100, // Neutral
+ 100, 0, 100, 175, 80, 100, 50, 75, 100, 100, // Water
+ 100, 100, 0, 80, 175, 100, 50, 75, 100, 100, // Earth
+ 100, 80, 175, 0, 100, 100, 50, 75, 100, 150, // Fire
+ 100, 175, 80, 100, 0, 100, 50, 75, 100, 100, // Wind
+ 100, 75, 125, 125, 125, 0, 50, 25, 75, -50, // Poison
+ 100, 100, 100, 100, 100, 100, -25, 150, 100, 175, // Holy
+ 100, 100, 100, 100, 100, 25, 150, -25, 100, -50, // Shadow
+ 50, 75, 75, 75, 75, 75, 50, 50, 150, 125, // Ghost
+ 100, 75, 75, 75, 75, 25, 125, 0, 100, 0, // Undead
+
+3,10 // lv3 Attribute table
+//Neut Watr Erth Fire Wind Pois Holy Shdw Gho Und
+ 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, // Neutral
+ 100, -25, 100, 200, 70, 100, 25, 50, 100, 125, // Water
+ 100, 100, -25, 70, 200, 100, 25, 50, 100, 100, // Earth
+ 100, 70, 200, -25, 100, 100, 25, 50, 100, 175, // Fire
+ 100, 200, 70, 100, -25, 100, 25, 50, 100, 100, // Wind
+ 100, 50, 100, 100, 100, 0, 25, 0, 50, -75, // Poison
+ 100, 100, 100, 100, 100, 125, -50, 175, 100, 200, // Holy
+ 100, 100, 100, 100, 100, 0, 175, -50, 100, -75, // Shadow
+ 0, 50, 50, 50, 50, 50, 25, 25, 175, 150, // Ghost
+ 100, 50, 50, 50, 50, 0, 150, 0, 100, 0, // Undead
+
+4,10 // lv4 Attribute table
+//Neut Watr Erth Fire Wind Pois Holy Shdw Gho Und
+ 100, 100, 100, 100, 100, 100, 100, 100, 0, 100, // Neutral
+ 100, -50, 100, 200, 60, 75, 0, 25, 100, 150, // Water
+ 100, 100, -50, 60, 200, 75, 0, 25, 100, 50, // Earth
+ 100, 60, 200, -50, 100, 75, 0, 25, 100, 200, // Fire
+ 100, 200, 60, 100, -50, 75, 0, 25, 100, 100, // Wind
+ 100, 25, 75, 75, 75, 0, 0, -25, 25,-100, // Poison
+ 100, 75, 75, 75, 75, 125,-100, 200, 100, 200, // Holy
+ 100, 75, 75, 75, 75, -25, 200,-100, 100,-100, // Shadow
+ 0, 25, 25, 25, 25, 25, 0, 0, 200, 175, // Ghost
+ 100, 25, 25, 25, 25, -25, 175, 0, 100, 0, // Undead
diff --git a/src/map/pc.c b/src/map/pc.c
index c6b0d1b62..eef9188a1 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -8254,8 +8254,11 @@ int pc_readdb(void)
for(j=0;j<ELE_MAX;j++)
for(k=0;k<ELE_MAX;k++)
attr_fix_table[i][j][k]=100;
-
+#if REMODE
+ sprintf(line, "%s/attr_fix_re.txt", db_path);
+#else
sprintf(line, "%s/attr_fix.txt", db_path);
+#endif
fp=fopen(line,"r");
if(fp==NULL){
ShowError("can't read %s\n", line);