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

@@ -1,7 +1,7 @@
package com.rebotted.game.objects;
import com.rebotted.game.players.Player;
import com.rebotted.world.clip.ObjectDef;
import com.rebotted.world.clip.ObjectDefinition;
/**
* ObjectDefaults
@@ -17,7 +17,7 @@ public class ObjectDefaults {
WEST = 3;
public static int getObjectType(Player player, int objectType) {
String objectName = ObjectDef.getObjectDef(objectType).name;
String objectName = ObjectDefinition.getObjectDef(objectType).name;
if (objectName.contains("Wardrobe") || objectName.contains("chest") || objectName.contains("Cupboard") || objectName.contains("Coffin")) {
return 10;
} else if (objectName.contains("Curtain")) {