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