agility plugin: limit obstacles to agility pyramid regions
This commit is contained in:
@@ -287,7 +287,8 @@ public class AgilityPlugin extends Plugin
|
||||
|
||||
if (Obstacles.COURSE_OBSTACLE_IDS.contains(newObject.getId()) ||
|
||||
Obstacles.SHORTCUT_OBSTACLE_IDS.contains(newObject.getId()) ||
|
||||
Obstacles.TRAP_OBSTACLE_IDS.contains(newObject.getId()))
|
||||
(Obstacles.TRAP_OBSTACLE_IDS.contains(newObject.getId())
|
||||
&& Obstacles.TRAP_OBSTACLE_REGIONS.contains(newObject.getWorldLocation().getRegionID())))
|
||||
{
|
||||
obstacles.put(newObject, tile);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,9 @@
|
||||
*/
|
||||
package net.runelite.client.plugins.agility;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import static net.runelite.api.ObjectID.*;
|
||||
|
||||
@@ -185,4 +187,6 @@ public class Obstacles
|
||||
// Agility pyramid
|
||||
NULL_3550, NULL_10872, NULL_10873
|
||||
);
|
||||
|
||||
public static final List<Integer> TRAP_OBSTACLE_REGIONS = ImmutableList.of(12105, 13356);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user