Closed yalov closed 11 months ago
if game.item_prototypes[fuel_name] then ...
get_current_fuels
gives the current fuels for all characters, get_current_fuel_for_character
is only for 1 character (which is more performant if you only care about that one character)
Hi, I am trying to get all remaining energy in the inventory, could you make it remote interface if you already calculate it in the mod?
.get_fuels()
has unknown (mods' ?) fuels, and therefore this:has
get_current_fuels()
gives me only one item in array, is it expected? How is it different from theget_current_fuel_for_character()
?