From c6059d30e83e52fd08651ef42b557bc63bf8134a Mon Sep 17 00:00:00 2001 From: hgw Date: Tue, 3 Oct 2023 04:02:35 +0000 Subject: [PATCH] Add bubbles & rarer debris --- phish.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/phish.js b/phish.js index 251a1fd..216e6e2 100644 --- a/phish.js +++ b/phish.js @@ -13,7 +13,9 @@ var fish_types = ["๐ŸŸ", "๐Ÿก", "๐Ÿ "] var rare_swimmer_types = ["๐Ÿ™", "๐Ÿฌ", "๐Ÿฆ‘", "๐Ÿฆˆ"] var plant_types = ["๐ŸŒฑ", "๐ŸŒพ", "๐ŸŒฟ"] var rare_bottom_dwellers = ["๐Ÿชจ", "๐ŸŒ", "๐Ÿฐ", "๐Ÿฆ€", "๐Ÿš", "โš“๏ธ", "โ˜˜๏ธ"] -var exceedingly_rare_junk = ["๐ŸŽฑ", "๐ŸŽฒ", "๐ŸŽฎ", "๐Ÿ—ฟ","๐Ÿ”ฑ", "๐ŸŽท", "๐Ÿ—ฝ", "๐Ÿ’Ž", "๐Ÿ’ฐ", "๐Ÿ””", "๐Ÿ’€", "๐Ÿ’ฉ"] +var exceedingly_rare_junk = ["๐ŸŽฑ", "๐ŸŽฒ", "๐ŸŽฎ", "๐Ÿ—ฟ", "๐ŸŽท", "๐Ÿ’Ž", "๐Ÿ’ฐ", "๐Ÿ””", "๐Ÿ’€", "๐Ÿ’ฉ"] +var super_exceedingly_rare_junk = ["๐Ÿ—ฝ", "๐Ÿ”ฑ", "๐Ÿ›ณ๏ธ"] +var bubbles = ["ยฐ๏พŸ", "ยบ", "๏ฝก"] function aquarium(height, width) { aquariumArray = [] @@ -25,9 +27,12 @@ function aquarium(height, width) { } for(let i = 0; i < height; i++) { lineArr = [] + var heightLine = i if (i != height-1) { for(let i = 0; i < width; i++) { - if (Math.random()*100<10) { + if ([0,1].includes(heightLine) && Math.random()*100<7) { + lineArr.push(bubbles[Math.floor(Math.random()*bubbles.length)]) + } else if (Math.random()*100<10) { lineArr.push(fish_types[Math.floor(Math.random()*fish_types.length)]) } else if (Math.random()*100<2) { lineArr.push(rare_swimmer_types[Math.floor(Math.random()*rare_swimmer_types.length)]) @@ -44,6 +49,8 @@ function aquarium(height, width) { lineArr.push(rare_bottom_dwellers[Math.floor(Math.random()*rare_bottom_dwellers.length)]) } else if (Math.random()*100<0.5) { lineArr.push(exceedingly_rare_junk[Math.floor(Math.random()*exceedingly_rare_junk.length)]) + } else if (Math.random()*100<0.25) { + lineArr.push(super_exceedingly_rare_junk[Math.floor(Math.random()*super_exceedingly_rare_junk.length)]) } else { lineArr.push('ใ€€') }