Add emoji bubbles

This commit is contained in:
hgw 2023-10-07 11:57:01 +00:00
parent cf67aa740e
commit 15c91d0e04
Signed by: hgw
SSH Key Fingerprint: SHA256:diG7RVYHjd3aDYkZWHYcBJbImu+6zfptuUP+3k/wol4
3 changed files with 5 additions and 4 deletions

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{ {
"name": "phishies", "name": "phishies",
"version": "1.2.0", "version": "1.2.1",
"lockfileVersion": 1 "lockfileVersion": 1
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "phishies", "name": "phishies",
"version": "1.2.0", "version": "1.2.1",
"description": "Node.js aquarium generator module", "description": "Node.js aquarium generator module",
"main": "phish.js", "main": "phish.js",
"repository": { "repository": {

View File

@ -16,7 +16,7 @@ var plant_types = ["🌱", "🌾", "🌿"]
var rare_bottom_dwellers = ["🪨", "🐌", "🏰", "🦀", "🐚", "⚓️", "☘️"] var rare_bottom_dwellers = ["🪨", "🐌", "🏰", "🦀", "🐚", "⚓️", "☘️"]
var exceedingly_rare_junk = ["🎱", "🎲", "🎮", "🗿", "🎷", "💎", "💰", "🔔", "💀", "💩"] var exceedingly_rare_junk = ["🎱", "🎲", "🎮", "🗿", "🎷", "💎", "💰", "🔔", "💀", "💩"]
var super_exceedingly_rare_junk = ["🗽", "🔱", "🛳️"] var super_exceedingly_rare_junk = ["🗽", "🔱", "🛳️"]
var bubbles = ["°゚", "º", "。"] var bubbles = ["🫧"]
// Non-emoji fish // Non-emoji fish
var n_fish_types = ["𓆝", "𓆟", "𓆞", "𓆜"] var n_fish_types = ["𓆝", "𓆟", "𓆞", "𓆜"]
@ -25,6 +25,7 @@ var n_plant_types = ["𓆸", "𓋼", "𖥧", "𓇗", "𓇣"]
var n_rare_bottom_dwellers = ["𓆑", "𓆨"] var n_rare_bottom_dwellers = ["𓆑", "𓆨"]
var n_exceedingly_rare_junk = [] var n_exceedingly_rare_junk = []
var n_super_exceedingly_rare_junk = ["𓀐𓂸", "𓃶", "𓃱", "✈"] var n_super_exceedingly_rare_junk = ["𓀐𓂸", "𓃶", "𓃱", "✈"]
var n_bubbles = ["°゚", "º", "。"]
function aquarium(height, width) { function aquarium(height, width) {
aquariumArray = [] aquariumArray = []
@ -84,7 +85,7 @@ function aquarium_sym(height, width) {
if (i != height-1) { if (i != height-1) {
for(let i = 0; i < width; i++) { for(let i = 0; i < width; i++) {
if ([0,1].includes(heightLine) && Math.random()*100<7) { if ([0,1].includes(heightLine) && Math.random()*100<7) {
lineArr.push(bubbles[Math.floor(Math.random()*bubbles.length)]) lineArr.push(n_bubbles[Math.floor(Math.random()*n_bubbles.length)])
} else if (Math.random()*100<10) { } else if (Math.random()*100<10) {
lineArr.push(n_fish_types[Math.floor(Math.random()*n_fish_types.length)]) lineArr.push(n_fish_types[Math.floor(Math.random()*n_fish_types.length)])
} else if (Math.random()*100<2) { } else if (Math.random()*100<2) {