mirror of
https://github.com/2006-Scape/Parabot-Randoms.git
synced 2026-07-03 08:39:09 +00:00
[TASK] Fixed naming
This commit is contained in:
@@ -14,7 +14,7 @@ import org.rev317.min.api.wrappers.Npc;
|
||||
public class MysteriousOldMan implements Random {
|
||||
|
||||
private Npc man;
|
||||
private final int ID = 410;
|
||||
private final int id = 410;
|
||||
|
||||
@Override
|
||||
public boolean activate() {
|
||||
@@ -36,7 +36,7 @@ public class MysteriousOldMan implements Random {
|
||||
}
|
||||
|
||||
private Npc getMan() {
|
||||
for (Npc man : Npcs.getNearest(ID)) {
|
||||
for (Npc man : Npcs.getNearest(id)) {
|
||||
if (man != null && man.getDef() != null && man.getInteractingCharacter().equals(Players.getMyPlayer())) {
|
||||
return man;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.rev317.min.api.wrappers.Npc;
|
||||
public class SandwichLady implements Random {
|
||||
|
||||
private Npc lady;
|
||||
private final int ID = 3117;
|
||||
private final int id = 3117;
|
||||
|
||||
@Override
|
||||
public boolean activate() {
|
||||
@@ -36,7 +36,7 @@ public class SandwichLady implements Random {
|
||||
}
|
||||
|
||||
private Npc getLady() {
|
||||
for (Npc lady : Npcs.getNearest(ID)) {
|
||||
for (Npc lady : Npcs.getNearest(id)) {
|
||||
if (lady != null && lady.getDef() != null && lady.getInteractingCharacter().equals(Players.getMyPlayer())) {
|
||||
return lady;
|
||||
}
|
||||
|
||||
@@ -13,11 +13,11 @@ import org.rev317.min.api.wrappers.Item;
|
||||
public class TriangleSandwich implements Random {
|
||||
|
||||
private Item item;
|
||||
private final int ID = 6963;
|
||||
private final int id = 6963;
|
||||
|
||||
@Override
|
||||
public boolean activate() {
|
||||
for (Item i : Inventory.getItems(ID)) {
|
||||
for (Item i : Inventory.getItems(id)) {
|
||||
if (i != null) {
|
||||
this.item = i;
|
||||
return true;
|
||||
@@ -33,7 +33,7 @@ public class TriangleSandwich implements Random {
|
||||
Time.sleep(new SleepCondition() {
|
||||
@Override
|
||||
public boolean isValid() {
|
||||
return Inventory.getCount(ID) == 0;
|
||||
return Inventory.getCount(id) == 0;
|
||||
}
|
||||
}, 1500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user