1
0
鏡像自 https://github.com/minetest-mods/technic.git 已同步 2025-09-18 13:40:35 +02:00

correction amount of energy produced

I correct amount of energy produced with descripton value.
此提交包含在:
kol0
2013-07-30 11:30:12 +02:00
父節點 50b8aed01c
當前提交 57dc8904a0

查看文件

@@ -64,7 +64,7 @@ minetest.register_abm(
if light >= 12 and time_of_day>=0.24 and time_of_day<=0.76 and pos.y > -10 then
local charge_to_give = math.floor(light*(light*9.6+pos1.y/130*48))
if charge_to_give<0 then charge_to_give=0 end
if charge_to_give>160 then charge_to_give=160 end
if charge_to_give>2880 then charge_to_give=2880 end
meta:set_string("infotext", "Solar Array is active ("..charge_to_give.."EU)")
meta:set_int("HV_EU_supply", charge_to_give)
else