summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorSusu <bruant.bastien@gmail.com>2013-06-25 14:12:21 +0200
committerSusu <bruant.bastien@gmail.com>2013-06-25 14:12:21 +0200
commit71627e92fbe36c23993456486a308acd0428fd3d (patch)
tree11944c4fbab516994661ad56e9656d421b025c81 /src/map/battle.c
parent5b40d0c2937c2fe4f8e133271d05602543d86277 (diff)
downloadhercules-71627e92fbe36c23993456486a308acd0428fd3d.tar.gz
hercules-71627e92fbe36c23993456486a308acd0428fd3d.tar.bz2
hercules-71627e92fbe36c23993456486a308acd0428fd3d.tar.xz
hercules-71627e92fbe36c23993456486a308acd0428fd3d.zip
- Added chrif interface
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 9e65146e2..b818e7ef4 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1489,7 +1489,7 @@ int battle_calc_skillratio(int attack_type, struct block_list *src, struct block
skillratio += 300 + 100 * skill_lv + status_get_int(src);
RE_LVL_DMOD(100);
break;
- case WL_FROSTMISTY: // MATK [{( Skill Level x 100 ) + 200 } x ( Caster’s Base Level / 100 )] %
+ case WL_FROSTMISTY: // MATK [{( Skill Level x 100 ) + 200 } x ( Caster�s Base Level / 100 )] %
skillratio += 100 + 100 * skill_lv;
RE_LVL_DMOD(100);
break;
@@ -6536,14 +6536,14 @@ void Hercules_report(char* date, char *time_c) {
WBUFL(buf,6 + 12 + 9 + 24 + 41 + 4 + 4 + 4 + BFLAG_LENGTH + ( i * ( BFLAG_LENGTH + 4 ) ) ) = *battle_data[i].val;
}
- chrif_send_report(buf, 6 + 12 + 9 + 24 + 41 + 4 + 4 + 4 + ( bd_size * ( BFLAG_LENGTH + 4 ) ) );
+ chrif->send_report(buf, 6 + 12 + 9 + 24 + 41 + 4 + 4 + 4 + ( bd_size * ( BFLAG_LENGTH + 4 ) ) );
aFree(buf);
#undef BFLAG_LENGTH
}
static int Hercules_report_timer(int tid, unsigned int tick, int id, intptr_t data) {
- if( chrif_isconnected() ) {/* char server relays it, so it must be online. */
+ if( chrif->isconnected() ) {/* char server relays it, so it must be online. */
Hercules_report(__DATE__,__TIME__);
}
return 0;