Def cleanup (#585)

* Object definition cleanup

* Update ShopAssistant.java

* stackables

* notables

* unused files

* more junk

* almost done

* working

* moving old methods to deprecated

* update

* fixed pickpocket typos

* Update Pickpocket.java

* Remove redundant method. Fix stall stealing

* Documentation for deprecated methods

* WIP commit partial removal. Has test and dump classes

* Final cleanup

* Move definitions from data folder to cfg

* Temporarily moving definition loaders to GameEngine

This is until loading can be done asynchronously.

* Correct indentation.
This commit is contained in:
MatthewBishop authored and GitHub committed 2023-02-05 22:30:29 +00:00
1 parent b2212d357e
commit eab153ee3f
98 files changed
+21771 -285672

No files matched your search

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