From 15c91d0e0475ed733fba18cc0dac96f2d448ef64 Mon Sep 17 00:00:00 2001 From: hgw Date: Sat, 7 Oct 2023 11:57:01 +0000 Subject: [PATCH] Add emoji bubbles --- package-lock.json | 2 +- package.json | 2 +- phish.js | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 219565c..756595f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { "name": "phishies", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 1 } diff --git a/package.json b/package.json index 7fbccff..d140083 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "phishies", - "version": "1.2.0", + "version": "1.2.1", "description": "Node.js aquarium generator module", "main": "phish.js", "repository": { diff --git a/phish.js b/phish.js index 14c70ff..aa9eb00 100644 --- a/phish.js +++ b/phish.js @@ -16,7 +16,7 @@ var plant_types = ["๐ŸŒฑ", "๐ŸŒพ", "๐ŸŒฟ"] var rare_bottom_dwellers = ["๐Ÿชจ", "๐ŸŒ", "๐Ÿฐ", "๐Ÿฆ€", "๐Ÿš", "โš“๏ธ", "โ˜˜๏ธ"] var exceedingly_rare_junk = ["๐ŸŽฑ", "๐ŸŽฒ", "๐ŸŽฎ", "๐Ÿ—ฟ", "๐ŸŽท", "๐Ÿ’Ž", "๐Ÿ’ฐ", "๐Ÿ””", "๐Ÿ’€", "๐Ÿ’ฉ"] var super_exceedingly_rare_junk = ["๐Ÿ—ฝ", "๐Ÿ”ฑ", "๐Ÿ›ณ๏ธ"] -var bubbles = ["ยฐ๏พŸ", "ยบ", "๏ฝก"] +var bubbles = ["๐Ÿซง"] // Non-emoji fish var n_fish_types = ["๐“†", "๐“†Ÿ", "๐“†ž", "๐“†œ"] @@ -25,6 +25,7 @@ var n_plant_types = ["๐“†ธ", "๐“‹ผ", "๐–ฅง", "๐“‡—", "๐“‡ฃ"] var n_rare_bottom_dwellers = ["๐“†‘", "๐“†จ"] var n_exceedingly_rare_junk = [] var n_super_exceedingly_rare_junk = ["๐“€๐“‚ธ", "๐“ƒถ", "๐“ƒฑ", "โœˆ"] +var n_bubbles = ["ยฐ๏พŸ", "ยบ", "๏ฝก"] function aquarium(height, width) { aquariumArray = [] @@ -84,7 +85,7 @@ function aquarium_sym(height, width) { if (i != height-1) { for(let i = 0; i < width; i++) { 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) { lineArr.push(n_fish_types[Math.floor(Math.random()*n_fish_types.length)]) } else if (Math.random()*100<2) {