Changed description
This commit is contained in:
parent
af2404358d
commit
21a929d341
|
@ -75,7 +75,7 @@ local function on_timer(pos, elapsed)
|
|||
end
|
||||
-- give orb new charge value
|
||||
fuel_stack:get_meta():set_int("stored_charge", orb_charge)
|
||||
fuel_stack:get_meta():set_string("description", "Current charge: "..tostring(orb_charge))
|
||||
fuel_stack:get_meta():set_string("description", "Exchange Orb\nCurrent Charge: "..tostring(orb_charge))
|
||||
inv:set_stack("fuel", 1, fuel_stack)
|
||||
-- "convert" charge into a node at dst
|
||||
if dst_stack:is_empty() then
|
||||
|
|
|
@ -62,7 +62,7 @@ local function on_timer(pos, elapsed)
|
|||
local stored = dest_orb:get_meta():get_int("stored_charge") or 0
|
||||
stored = stored + energy_value
|
||||
dest_orb:get_meta():set_int("stored_charge", stored)
|
||||
dest_orb:get_meta():set_string("description", "Current charge: "..tostring(stored))
|
||||
dest_orb:get_meta():set_string("description", "Exchange Orb\nCurrent Charge: "..tostring(stored))
|
||||
inv:set_stack("dst", 1, dest_orb)
|
||||
|
||||
update = true
|
||||
|
|
|
@ -51,7 +51,7 @@ local function on_timer(pos, elapsed)
|
|||
local stored = dest_orb:get_meta():get_int("stored_charge") or 0
|
||||
stored = stored + 1
|
||||
dest_orb:get_meta():set_int("stored_charge", stored)
|
||||
dest_orb:get_meta():set_string("description", "Current charge: "..tostring(stored))
|
||||
dest_orb:get_meta():set_string("description", "Exchange Orb\nCurrent Charge: "..tostring(stored))
|
||||
inv:set_stack("main", 1, dest_orb)
|
||||
end
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue