1
This commit is contained in:
parent
8faaf30305
commit
049b75a767
@ -70,12 +70,12 @@ class Fragment {
|
||||
return;
|
||||
}
|
||||
const allocedFragments = new Map();
|
||||
allocedFragments.set(0, new Map());
|
||||
allocedFragments.set(1, new Map());
|
||||
allocedFragments.set(PVP_TYPE, new Map());
|
||||
allocedFragments.set(PVE_TYPE, new Map());
|
||||
rows.forEach(
|
||||
(element) => {
|
||||
if (element['type'] == 0 ||
|
||||
element['type'] == 1) {
|
||||
if (element['type'] == PVP_TYPE ||
|
||||
element['type'] == PVE_TYPE) {
|
||||
const data = allocedFragments.get(element['type']);
|
||||
if (data) {
|
||||
const num = Math.max(0, element['alloc_num'] - element['fragment_num']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user