change regionToId to constant

This commit is contained in:
Phong940253 2023-08-10 01:00:20 +07:00
parent 37c0818332
commit cf8af7d754
No known key found for this signature in database
GPG Key ID: E1E0260A8DE0C25D

View File

@ -23,6 +23,7 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map;
import java.util.List; import java.util.List;
public class CombineManger extends BaseGameSystem { public class CombineManger extends BaseGameSystem {
@ -148,23 +149,20 @@ public class CombineManger extends BaseGameSystem {
// for yae miko, "Has a 25% chance to get 1 regional Character Talent Material (base // for yae miko, "Has a 25% chance to get 1 regional Character Talent Material (base
// material excluded) when crafting. The rarity is that of the base material." from wiki // material excluded) when crafting. The rarity is that of the base material." from wiki
// map of material id to region id // map of material id to region id
HashMap<Integer, Integer> itemToRegion = Map<Integer, Integer> itemToRegion = Map.of(
new HashMap<>() { 104301, 1,
{ 104304, 1,
put(104301, 1); 104307, 1,
put(104304, 1); 104310, 2,
put(104307, 1); 104313, 2,
put(104310, 2); 104316, 2,
put(104313, 2); 104320, 3,
put(104316, 2); 104323, 3,
put(104320, 3); 104326, 3,
put(104323, 3); 104329, 4,
put(104326, 3); 104332, 4,
put(104329, 4); 104335, 4
put(104332, 4); );
put(104335, 4);
}
};
// get list of material id with every region // get list of material id with every region
HashMap<Integer, List<Integer>> regionToId = new HashMap<>(); HashMap<Integer, List<Integer>> regionToId = new HashMap<>();