v0.3.0: refactored ring randomization, which has been broken since 0.2.0(rings capped at +1 instead of +2, oops!)

This commit is contained in:
Evan Debenham 2015-03-31 09:52:49 -04:00 committed by Evan Debenham
parent 2d134123de
commit 07ae32ebb5

View File

@ -247,11 +247,16 @@ public class Ring extends KindofMisc {
@Override
public Item random() {
int n = 1;
if (Random.Int(3) == 0)
n++;
if (Random.Float() < 0.3f) {
level = -Random.Int( 1, 3 );
level = -n;
cursed = true;
} else
level = Random.Int( 1, 2 );
level = n;
return this;
}