Compare commits
No commits in common. "baf4bc279d7fc63193e2071322982649fffdeea7" and "e8f1b5fb4a69915adf51258d2a524a289ef37a27" have entirely different histories.
baf4bc279d
...
e8f1b5fb4a
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "phishies",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "phishies",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.0",
|
||||
"description": "Node.js aquarium generator module",
|
||||
"main": "phish.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.supernets.org/hgw/phishies.git"
|
||||
"url": "https://git.supernets.org/hgw/phish2.git"
|
||||
},
|
||||
"author": "hgw",
|
||||
"license": "ISC",
|
||||
|
8
phish.js
8
phish.js
@ -27,9 +27,9 @@ function aquarium(height, width) {
|
||||
lineArr = []
|
||||
if (i != height-1) {
|
||||
for(let i = 0; i < width; i++) {
|
||||
if (Math.random()*100<10) {
|
||||
if (Math.random()*100<13) {
|
||||
lineArr.push(fish_types[Math.floor(Math.random()*fish_types.length)])
|
||||
} else if (Math.random()*100<2) {
|
||||
} else if (Math.random()*100<3) {
|
||||
lineArr.push(rare_swimmer_types[Math.floor(Math.random()*rare_swimmer_types.length)])
|
||||
} else {
|
||||
lineArr.push(' ')
|
||||
@ -40,9 +40,9 @@ function aquarium(height, width) {
|
||||
for(let i = 0; i < width; i++) {
|
||||
if (Math.random()*100<30) {
|
||||
lineArr.push(plant_types[Math.floor(Math.random()*plant_types.length)])
|
||||
} else if (Math.random()*100<2) {
|
||||
} else if (Math.random()*100<20) {
|
||||
lineArr.push(rare_bottom_dwellers[Math.floor(Math.random()*rare_bottom_dwellers.length)])
|
||||
} else if (Math.random()*100<0.5) {
|
||||
} else if (Math.random()*100<1) {
|
||||
lineArr.push(exceedingly_rare_junk[Math.floor(Math.random()*exceedingly_rare_junk.length)])
|
||||
} else {
|
||||
lineArr.push(' ')
|
||||
|
Loading…
Reference in New Issue
Block a user