diff --git a/data/json/items/vehicle_parts.json b/data/json/items/vehicle_parts.json index 20ae789b7cd81..8e0741e96593b 100644 --- a/data/json/items/vehicle_parts.json +++ b/data/json/items/vehicle_parts.json @@ -1028,8 +1028,8 @@ { "type": "GENERIC", "id": "recharge_station", - "name": "UPS-compatible recharging station", - "description": "A Unified Power System recharging station designed to operate on vehicle power. Once installed in a vehicle storage space and turned on from a dashboard or electronics control unit, it will slowly charge all UPS compatible tools and battery cells in that space. The system can only be installed in existing storage compartments.", + "name": "recharging station", + "description": "A universal recharging station designed to operate on vehicle power. While on it will steadily charge all rechargeable batteries (battery cells, lead-acid batteries, etc) placed directly within its storage space. The system can only be installed onto existing storage compartments, and is controlled from a dashboard or electronics control unit.", "weight": 10000, "to_hit": 1, "color": "light_blue", diff --git a/data/json/vehicle_parts.json b/data/json/vehicle_parts.json index a94125f141d38..35278fd1308bb 100644 --- a/data/json/vehicle_parts.json +++ b/data/json/vehicle_parts.json @@ -1974,14 +1974,14 @@ { "type": "vehicle_part", "id": "recharge_station", - "name": "UPS-compatible recharging station", + "name": "recharging station", "symbol": "o", "color": "light_green", "broken_symbol": "#", "broken_color": "blue", "damage_modifier": 10, "durability": 20, - "description": "A recharger for UPS devices. When turned on, it charges any UPS devices in the cargo space.", + "description": "A device for recharging batteries. When turned on, it charges any rechargeable batteries (battery cells, lead-acid batteries, etc) placed directly in the attached storage space.", "epower": -25, "bonus": 600, "item": "recharge_station", diff --git a/data/mods/BrightNights/misc.json b/data/mods/BrightNights/misc.json index f74f1ef6aa9d8..ed10b9e56ca0e 100644 --- a/data/mods/BrightNights/misc.json +++ b/data/mods/BrightNights/misc.json @@ -34,17 +34,13 @@ "capacity": 1000 }, { - "id": "recharge_station", "type": "GENERIC", - "category": "veh_parts", - "name": "battery charger", - "description": "A charger for batteries that runs off vehicle power. It is quite inefficient, but charges fast.", + "id": "recharge_station", + "name": "recharging station", + "copy-from": "recharge_station", "weight": 1000, "volume": 4, "price": 2000, - "price_postapoc": 10000, - "material": [ "steel", "plastic" ], - "symbol": "-", - "color": "light_blue" + "price_postapoc": 10000 } ] diff --git a/data/mods/BrightNights/recipe.json b/data/mods/BrightNights/recipe.json index de7ff20833ec2..eb2de49129672 100644 --- a/data/mods/BrightNights/recipe.json +++ b/data/mods/BrightNights/recipe.json @@ -31,8 +31,8 @@ "time": 50000, "reversible": true, "autolearn": [ [ "electronics", 2 ] ], + "using": [ [ "soldering_standard", 35 ] ], "qualities": [ { "id": "SCREW", "level": 1 } ], - "tools": [ [ [ "soldering_iron", 35 ], [ "toolset", 35 ] ] ], "components": [ [ [ "power_supply", 2 ] ], [ [ "processor", 2 ] ], [ [ "scrap", 5 ] ], [ [ "cable", 8 ] ] ] }, { diff --git a/data/mods/BrightNights/vehicle_parts.json b/data/mods/BrightNights/vehicle_parts.json index e03701782252a..6fe5bd5d21b71 100644 --- a/data/mods/BrightNights/vehicle_parts.json +++ b/data/mods/BrightNights/vehicle_parts.json @@ -2,25 +2,11 @@ { "id": "recharge_station", "type": "vehicle_part", - "name": "battery charger", - "item": "recharge_station", - "location": "on_cargo", - "symbol": "o", - "broken_symbol": "#", - "color": "light_green", - "broken_color": "blue", + "name": "recharge station", + "copy-from": "recharge_station", "difficulty": 1, - "durability": 20, "epower": 0, - "bonus": 600, - "damage_modifier": 10, "folded_volume": 4, - "description": "A charger for batteries that runs off vehicle power. It is quite inefficient, but charges fast.", - "breaks_into": [ - { "item": "steel_chunk", "count": [ 0, 2 ] }, - { "item": "scrap", "count": [ 1, 2 ] }, - { "item": "cable", "charges": [ 1, 3 ] } - ], "flags": [ "INTERNAL", "RECHARGE", "FOLDABLE", "TOOL_SCREWDRIVER" ] } ] diff --git a/src/player.cpp b/src/player.cpp index 1b331522198aa..7c00555ba5f10 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -4238,7 +4238,7 @@ void player::update_stomach( const time_point &from, const time_point &to ) const bool mouse = has_trait( trait_NO_THIRST ); const bool mycus = has_trait( trait_M_DEPENDENT ); // @TODO: move to kcal altogether - const float kcal_per_nutr = 2500.0f / ( 12 * 24 ); + const float kcal_per_nutr = 2400.0f / ( 12 * 24 ); const int five_mins = ticks_between( from, to, 5_minutes ); if( five_mins > 0 ) { diff --git a/tests/stomach_contents_tests.cpp b/tests/stomach_contents_tests.cpp index d779516cac47b..e59a09c6eba6f 100644 --- a/tests/stomach_contents_tests.cpp +++ b/tests/stomach_contents_tests.cpp @@ -174,7 +174,7 @@ TEST_CASE( "all_nutrition_starve_test" ) printf( "\n\n" ); } - for( unsigned int day = 0; day <= 10; day++ ) { + for( unsigned int day = 0; day <= 20; day++ ) { if( print_tests ) { printf( "day %d: %d\n", day, dummy.get_stored_kcal() ); } @@ -189,7 +189,9 @@ TEST_CASE( "all_nutrition_starve_test" ) dummy.vitamin_get( vitamin_id( "vitA" ) ), dummy.vitamin_get( vitamin_id( "vitB" ) ), dummy.vitamin_get( vitamin_id( "vitC" ) ), dummy.vitamin_get( vitamin_id( "calcium" ) ), dummy.vitamin_get( vitamin_id( "iron" ) ) ); - printf( "\n\n" ); + printf( "\n" ); + print_stomach_contents( dummy, print_tests ); + printf( "\n" ); } CHECK( dummy.get_stored_kcal() >= dummy.get_healthy_kcal() ); // since vitamins drain very quickly, it is almost impossible to remain at 0