Add killMonster() methods
This commit is contained in:
@@ -267,6 +267,20 @@ public class ReactorActionManager extends AbstractPlayerInteraction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void killMonster(int id) {
|
||||||
|
killMonster(id, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void killMonster(int id, boolean withDrops) {
|
||||||
|
MapleMap map = getMap();
|
||||||
|
if (withDrops) {
|
||||||
|
map.killMonsterWithDrops(id);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
map.killMonster(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Point getPosition() {
|
public Point getPosition() {
|
||||||
Point pos = reactor.getPosition();
|
Point pos = reactor.getPosition();
|
||||||
pos.y -= 10;
|
pos.y -= 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user