From 55a1541f4e5c81cbb76ab3ac689d51c184f7a25f Mon Sep 17 00:00:00 2001 From: DaviStudios <112717418+DaviStudios@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:24:05 +0300 Subject: [PATCH] Add files via upload --- mods/kopalsBar.js | 68 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 62 insertions(+), 6 deletions(-) diff --git a/mods/kopalsBar.js b/mods/kopalsBar.js index f50f2f54..93d52140 100644 --- a/mods/kopalsBar.js +++ b/mods/kopalsBar.js @@ -13,6 +13,7 @@ elements.yeast = { 'water': {elem2: 'beer', chance: 0.05}, 'juice': {elem2: 'wine', chance: 0.05}, 'sugar_water': {elem2: 'rum', chance: 0.05}, + 'white_juice': {elem2: 'white_wine', chance: 0.05}, } } @@ -20,7 +21,10 @@ const drinks = [ 'beer', 'wine', 'vodka', - 'rum' + 'rum', + 'white_wine', + 'white_juice', + 'white_grape' ] const ings = [ @@ -57,13 +61,28 @@ elements.wine = { state: 'solid', tempHigh: 78, density: 997, + stain: 0.1, stateHigh: ['steam', 'alcohol'], reactions: { 'juice': {elem2: 'wine', chance: 0.0125} } } -elements.vodka = { +elements.white_wine = { + color: ['#FAD689', '#F8E3A1'], + behavior: behaviors.LIQUID, + category: 'bar', + state: 'solid', + tempHigh: 78, + density: 997, + stain: 0.1, + stateHigh: ['steam', 'alcohol'], + reactions: { + 'white_juice': {elem2: 'white_wine', chance: 0.0125} + } +} + +elements.vodka = { color: ['#FFFFFF', '#FFFACD'], behavior: behaviors.LIQUID, category: 'bar', @@ -76,12 +95,13 @@ elements.vodka = { } } -elements.rum = { +elements.rum = { color: ['#A0522D', '#8B4513'], behavior: behaviors.LIQUID, category: 'bar', state: 'solid', tempHigh: 78, + stain: 0.05, density: 997, stateHigh: ['steam', 'alcohol'], reactions: { @@ -89,6 +109,40 @@ elements.rum = { } } +elements.white_juice = { + color: ['#F8F0C6', '#F7E7A9'], + behavior: behaviors.LIQUID, + category: 'liquids', + state: 'solid', + tempHigh: 130, + density: elements.juice.density, + movable: true, + stateHigh: 'steam', +} + +elements.white_grape = { + color: ['#D0F0C0', '#B2E68D'], + behavior: elements.grape.behavior, + category: 'food', + density: 1154, + state: 'solid', + stateHigh: ['steam', 'sugar'], + breakInto: 'white_juice', + tempHigh: 256, + reactions: { + 'acid': {elem1: 'white_juice', chance: 0.1}, + 'acid_gas': {elem1: 'white_juice', chance: 0.1}, + 'basalt': {elem1: 'white_juice', chance: 0.1}, + 'concrete': {elem1: 'white_juice', chance: 0.1}, + 'limestone': {elem1: 'white_juice', chance: 0.1}, + 'radiation': {elem1: 'white_juice', chance: 0.1}, + 'rock': {elem1: 'white_juice', chance: 0.1}, + 'tuff': {elem1: 'white_juice', chance: 0.1}, + 'water': {elem1: 'white_juice', chance: 0.005}, + 'sugar_water': {elem1: 'white_juice', chance: 0.025}, + } +} + elements.ingredient_eater = { color: ['#AD9166', '#9A7F4E', '#D8BB8D'], tool: function(pixel) { @@ -100,7 +154,7 @@ elements.ingredient_eater = { desc: "Removes ingredients." } -elements.drinker = { +elements.consumer = { color: ['#FFD700', '#F4E541', '#7B1113', '#8D021F'], tool: function(pixel) { if (drinks.includes(pixel.element)) { @@ -108,7 +162,7 @@ elements.drinker = { } }, category: "tools", - desc: "Drinks alcohol." + desc: "Consumes stuff like juice 'n beer." } for (const elem in drinks) { @@ -116,4 +170,6 @@ for (const elem in drinks) { } elements.mashed_potato.reactions = {} -elements.mashed_potato.reactions['water'] = {elem2: 'vodka', chance: 0.05} \ No newline at end of file +elements.mashed_potato.reactions['water'] = {elem2: 'vodka', chance: 0.05} +elements.grape.color = ['#7D1538', '#6F2DA8'] +elements.grape.breakIntoColor = '#4B0082' \ No newline at end of file