Changed Rarity
This commit is contained in:
@ -91,10 +91,10 @@ function createEntity(x, y, vx, vy, ax, ay, rot, rotv, type, id=0, iframes=Math.
|
|||||||
|
|
||||||
function getRandomType(){
|
function getRandomType(){
|
||||||
let rand = Math.random();
|
let rand = Math.random();
|
||||||
if (rand > 0.955){
|
if (rand > 0.99){
|
||||||
if(Settings.devMode) console.log("Comet made");
|
if(Settings.devMode) console.log("Comet made");
|
||||||
return entityTypes.COMET;
|
return entityTypes.COMET;
|
||||||
}if(rand > 0.4){
|
}if(rand > 0.5){
|
||||||
return entityTypes.METERORITE_SMALL;
|
return entityTypes.METERORITE_SMALL;
|
||||||
}else{
|
}else{
|
||||||
return entityTypes.METERORITE_LARGE;
|
return entityTypes.METERORITE_LARGE;
|
||||||
|
|||||||
Reference in New Issue
Block a user