api: add getVarpValue(i)

This commit is contained in:
therealunull
2020-12-16 08:37:10 -05:00
parent da96331491
commit 39d0c2e15a
2 changed files with 9 additions and 0 deletions

View File

@@ -804,6 +804,8 @@ public interface Client extends GameShell
*/ */
int getVarpValue(int[] varps, int varpId); int getVarpValue(int[] varps, int varpId);
int getVarpValue(int i);
/** /**
* Sets the value of a given variable. * Sets the value of a given variable.
* *

View File

@@ -639,6 +639,13 @@ public abstract class RSClientMixin implements RSClient
return varps[varpId]; return varps[varpId];
} }
@Inject
@Override
public int getVarpValue(int varpId)
{
return getVarpValue(getVarps(), varpId);
}
@Inject @Inject
@Override @Override
public boolean isPrayerActive(Prayer prayer) public boolean isPrayerActive(Prayer prayer)