Created new turbine

Created turbine which inputs from pipes and motor. Also slightly fixed
currently existing turbine (still unbuildable though).
This commit is contained in:
UristMcKerman
2014-05-26 12:34:46 +04:00
parent 08357b5cb5
commit 2bc475ec41
3 changed files with 7 additions and 0 deletions

View File

@@ -50,6 +50,9 @@
turbine = locate() in get_step(src, get_dir(inturf, src))
if(!turbine)
stat |= BROKEN
else
turbine.stat &= !BROKEN
turbine.compressor = src
#define COMPFRICTION 5e5
@@ -104,6 +107,9 @@
compressor = locate() in get_step(src, get_dir(outturf, src))
if(!compressor)
stat |= BROKEN
else
compressor.stat &= !BROKEN
compressor.turbine = src
#define TURBPRES 9000000