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

View File

@ -257,7 +257,7 @@ public class Armor extends EquipableItem {
int n = 1;
if (Random.Int( 3 ) == 0) {
n++;
if (Random.Int( 3 ) == 0) {
if (Random.Int( 5 ) == 0) {
n++;
}
}

View File

@ -248,8 +248,12 @@ public class Ring extends KindofMisc {
@Override
public Item random() {
int n = 1;
if (Random.Int(3) == 0)
if (Random.Int(3) == 0) {
n++;
if (Random.Int(5) == 0){
n++;
}
}
if (Random.Float() < 0.3f) {
level = -n;

View File

@ -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;
}

View File

@ -191,7 +191,7 @@ public class Weapon extends KindOfWeapon {
int n = 1;
if (Random.Int( 3 ) == 0) {
n++;
if (Random.Int( 3 ) == 0) {
if (Random.Int( 5 ) == 0) {
n++;
}
}