Revision 83018ac4
Added by Leszek Koltunski almost 2 years ago
src/main/java/org/distorted/objects/RubikObjectList.java | ||
---|---|---|
152 | 152 |
// those got remembered in the server-side DB already, so we need to keep using them. This function |
153 | 153 |
// provides a map between 'maxScramble' of an object and its 'dbLevel'. All new objects will have |
154 | 154 |
// those two values the same. |
155 |
// |
|
156 |
// all of those need to be > RubikStatePlay.LEVELS_SHOWN. |
|
155 | 157 |
|
156 | 158 |
public static int getDBLevel(int ordinal) |
157 | 159 |
{ |
... | ... | |
170 | 172 |
if( ordinal== ObjectSignatures.SKEW_3 ) return 17; |
171 | 173 |
if( ordinal== ObjectSignatures.REX_3 ) return 16; |
172 | 174 |
if( ordinal== ObjectSignatures.MIRR_3 ) return 16; |
173 |
if( ordinal== ObjectSignatures.IVY_2 ) return 8;
|
|
174 |
if( ordinal== ObjectSignatures.DIN4_3 ) return 7;
|
|
175 |
if( ordinal== ObjectSignatures.IVY_2 ) return 9;
|
|
176 |
if( ordinal== ObjectSignatures.DIN4_3 ) return 9;
|
|
175 | 177 |
|
176 | 178 |
// in 1.9.6 & 1.9.7 there is a bug with downloadable objects (in this very function!): |
177 | 179 |
// All of those have DBLevel equal to CUBE_3's DBlevel (in 1.9.7!), i.e. 17. |
Also available in: Unified diff
Correct the MAX level in the leaderboard.