From 3055270a7cda08b3ebc9cc38bcd871fb1dd12264 Mon Sep 17 00:00:00 2001
From: kpoppel <poulsen.kim@gmail.com>
Date: Thu, 11 Jul 2013 03:45:56 +0200
Subject: [PATCH] Add nuclear reactor

---
 technic/generator.lua |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/technic/generator.lua b/technic/generator.lua
index 5d3554d..21db4b4 100644
--- a/technic/generator.lua
+++ b/technic/generator.lua
@@ -1,4 +1,4 @@
--- Th coal driven EU generator.
+-- The coal driven EU generator.
 -- A simple device to get started on the electric machines.
 -- Inefficient and expensive in coal (200EU 16 ticks)
 -- Also only allows for LV machinery to run.
@@ -103,6 +103,7 @@
 		     else
 			burn_time = burn_time - 1
 			meta:set_int("burn_time",burn_time)
+			meta:set_string("infotext", "Coal Electric Generator ("..math.floor(burn_time/16*100).."%)")
 		     end
 		  end
 
@@ -119,6 +120,8 @@
 			   meta:set_int("burn_time",burn_time)
 			   hacky_swap_node (pos,"technic:generator_active") 
 			   meta:set_int("LV_EU_supply", 200) -- Give 200EUs
+			else
+			   meta:set_int("LV_EU_supply", 0)
 			end
 		     end
 		  end

--
Gitblit v1.8.0