@update
I didn't had much time this week so I fixed only few of found errors and added few tweaks.
added stuff:
if you click on object that have only 1 possible choice on flower menu it will automatically click it.
he won't do this to option "Chop"possibility to drop item on ground while lifting with pathfinder (apparently its not so obvious)
added droping in center of tile
pathfinder will now work in normal mode or "dynamic mode", more description later

still to fix/add:
most important: when you are inside rectangle it thinks that rectangle i 1 tile smller, issue is when rectangle is really smaller less than 1 tile// might appear very hard to solve
not sure is formula of finding center of tile proper:
- Code: Select all
Coord subtileCorner(Coord x){
Coord corner=new Coord();
if(x==null) return x;
corner.x=x.x/11;
if(x.x<0)
{
corner.x-=1;
corner.x*=11;
}
else
corner.x*=11;
corner.y=x.y/11;
if(x.y<0)
{
corner.y-=1;
corner.y*=11;
}
else
corner.y*=11;
return corner;
}
Coord subtileCenter(Coord x)
{
return subtileCorner(x).add(5,5);
}
possible bug:
after right clicking on object pathfinder will wait 200 miliseconds on flowermenu to appear (in some cases it will never apear - for example cupboard) then he will assume that this object doesn't have any flower menu. This situation happens only if server has lags.
few others that i might not seen yet