Telekinetic grab and stuff (#508)

* tidy up

* Tidy up check for space

* Telekinetic base

* Don't allow player to pickup statue

* Tidy up item pickup

* fixup, statue spawn

* Update telekinetic grab

* 2nd option for guardian statue

* handle telegrab on statue

* Allow picking up global drops with telekinetic grab

* Check if player can see/reach item

* Update PickupItem.java

* Allow pasting into chatbox

* camera stuff

* fixup clipboard stuff

* Update PlayerAssistant.java

* Update Commands.java

* Add mazes initial

* Tidy up the clipboard pasting

* Update mazes

* Calculate new position of statue

* fixup telegrab

* More tidy up, remove constant running of container

* more tidy up..

* Handle moving statues

* remove the statue from global drops

* Update MagicOnFloorItems.java

* Show telekinetic interface

* Make public accessable

* Only show items to player that are on the same height level

* Moving statues around, Spawning

* Reward exp, points, law runes

* Show points, mazes completed

* Add comment

* Add observable statue (still needs work)

* Fixup where camera focuses

* Load items when player changes level

* Graveyard base

* Add a couple more checks

* Update Player.java

* Update Commands.java

* Make sure statue is visible when player appears at maze

* [Mage training arena] Graveyard

* Update MageTrainingArena.java

* Update MageTrainingArena.java

* Update ItemHandler.java
This commit is contained in:
Danial authored and GitHub committed 2021-10-05 04:01:16 +01:00
1 parent c526aa5f4d
commit 2d8ae82086
22 files changed
+719 -193

No files matched your search

@@ -146,9 +146,9 @@ public class GlobalDropsHandler {
return null;
}
public static boolean itemExists(int a, int b, int c, boolean yes) {
public static boolean itemExists(int itemID, int itemX, int itemY, boolean yes) {
for (GlobalDrop drop : spawnedDrops) {
if (drop.getId() == a && drop.getX() == b && drop.getY() == c) {
if (drop.getId() == itemID && drop.getX() == itemX && drop.getY() == itemY) {
return true;
}
}
@@ -159,12 +159,12 @@ public class GlobalDropsHandler {
* Pick up an item at the given location
*
* @param player the Player
* @param a item id
* @param b cord x
* @param c cord y
* @param itemID item id
* @param itemX cord x
* @param itemY cord y
*/
public static void pickup(Player player, int a, int b, int c) {
GlobalDrop drop = itemExists(a, b, c);
public static void pickup(Player player, int itemID, int itemX, int itemY) {
GlobalDrop drop = itemExists(itemID, itemX, itemY);
if (drop == null) {
return;
}