Merge pull request #135 from cpurules/bugfix/lowb-reactor
Add handler for Land of Wild Boar's ritual stones
This commit is contained in:
5
scripts/reactor/1029000.js
Normal file
5
scripts/reactor/1029000.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
function act() {
|
||||||
|
rm.killMonster(3230300);
|
||||||
|
rm.killMonster(3230301);
|
||||||
|
rm.message("The Jr. Boogies have been scared away.");
|
||||||
|
}
|
||||||
@@ -267,6 +267,19 @@ public class ReactorActionManager extends AbstractPlayerInteraction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void killMonster(int id) {
|
||||||
|
killMonster(id, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void killMonster(int id, boolean withDrops) {
|
||||||
|
if (withDrops) {
|
||||||
|
getMap().killMonsterWithDrops(id);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
getMap().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