Fix Firemaking in Dwarven Areas (#630)

Boundary Coords by @HaloGod35
This commit is contained in:
Josh Shippam
2023-02-24 19:28:49 +00:00
committed by GitHub
parent af7ae6185e
commit a2d24978a4
2 changed files with 5 additions and 1 deletions
@@ -51,6 +51,10 @@ public class Firemaking {
c.getPacketSender().sendMessage("You cannot light a fire here."); c.getPacketSender().sendMessage("You cannot light a fire here.");
return; return;
} }
if (Boundary.isIn(c, Boundary.DWARF_NO_FIREMAKING)) {
c.getPacketSender().sendMessage("The dwarves won't be happy if you light a fire here.");
return;
}
if (GameEngine.objectManager.objectExists(c.absX, c.absY)) { if (GameEngine.objectManager.objectExists(c.absX, c.absY)) {
c.getPacketSender().sendMessage("You cannot light a fire here."); c.getPacketSender().sendMessage("You cannot light a fire here.");
return; return;
@@ -318,5 +318,5 @@ public class Boundary {
public static final Boundary MAGE_TRAINING_ARENA_GRAVEYARD = new Boundary(3340, 3386, 9616, 9662, 1); public static final Boundary MAGE_TRAINING_ARENA_GRAVEYARD = new Boundary(3340, 3386, 9616, 9662, 1);
public static final Boundary MAGE_TRAINING_ARENA_ALCHEMY = new Boundary(3350, 3379, 9616, 9655, 2); public static final Boundary MAGE_TRAINING_ARENA_ALCHEMY = new Boundary(3350, 3379, 9616, 9655, 2);
public static final Boundary MAGE_TRAINING_ARENA_TELEKINETIC = new Boundary(3329, 3390, 9665, 9726); public static final Boundary MAGE_TRAINING_ARENA_TELEKINETIC = new Boundary(3329, 3390, 9665, 9726);
public static final Boundary[] DWARF_NO_FIREMAKING = new Boundary[] { new Boundary(2944, 3072, 3392, 3456), new Boundary(3008, 3072, 3456, 3520), new Boundary(2880, 2944, 3456, 3520) };
} }