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;
|
int n = 1;
|
||||||
if (Random.Int( 3 ) == 0) {
|
if (Random.Int( 3 ) == 0) {
|
||||||
n++;
|
n++;
|
||||||
if (Random.Int( 3 ) == 0) {
|
if (Random.Int( 5 ) == 0) {
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -248,8 +248,12 @@ public class Ring extends KindofMisc {
|
|||||||
@Override
|
@Override
|
||||||
public Item random() {
|
public Item random() {
|
||||||
int n = 1;
|
int n = 1;
|
||||||
if (Random.Int(3) == 0)
|
if (Random.Int(3) == 0) {
|
||||||
n++;
|
n++;
|
||||||
|
if (Random.Int(5) == 0){
|
||||||
|
n++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Random.Float() < 0.3f) {
|
if (Random.Float() < 0.3f) {
|
||||||
level = -n;
|
level = -n;
|
||||||
|
|||||||
@@ -247,13 +247,17 @@ public abstract class Wand extends Item {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Item random() {
|
public Item random() {
|
||||||
if (Random.Float() < 0.5f) {
|
int n = 0;
|
||||||
upgrade();
|
|
||||||
if (Random.Float() < 0.15f) {
|
if (Random.Int(2) == 0) {
|
||||||
upgrade();
|
n++;
|
||||||
|
if (Random.Int(5) == 0) {
|
||||||
|
n++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upgrade( n );
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ public class Weapon extends KindOfWeapon {
|
|||||||
int n = 1;
|
int n = 1;
|
||||||
if (Random.Int( 3 ) == 0) {
|
if (Random.Int( 3 ) == 0) {
|
||||||
n++;
|
n++;
|
||||||
if (Random.Int( 3 ) == 0) {
|
if (Random.Int( 5 ) == 0) {
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user