v2.1.0: fixed weapon generation calling random() twice
This commit is contained in:
@@ -656,7 +656,6 @@ public class Generator {
|
|||||||
} else {
|
} else {
|
||||||
w = (MeleeWeapon) random(wepTiers[Random.chances(floorSetTierProbs[floorSet])]);
|
w = (MeleeWeapon) random(wepTiers[Random.chances(floorSetTierProbs[floorSet])]);
|
||||||
}
|
}
|
||||||
w.random();
|
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -690,7 +689,6 @@ public class Generator {
|
|||||||
} else {
|
} else {
|
||||||
w = (MissileWeapon)random(misTiers[Random.chances(floorSetTierProbs[floorSet])]);
|
w = (MissileWeapon)random(misTiers[Random.chances(floorSetTierProbs[floorSet])]);
|
||||||
}
|
}
|
||||||
w.random();
|
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user