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:
parent
2d134123de
commit
07ae32ebb5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user