Refactor various minor things

This commit is contained in:
P0nk
2022-08-02 17:45:47 +02:00
parent 4fd1daada4
commit 5afb09d798
6 changed files with 19 additions and 16 deletions

View File

@@ -504,7 +504,9 @@ public class MapleMap {
xLimits = bounds;
} else {
// assuming MINIMAP always have an equal-greater picture representation of the map area (players won't walk beyond the area known by the minimap).
Point lp = new Point(mapArea.x, mapArea.y), rp = new Point(mapArea.x + mapArea.width, mapArea.y), fallback = new Point(mapArea.x + (mapArea.width / 2), mapArea.y);
Point lp = new Point(mapArea.x, mapArea.y);
Point rp = new Point(mapArea.x + mapArea.width, mapArea.y);
Point fallback = new Point(mapArea.x + (mapArea.width / 2), mapArea.y);
lp = bsearchDropPos(lp, fallback); // approximated leftmost fh node position
rp = bsearchDropPos(rp, fallback); // approximated rightmost fh node position

View File

@@ -256,8 +256,8 @@ public class Reactor extends AbstractMapObject {
cancelReactorTimeout();
attackHit = wHit;
if (YamlConfig.config.server.USE_DEBUG == true) {
c.getPlayer().dropMessage(5, "Hitted REACTOR " + this.getId() + " with POS " + charPos + " , STANCE " + stance + " , SkillID " + skillid + " , STATE " + stats.getType(state) + " STATESIZE " + stats.getStateSize(state));
if (YamlConfig.config.server.USE_DEBUG) {
c.getPlayer().dropMessage(5, "Hitted REACTOR " + this.getId() + " with POS " + charPos + " , STANCE " + stance + " , SkillID " + skillid + " , STATE " + state + " STATESIZE " + stats.getStateSize(state));
}
ReactorScriptManager.getInstance().onHit(c, this);