Skip to content

Commit

Permalink
Add runes, Falador/Ardougne to TeleportCollections
Browse files Browse the repository at this point in the history
  • Loading branch information
blakephillips committed Dec 3, 2024
1 parent 0fb01f9 commit 6e02c5a
Showing 1 changed file with 48 additions and 5 deletions.
53 changes: 48 additions & 5 deletions src/main/java/com/questhelper/collections/TeleportCollections.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
package com.questhelper.collections;

import com.questhelper.requirements.item.ItemRequirement;
import com.questhelper.requirements.item.ItemRequirements;
import com.questhelper.requirements.item.TeleportItemRequirement;
import com.questhelper.requirements.util.LogicType;
import net.runelite.api.ItemID;

public enum TeleportCollections
{
BURTHORPE_TELEPORT()
{
public TeleportItemRequirement getItemRequirement()
public ItemRequirement getItemRequirement()
{
TeleportItemRequirement burthTele = new TeleportItemRequirement("Teleport to Burthorpe. Games necklace (Burthorpe [1]), minigame teleport (Burthorpe Games Room)",
ItemCollections.GAMES_NECKLACES);
Expand All @@ -16,24 +19,64 @@ public TeleportItemRequirement getItemRequirement()
},
VARROCK_TELEPORT()
{
public TeleportItemRequirement getItemRequirement()
public ItemRequirement getItemRequirement()
{
TeleportItemRequirement varrockTele = new TeleportItemRequirement("Teleport to Varrock. Varrock teleport tablet/spell, Chronicle, Ring of Wealth (Grand Exchange [2])",
ItemID.VARROCK_TELEPORT);
varrockTele.addAlternates(ItemID.CHRONICLE);
varrockTele.addAlternates(ItemCollections.RING_OF_WEALTHS);
return varrockTele;

ItemRequirement varrockRunes = new ItemRequirements("Varrock teleport runes",
new ItemRequirement("Law rune", ItemID.LAW_RUNE, 1),
new ItemRequirement("Air rune", ItemID.AIR_RUNE, 3),
new ItemRequirement("Water rune", ItemID.WATER_RUNE, 1)
);
return new ItemRequirements(LogicType.OR, "Teleport to Varrock. Varrock teleport tablet/spell, Chronicle, Ring of Wealth (Grand Exchange [2])",
varrockTele, varrockRunes);
}
},
SOPHANEM_TELEPORT()
{
public TeleportItemRequirement getItemRequirement()
public ItemRequirement getItemRequirement()
{
TeleportItemRequirement sophTele = new TeleportItemRequirement("Teleport to Sophanem. Pharaoh's sceptre (Jalsavrah [1])",
ItemCollections.PHAROAH_SCEPTRE);
return sophTele;
}
},
ARDOUGNE_TELEPORT()
{
@Override
public ItemRequirement getItemRequirement()
{
TeleportItemRequirement ardougneTele = new TeleportItemRequirement("Teleport to Ardougne. Ardougne cloak, Ardougne teleport tablet/spell",
ItemCollections.ARDY_CLOAKS);
ardougneTele.addAlternates(ItemID.ARDOUGNE_TELEPORT);

ItemRequirement ardougneRunes = new ItemRequirements("Ardougne teleport runes",
new ItemRequirement("Law rune", ItemID.LAW_RUNE, 2),
new ItemRequirement("Water rune", ItemID.WATER_RUNE, 2)
);
return new ItemRequirements(LogicType.OR, "Teleport to Ardougne. Ardougne cloak, Ardougne teleport tablet/spell", ardougneTele, ardougneRunes);
}
},
FALADOR_TELEPORT()
{
@Override
public ItemRequirement getItemRequirement()
{
TeleportItemRequirement faladorTele = new TeleportItemRequirement("Teleport to Falador. Falador teleport tablet/spell",
ItemID.FALADOR_TELEPORT);

ItemRequirement faladorRunes = new ItemRequirements("Falador teleport runes",
new ItemRequirement("Law rune", ItemID.LAW_RUNE, 1),
new ItemRequirement("Air rune", ItemID.AIR_RUNE, 3),
new ItemRequirement("Water rune", ItemID.WATER_RUNE, 1)
);

return new ItemRequirements(LogicType.OR, "Teleport to Falador. Falador teleport tablet/spell", faladorTele, faladorRunes);
}
};

public abstract TeleportItemRequirement getItemRequirement();
public abstract ItemRequirement getItemRequirement();
}

0 comments on commit 6e02c5a

Please sign in to comment.