From eefec5adeaf3c52492a1e63baec4e424326371a7 Mon Sep 17 00:00:00 2001 From: CarbonMonoxida <164758530+CarbonMonoxida@users.noreply.github.com> Date: Thu, 28 Mar 2024 17:39:44 +0700 Subject: [PATCH] Update CoCpu.js Changelog -Add CO detector -Remove Conductivity at CPU and Computer until found the problem --- mods/CoCpu.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/mods/CoCpu.js b/mods/CoCpu.js index f9ddbc15..fff2ff58 100644 --- a/mods/CoCpu.js +++ b/mods/CoCpu.js @@ -67,10 +67,24 @@ elements.computer = { density: 8908, tempHigh: 1414, stateHigh: "explosion", - conduct: 1, reactions: { "virus": { elem1 : null , elem2:"malware", chance:0.9 }, "water": { elem1: null , elem2: "electric" }, } }; - +elements.carbon_monoxide_detector = { + behavior: behaviors.WALL, + desc: "give red light and electric when found Carbon Monoxide touch", + color: "#ffffff", + reactions: { + "carbon_monoxide": {"charge1":1}, + }, + conduct: 1, + tempHigh: 1550, + stateHigh: ["molten_metal_scrap","electric","molten_plastic"], + colorOn: "#ff0000", + movable: false, + category:"machines", + darkText: true, + hardness: 1, +};