You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All bionics that use fuel (e.g. gasoline fuel cell CBM, blood power generator CBM of Magiclysm) have strange behavior when consuming fuel. After consumption, the amount of fuel stored in CBM equals the available amount of fuel (Character::get_fuel_capacity), which causes indefinite consumption.
Steps To Reproduce
Make a player with gasoline fuel cell CBM and some gasoline, eat the gasoline
Turn on the fuel cell and wait for a few seconds, then switch off it
Eat more gasoline and see all of your precious gasoline lost into the void
Expected behavior
Fuel cell bionics are correctly refueled
Versions and configuration
Build: 9671
Additional context
probably caused by bool player::fuel_bionic_with( item &it ) in consumption.cpp
const bionic_id bio = get_most_efficient_bionic( get_bionic_fueled_with( it ) );
const int loadable = std::min( it.charges, get_fuel_capacity( it.typeId() ) );
const std::string loaded_charge = std::to_string( loadable );
it.charges -= loadable;
set_value( it.typeId(), loaded_charge );// type and amount of fuel
update_fuel_storage( it.typeId() );
Apology
I do not know how to contribute on github, therefore I can't solve this bug on my own. I am not a native speaker and please forgive my poor English.
The text was updated successfully, but these errors were encountered:
Describe the bug
All bionics that use fuel (e.g. gasoline fuel cell CBM, blood power generator CBM of Magiclysm) have strange behavior when consuming fuel. After consumption, the amount of fuel stored in CBM equals the available amount of fuel (Character::get_fuel_capacity), which causes indefinite consumption.
Steps To Reproduce
Expected behavior
Fuel cell bionics are correctly refueled
Versions and configuration
Build: 9671
Additional context
probably caused by
bool player::fuel_bionic_with( item &it )
in consumption.cppApology
I do not know how to contribute on github, therefore I can't solve this bug on my own. I am not a native speaker and please forgive my poor English.
The text was updated successfully, but these errors were encountered: