api: add getVarpValue(i)
This commit is contained in:
@@ -804,6 +804,8 @@ public interface Client extends GameShell
|
||||
*/
|
||||
int getVarpValue(int[] varps, int varpId);
|
||||
|
||||
int getVarpValue(int i);
|
||||
|
||||
/**
|
||||
* Sets the value of a given variable.
|
||||
*
|
||||
|
||||
@@ -639,6 +639,13 @@ public abstract class RSClientMixin implements RSClient
|
||||
return varps[varpId];
|
||||
}
|
||||
|
||||
@Inject
|
||||
@Override
|
||||
public int getVarpValue(int varpId)
|
||||
{
|
||||
return getVarpValue(getVarps(), varpId);
|
||||
}
|
||||
|
||||
@Inject
|
||||
@Override
|
||||
public boolean isPrayerActive(Prayer prayer)
|
||||
|
||||
Reference in New Issue
Block a user