Enhanced NPC overhead debug

This commit is contained in:
ceikry 2022-07-15 15:32:38 -05:00 committed by Ceikry
parent d4b68d135f
commit a8e211b5d4
4 changed files with 8 additions and 8 deletions

View file

@ -132,7 +132,7 @@ public final class Npc extends PathingEntity {
@OriginalMember(owner = "client!km", name = "b", descriptor = "(I)I")
@Override
protected final int getBasId() {
public final int getBasId() {
if (client.game != 0 && this.type.multiNpcs != null) {
@Pc(17) NpcType local17 = this.type.getMultiNpc();
if (local17 != null && local17.bastypeid != -1) {

View file

@ -628,7 +628,7 @@ public abstract class PathingEntity extends Entity {
}
@OriginalMember(owner = "client!fe", name = "b", descriptor = "(I)I")
protected abstract int getBasId();
public abstract int getBasId();
@OriginalMember(owner = "client!fe", name = "c", descriptor = "(I)V")
public final void method2689() {

View file

@ -300,7 +300,7 @@ public final class Player extends PathingEntity {
@OriginalMember(owner = "client!e", name = "b", descriptor = "(I)I")
@Override
protected final int getBasId() {
public final int getBasId() {
return this.anInt3365;
}

View file

@ -31,13 +31,13 @@ public class plugin extends Plugin {
String npcSb =
(npc.type.name.strEquals(JagString.parse("null"))
? npc.type.getMultiNpc() != null
? "Wrapper [" + npc.type.getMultiNpc().name + " " + npc.type.getMultiNpc().id + "]"
? "Wrapper [" + npc.type.getMultiNpc().name + "]"
: "Wrapper"
: npc.type.name) +
" [Lvl: " +
npc.type.combatLevel +
"] [ID: " +
npc.type.id +
" [G: " +
npc.spotAnimId +
"] [R: " + npc.getBasId() +
"] [A: " + npc.seqId +
"] [Vb: " +
npc.type.multiNpcVarbit + "]";