Some quick patches (#398)

- Bank all should now work for all items again
- Fixed al kharid gate not functioning
- Added unique cabbage pickable for Falador
- Fixed desert disguise wrongly being noted
- Reformatted some of the food code

Closes #397
Closes #395

(I also included @Qweqker changes so that will fix lumbridge bank boundary and adds his new cabbage effect)

Co-authored-by: Daniel Ginovker <dcress01@uoguelph.ca>
This commit is contained in:
Mr ExtremezandDaniel Ginovker authored and GitHub committed 2020-03-13 20:36:20 -04:00
1 parent f9a9eae356
commit 5706bc9853
19 files changed
+221 -218

No files matched your search

@@ -48,7 +48,7 @@ public class OtherObjects {
return;
}
if (openKharid(player, objectId)) {
GameEngine.objectHandler.createAnObject(player, -1, player.objectX, player.objectY, -1);
//GameEngine.objectHandler.createAnObject(player, -1, player.objectX, player.objectY, -1);
final int[] coords = new int[2];
if (player.getX() == 3267) {
player.getPlayerAssistant().movePlayer(player.getX() + 1, player.getY(), 0);
@@ -6,6 +6,7 @@ import com.rebotted.event.CycleEventContainer;
import com.rebotted.event.CycleEventHandler;
import com.rebotted.game.content.music.sound.SoundList;
import com.rebotted.game.players.Player;
import com.rebotted.world.Boundary;
/**
* Pickables
@@ -18,7 +19,10 @@ public class Pickable {
{ 1161, 1965 }, // Cabbage
{ 2646, 1779 }, // Flax
{ 313, 1947 }, // Wheat
{ 5585, 1947 }, { 5584, 1947 }, { 5585, 1947 }, { 312, 1942 }, // Potato
{ 5585, 1947 }, // Wheat
{ 5584, 1947 }, // Wheat
{ 5585, 1947 }, // Wheat
{ 312, 1942 }, // Potato
{ 3366, 1957 }, // Onion
};
@@ -30,7 +34,11 @@ public class Pickable {
final int objectId = data[0];
int itemId = data[1];
if (objectType == objectId) {
player.getItemAssistant().addItem(itemId, 1);
if (objectType == 1161 && Boundary.isIn(player, Boundary.FALADOR)) {//Cabbage falador
player.getItemAssistant().addItem(1967, 1);
} else {
player.getItemAssistant().addItem(itemId, 1);
}
break;
}
}