mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-01 02:14:32 +07:00
Created Attributes#getCopy(short) to return a (temp) copy of the specified stat
This commit is contained in:
parent
00f75d014c
commit
ff24b9f516
@ -228,6 +228,11 @@ public final class Attributes implements Iterable<StatRef> {
|
||||
return agg.get(stat);
|
||||
}
|
||||
|
||||
public StatRef getCopy(final short stat) {
|
||||
final StatRef ref = agg.get(stat);
|
||||
return ref != null ? ref.copy() : null;
|
||||
}
|
||||
|
||||
public StatRef set(final short stat, final short srcStat) {
|
||||
return agg.set(stat, srcStat);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user