A few things (#401)

- Can't attack players or npcs through doors/walls anymore
- Cleaned up a few small bits of code
- Added a few new boundaries to the boundary system
- Removed dialogue asking are you sure you want to empty your inventory for admins
This commit is contained in:
Mr Extremez authored and GitHub committed 2020-04-10 20:03:28 -04:00
1 parent 43f4b14dbf
commit b4371d3129
19 files changed
+130 -183

No files matched your search

@@ -4,7 +4,7 @@ import com.rebotted.event.CycleEvent;
import com.rebotted.event.CycleEventContainer;
import com.rebotted.event.CycleEventHandler;
import com.rebotted.game.players.Player;
import com.rebotted.world.clip.ObjectDef;
import com.rebotted.world.clip.ObjectDefinition;
/**
* Levers
@@ -22,7 +22,7 @@ public class Levers {
};
public static void pullLever(final Player player, int objectType) {
String objectName = ObjectDef.getObjectDef(objectType).name;
String objectName = ObjectDefinition.getObjectDef(objectType).name;
for (final int[] element : LEVERS) {
if (player.objectX == element[0] && player.objectY == element[1] && objectName.equalsIgnoreCase("Lever")) {
if (System.currentTimeMillis() - player.leverDelay > 3750) {
@@ -8,7 +8,7 @@ import com.rebotted.game.content.traveling.DesertHeat;
import com.rebotted.game.objects.ObjectDefaults;
import com.rebotted.game.players.Player;
import com.rebotted.util.Misc;
import com.rebotted.world.clip.ObjectDef;
import com.rebotted.world.clip.ObjectDefinition;
import com.rebotted.world.clip.Region;
public class OtherObjects {
@@ -117,7 +117,7 @@ public class OtherObjects {
}
private static void handleSpecialObject(final Player player, final int objectType) {
String objectName = ObjectDef.getObjectDef(objectType).name;
String objectName = ObjectDefinition.getObjectDef(objectType).name;
if (objectType == 160 && player.getX() == 3096) {
player.getPlayerAssistant().walkTo(0, 1);
CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() {