cumbe11 1 Posted June 16, 2020 Olá, eu queria entender a formula da velocidade da movimetação do asura... more precisely that part ud->canmove_tick+=7*speed/5; I wanted to make the movement of the asura faster, I wanted to know where I have to modify it for that .... src/skill.c struct unit_data *ud = unit_bl2ud(src); short dx,dy; int i,speed; i = skillid == MO_EXTREMITYFIST?1:2; //Move 2 cells for Issen, 1 for Asura dx = bl->x - src->x; dy = bl->y - src->y; if (dx < 0) dx-=i; else if (dx > 0) dx+=i; if (dy < 0) dy-=i; else if (dy > 0) dy+=i; if (!dx && !dy) dy++; if (map_getcell(src->m, src->x+dx, src->y+dy, CELL_CHKNOPASS)) { dx = bl->x; dy = bl->y; } else { dx = src->x + dx; dy = src->y + dy; } skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag); if(unit_walktoxy(src, dx, dy, 2) && ud) { //Increase can't walk delay to not alter your walk path ud->canmove_tick = tick; speed = status_get_speed(src); for (i = 0; i < ud->walkpath.path_len; i ++) { if(ud->walkpath.path[i]&1) ud->canmove_tick+=7*speed/5; else ud->canmove_tick+=speed; } } } break; Quote Share this post Link to post Share on other sites
Olá, eu queria entender a formula da velocidade da movimetação do asura... more precisely that part
ud->canmove_tick+=7*speed/5;
I wanted to make the movement of the asura faster, I wanted to know where I have to modify it for that ....
src/skill.c
Share this post
Link to post
Share on other sites