Multiple inner classes extracted from LootManager.
This commit is contained in:
1 parent
0bb756521b
commit
fda3386e7b
10 files changed
+161
-132
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package engine.loot;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class GenTable {
|
||||
public ArrayList<GenTableRow> rows = new ArrayList<GenTableRow>();
|
||||
|
||||
public GenTableRow getRowForRange(int roll) {
|
||||
|
||||
GenTableRow outRow = null;
|
||||
|
||||
for (GenTableRow iteration : this.rows)
|
||||
if (roll >= iteration.minRoll && roll <= iteration.maxRoll)
|
||||
outRow = iteration;
|
||||
|
||||
return outRow;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user