summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-09 13:40:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-11 11:31:34 +0300
commit7dfdffc814f164fe7f6461f9767cc531ef150c83 (patch)
treef1a260ce24d5906e9d386c2854d8373bacafc48b /src/map/mob.c
parent94e07caca987dc83d1c42a58b10437117ae53832 (diff)
downloadhercules-7dfdffc814f164fe7f6461f9767cc531ef150c83.tar.gz
hercules-7dfdffc814f164fe7f6461f9767cc531ef150c83.tar.bz2
hercules-7dfdffc814f164fe7f6461f9767cc531ef150c83.tar.xz
hercules-7dfdffc814f164fe7f6461f9767cc531ef150c83.zip
Convert pcdb_checkid into function in pc interface.
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index ce5854928..30a359bc7 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1610,7 +1610,7 @@ bool mob_ai_sub_hard(struct mob_data *md, int64 tick) {
memmove(&md->lootitem[0], &md->lootitem[1], (LOOTITEM_SIZE-1)*sizeof(md->lootitem[0]));
memcpy (&md->lootitem[LOOTITEM_SIZE-1], &fitem->item_data, sizeof(md->lootitem[0]));
}
- if (pcdb_checkid(md->vd->class_)) {
+ if (pc->db_checkid(md->vd->class_)) {
//Give them walk act/delay to properly mimic players. [Skotlex]
clif->takeitem(&md->bl,tbl);
md->ud.canact_tick = tick + md->status.amotion;
@@ -2627,7 +2627,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) {
if( !rebirth ) {
- if( pcdb_checkid(md->vd->class_) ) {//Player mobs are not removed automatically by the client.
+ if( pc->db_checkid(md->vd->class_) ) {//Player mobs are not removed automatically by the client.
/* first we set them dead, then we delay the out sight effect */
clif->clearunit_area(&md->bl,CLR_DEAD);
clif->clearunit_delayed(&md->bl, CLR_OUTSIGHT,tick+3000);
@@ -3670,7 +3670,7 @@ bool mob_parse_dbrow(char** str) {
ShowError("mob_parse_dbrow: Invalid monster ID %d, must be in range %d-%d.\n", class_, 1000, MAX_MOB_DB);
return false;
}
- if (pcdb_checkid(class_)) {
+ if (pc->db_checkid(class_)) {
ShowError("mob_parse_dbrow: Invalid monster ID %d, reserved for player classes.\n", class_);
return false;
}
@@ -4030,7 +4030,7 @@ bool mob_readdb_mobavail(char* str[], int columns, int current)
mob->db_data[class_]->vd.class_=k;
//Player sprites
- if(pcdb_checkid(k) && columns==12) {
+ if(pc->db_checkid(k) && columns==12) {
mob->db_data[class_]->vd.sex=atoi(str[2]);
mob->db_data[class_]->vd.hair_style=atoi(str[3]);
mob->db_data[class_]->vd.hair_color=atoi(str[4]);