v0.3.0: tweaked random levelling. Rings can be +3 again, armor/wep less likely to be +3, wands slightly more likely to be +2

This commit is contained in:
Evan Debenham
2015-05-21 01:09:59 -04:00
parent a2c4e2474b
commit d515b9c2f9
4 changed files with 15 additions and 7 deletions
@@ -247,12 +247,16 @@ public abstract class Wand extends Item {
@Override
public Item random() {
if (Random.Float() < 0.5f) {
upgrade();
if (Random.Float() < 0.15f) {
upgrade();
int n = 0;
if (Random.Int(2) == 0) {
n++;
if (Random.Int(5) == 0) {
n++;
}
}
upgrade( n );
return this;
}