Get rid of technic.format

This commit is contained in:
est31
2015-02-08 13:45:13 +01:00
parent 7ed1aa9398
commit 4b179821d3
12 changed files with 35 additions and 55 deletions

View File

@ -142,8 +142,8 @@ function technic.register_battery_box(data)
.."^[lowpart:"..charge_percent
..":technic_power_meter_fg.png]")
local infotext = technic.format(S("%s Battery Box: %e/%e"), tier,
current_charge, max_charge)
local infotext = S("@1 Battery Box: @2/@3", tier,
technic.prettynum(current_charge), technic.prettynum(max_charge))
if eu_input == 0 then
infotext = S("%s Idle"):format(infotext)
end

View File

@ -28,7 +28,7 @@ function technic.register_solar_array(data)
local charge_to_give = math.floor((light + pos.y) * data.power)
charge_to_give = math.max(charge_to_give, 0)
charge_to_give = math.min(charge_to_give, data.power * 50)
meta:set_string("infotext", technic.format(S("%s Active (%e EU)"), machine_name, charge_to_give))
meta:set_string("infotext", S("@1 Active (@2 EU)", machine_name, technic.prettynum(charge_to_give)))
meta:set_int(tier.."_EU_supply", charge_to_give)
else
meta:set_string("infotext", S("%s Idle"):format(machine_name))