Fixed All Fired Up beacon repairs not persisting
This commit is contained in:
@@ -15,7 +15,10 @@ import org.rs09.consts.Items
|
||||
* @author Ceikry
|
||||
*/
|
||||
@Initializable
|
||||
class AllFiredUp : Quest(Quests.ALL_FIRED_UP, 157, 156, 1){
|
||||
class AllFiredUp : Quest(Quests.ALL_FIRED_UP, 157, 156, 1,
|
||||
1282 /*this is actually unused*/,
|
||||
5133 /*source: ::varbits 1282, after trial and error confirmed that I need ::setvarp 1282 0 QUEST_STAGE*/,
|
||||
0, 1, 90) { //not started -- in progress -- completed
|
||||
override fun newInstance(`object`: Any?): Quest {
|
||||
return this
|
||||
}
|
||||
@@ -152,10 +155,4 @@ class AllFiredUp : Quest(Quests.ALL_FIRED_UP, 157, 156, 1){
|
||||
AFUBeacon.resetAllBeacons(player)
|
||||
player.questRepository.syncronizeTab(player)
|
||||
}
|
||||
|
||||
override fun getConfig(player: Player?, stage: Int): IntArray {
|
||||
if(stage == 100) return intArrayOf(1282, 90)
|
||||
if(stage > 0) return intArrayOf(1282, 1)
|
||||
else return intArrayOf(1282, 0)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,10 +124,4 @@ class FamilyCrest: Quest(Quests.FAMILY_CREST, 59, 58, 1, 148, 0, 1, 11) {
|
||||
}
|
||||
setAttribute(player, "/save:family-crest:gauntlets", Items.FAMILY_GAUNTLETS_778)
|
||||
}
|
||||
|
||||
/*override fun getConfig(player: Player?, stage: Int): IntArray {
|
||||
if(stage == 100) return intArrayOf(1282, 90)
|
||||
if(stage > 0) return intArrayOf(1282, 1)
|
||||
else return intArrayOf(1282, 0)
|
||||
}*/
|
||||
}
|
||||
|
||||
@@ -337,14 +337,6 @@ public abstract class Quest implements Plugin<Object> {
|
||||
return questPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the configs.
|
||||
* @return the configs.
|
||||
*/
|
||||
public int[] getConfigs() {
|
||||
return configs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Quest [name=" + quest + ", index=" + index + ", buttonId=" + buttonId + ", questPoints=" + questPoints + ", configs=" + Arrays.toString(configs) + "]";
|
||||
|
||||
Reference in New Issue
Block a user