From f5da4e6af36ff1fdad4a11b43b4cb6dd34895ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Thu, 14 Nov 2013 22:31:10 +0100 Subject: [PATCH] made power supply configurable --- li/cil/oc/Config.scala | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/li/cil/oc/Config.scala b/li/cil/oc/Config.scala index 21262b615..8f8103a02 100644 --- a/li/cil/oc/Config.scala +++ b/li/cil/oc/Config.scala @@ -17,11 +17,15 @@ object Config { // ----------------------------------------------------------------------- // var ignorePower = false + var bufferConverter = 100.0 var bufferCapacitor = 50.0 + var bufferPowerSupply = 20.0 + var computerCost = 1.0 var hddReadCost = 1.0 / 1600.0 var hddWriteCost = 1.0 / 800.0 + var powerSupplyCost = -1.25 var screenFillCost = 1.0 / 100 var screenClearCost = 1.0 / 400 var screenCopyCost = 1.0 / 200 @@ -138,6 +142,10 @@ object Config { "The amount of energy a power converter can store."). getDouble(bufferConverter) max 0 + bufferPowerSupply = config.get("power.buffer", "bufferPowerSupply", bufferPowerSupply, "" + + "The amount of energy a power supply can store."). + getDouble(bufferPowerSupply) max 0 + // --------------------------------------------------------------------- // computerCost = config.get("power.cost", "computerCost", computerCost, "" + @@ -154,6 +162,14 @@ object Config { "Energy it takes to write a single byte to a file system."). getDouble(hddWriteCost) max 0 + powerSupplyCost = config.get("power.cost", "powerSupplyCost", powerSupplyCost, "" + + "The amount of energy a power supply (item) produces per tick. This is\n" + + "basically just a consumer, but instead of taking energy it puts it\n" + + "back into the network. This is slightly more than what a computer\n" + + "consumes per tick. It's meant as an easy way to powering a small\n" + + "setup, mostly for testing. "). + getDouble(powerSupplyCost) + screenFillCost = config.get("power.cost", "screenFillCost", screenFillCost, "" + "Energy it takes to change a single pixel via the fill command. This\n" + "means the total cost of the fill command will be its area times this.").