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:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -247,13 +247,17 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user