mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Added static getter Stat#index(String) to get stat id from String name
This commit is contained in:
parent
a3b3840b20
commit
948f1a189c
@ -391,6 +391,10 @@ public class Stat {
|
||||
return Riiablo.files.ItemStatCost.get(stat);
|
||||
}
|
||||
|
||||
static short index(String stat) {
|
||||
return (short) Riiablo.files.ItemStatCost.index(stat);
|
||||
}
|
||||
|
||||
static boolean hasParams(short stat) {
|
||||
final ItemStatCost.Entry entry = entry(stat);
|
||||
return entry.Encode >= 1 && entry.Encode <= 3; // TODO: determine if stat requires params
|
||||
|
Loading…
Reference in New Issue
Block a user