Skip to content

Commit

Permalink
Remove quantum solar panels
Browse files Browse the repository at this point in the history
  • Loading branch information
ymber committed Feb 7, 2020
1 parent 29de372 commit 3b9b1d5
Show file tree
Hide file tree
Showing 19 changed files with 99 additions and 172 deletions.
3 changes: 1 addition & 2 deletions data/json/construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -3525,8 +3525,7 @@
[ "solar_panel", 4 ],
[ "reinforced_solar_panel", 4 ],
[ "solar_panel_v2", 2 ],
[ "reinforced_solar_panel_v2", 2 ],
[ "solar_panel_v3", 1 ]
[ "reinforced_solar_panel_v2", 2 ]
],
[ [ "storage_battery", 1 ], [ "medium_storage_battery", 4 ], [ "small_storage_battery", 32 ] ],
[ [ "sheet_metal", 2 ], [ "wire", 8 ] ],
Expand Down
2 changes: 0 additions & 2 deletions data/json/itemgroups/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
[ "bot_laserturret", 10 ],
[ "alloy_plate", 10 ],
[ "plasma_gun", 10 ],
[ "solar_panel_v3", 10 ],
[ "q_solarpack", 10 ],
[ "can_sealer", 10 ],
[ "hk_g80", 10 ],
[ "hk_g80mag", 10 ],
Expand Down
54 changes: 54 additions & 0 deletions data/json/items/obsolete.json
Original file line number Diff line number Diff line change
Expand Up @@ -1728,5 +1728,59 @@
"environmental_protection": 5,
"techniques": [ "WBLOCK_1" ],
"flags": [ "VARSIZE", "WATERPROOF", "STURDY" ]
},
{
"type": "GENERIC",
"id": "solar_panel_v3",
"name": "quantum solar panel",
"description": "This solar panel is obviously cutting-edge technology and given where you found it, should probably provide a LOT of power. It's covered in strange-looking material, but the covering looks rather fragile; it doesn't look like it could support a reinforcing sheet, either.",
"to_hit": -5,
"material": [ "glass", "steel" ],
"volume": "4500 ml",
"price": 900000,
"copy-from": "solar_panel"
},
{
"id": "q_solarpack",
"type": "TOOL_ARMOR",
"name": "quantum solar backpack (folded)",
"name_plural": "quantum solar backpacks (folded)",
"description": "Personal portable charging system consisting of an array of quantum solar panels neatly folded in a form of a large backpack. It can be worn as one, and has an integrated cable to plug it into a cable charger system. Cutting edge technology.",
"weight": "7500 g",
"volume": "5 L",
"price": 1500000,
"bashing": 10,
"to_hit": -1,
"material": [ "glass", "steel" ],
"symbol": "[",
"color": "light_gray",
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 12,
"material_thickness": 3,
"use_action": "SOLARPACK",
"flags": [ "FRAGILE", "OUTER", "ONLY_ONE" ]
},
{
"id": "q_solarpack_on",
"type": "TOOL_ARMOR",
"repairs_like": "q_solarpack",
"name": "quantum solar backpack (unfolded)",
"name_plural": "quantum solar backpacks (unfolded)",
"description": "Unfolded array of portable quantum solar panels ready to push some power into an active cable charger system.",
"weight": "7500 g",
"volume": "15 L",
"price": 1500000,
"bashing": 4,
"to_hit": -2,
"material": [ "glass", "steel" ],
"symbol": "[",
"color": "blue",
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 20,
"material_thickness": 1,
"use_action": "SOLARPACK_OFF",
"flags": [ "FRAGILE", "OUTER", "ONLY_ONE" ]
}
]
41 changes: 0 additions & 41 deletions data/json/items/tool_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -2730,47 +2730,6 @@
"use_action": "SOLARPACK_OFF",
"flags": [ "FRAGILE", "OUTER", "ONLY_ONE" ]
},
{
"id": "q_solarpack",
"type": "TOOL_ARMOR",
"name": { "str": "quantum solar backpack (folded)", "str_pl": "quantum solar backpacks (folded)" },
"description": "Personal portable charging system consisting of an array of quantum solar panels neatly folded in a form of a large backpack. It can be worn as one, and has an integrated cable to plug it into a cable charger system. Cutting edge technology.",
"weight": "7500 g",
"volume": "5 L",
"price": 1500000,
"bashing": 10,
"to_hit": -1,
"material": [ "glass", "steel" ],
"symbol": "[",
"color": "light_gray",
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 12,
"material_thickness": 3,
"use_action": "SOLARPACK",
"flags": [ "FRAGILE", "OUTER", "ONLY_ONE" ]
},
{
"id": "q_solarpack_on",
"type": "TOOL_ARMOR",
"repairs_like": "q_solarpack",
"name": { "str": "quantum solar backpack (unfolded)", "str_pl": "quantum solar backpacks (unfolded)" },
"description": "Unfolded array of portable quantum solar panels ready to push some power into an active cable charger system.",
"weight": "7500 g",
"volume": "15 L",
"price": 1500000,
"bashing": 4,
"to_hit": -2,
"material": [ "glass", "steel" ],
"symbol": "[",
"color": "blue",
"covers": [ "TORSO" ],
"coverage": 40,
"encumbrance": 20,
"material_thickness": 1,
"use_action": "SOLARPACK_OFF",
"flags": [ "FRAGILE", "OUTER", "ONLY_ONE" ]
},
{
"id": "helmet_riot",
"repairs_like": "helmet_barbute",
Expand Down
11 changes: 0 additions & 11 deletions data/json/items/vehicle/solar.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,6 @@
"price": 240000,
"copy-from": "reinforced_solar_panel"
},
{
"type": "GENERIC",
"id": "solar_panel_v3",
"name": "quantum solar panel",
"description": "This solar panel is obviously cutting-edge technology and given where you found it, should probably provide a LOT of power. It's covered in strange-looking material, but the covering looks rather fragile; it doesn't look like it could support a reinforcing sheet, either.",
"to_hit": -5,
"material": [ "glass", "steel" ],
"volume": "4500 ml",
"price": 900000,
"copy-from": "solar_panel"
},
{
"type": "GENERIC",
"id": "solar_cell",
Expand Down
3 changes: 1 addition & 2 deletions data/json/recipes/basecamps/recipe_modular_field_common.json
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,7 @@
[ "solar_panel", 4 ],
[ "reinforced_solar_panel", 4 ],
[ "solar_panel_v2", 2 ],
[ "reinforced_solar_panel_v2", 2 ],
[ "solar_panel_v3", 1 ]
[ "reinforced_solar_panel_v2", 2 ]
],
[ [ "storage_battery", 1 ], [ "medium_storage_battery", 4 ], [ "small_storage_battery", 32 ] ],
[ [ "sheet_metal", 2 ], [ "wire", 8 ] ],
Expand Down
3 changes: 1 addition & 2 deletions data/json/recipes/basecamps/recipe_modular_firestation1.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@
[ "solar_panel", 4 ],
[ "reinforced_solar_panel", 4 ],
[ "solar_panel_v2", 2 ],
[ "reinforced_solar_panel_v2", 2 ],
[ "solar_panel_v3", 1 ]
[ "reinforced_solar_panel_v2", 2 ]
],
[ [ "storage_battery", 1 ], [ "medium_storage_battery", 4 ], [ "small_storage_battery", 32 ] ],
[ [ "sheet_metal", 2 ], [ "wire", 8 ] ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,7 @@
[ "solar_panel", 4 ],
[ "reinforced_solar_panel", 4 ],
[ "solar_panel_v2", 2 ],
[ "reinforced_solar_panel_v2", 2 ],
[ "solar_panel_v3", 1 ]
[ "reinforced_solar_panel_v2", 2 ]
],
[ [ "storage_battery", 1 ], [ "medium_storage_battery", 4 ], [ "small_storage_battery", 32 ] ],
[ [ "sheet_metal", 2 ], [ "wire", 8 ] ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,7 @@
[ "solar_panel", 4 ],
[ "reinforced_solar_panel", 4 ],
[ "solar_panel_v2", 2 ],
[ "reinforced_solar_panel_v2", 2 ],
[ "solar_panel_v3", 1 ]
[ "reinforced_solar_panel_v2", 2 ]
],
[ [ "storage_battery", 1 ], [ "medium_storage_battery", 4 ], [ "small_storage_battery", 32 ] ],
[ [ "sheet_metal", 2 ], [ "wire", 8 ] ],
Expand Down
3 changes: 1 addition & 2 deletions data/json/recipes/basecamps/recipe_primitive_field.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,7 @@
[ "solar_panel", 4 ],
[ "reinforced_solar_panel", 4 ],
[ "solar_panel_v2", 2 ],
[ "reinforced_solar_panel_v2", 2 ],
[ "solar_panel_v3", 1 ]
[ "reinforced_solar_panel_v2", 2 ]
],
[ [ "storage_battery", 1 ], [ "medium_storage_battery", 4 ], [ "small_storage_battery", 32 ] ],
[ [ "sheet_metal", 2 ], [ "wire", 8 ] ],
Expand Down
44 changes: 0 additions & 44 deletions data/json/recipes/recipe_deconstruction.json
Original file line number Diff line number Diff line change
Expand Up @@ -3306,50 +3306,6 @@
[ [ "rope_6", 1 ] ]
]
},
{
"//": "TODO: use copy-from inheritance for solarpack uncrafts -- it is currently not working properly #24702",
"result": "q_solarpack",
"type": "uncraft",
"skill_used": "electronics",
"difficulty": 10,
"skills_required": [ [ "fabrication", 2 ], [ "mechanics", 2 ] ],
"time": "50 m",
"using": [ [ "soldering_standard", 35 ], [ "welding_standard", 20 ] ],
"qualities": [ { "id": "SCREW", "level": 1 }, { "id": "HAMMER", "level": 2 }, { "id": "SAW_M", "level": 2 } ],
"components": [
[ [ "power_supply", 2 ] ],
[ [ "amplifier", 2 ] ],
[ [ "solar_panel_v3", 1 ] ],
[ [ "cable", 20 ] ],
[ [ "sheet_metal", 1 ] ],
[ [ "sheet_metal_small", 4 ] ],
[ [ "steel_chunk", 4 ] ],
[ [ "scrap", 8 ] ],
[ [ "rope_6", 1 ] ]
]
},
{
"//": "TODO: use copy-from inheritance for solarpack uncrafts -- it is currently not working properly #24702",
"result": "q_solarpack_on",
"type": "uncraft",
"skill_used": "electronics",
"difficulty": 10,
"skills_required": [ [ "fabrication", 2 ], [ "mechanics", 2 ] ],
"time": "50 m",
"using": [ [ "soldering_standard", 35 ], [ "welding_standard", 20 ] ],
"qualities": [ { "id": "SCREW", "level": 1 }, { "id": "HAMMER", "level": 2 }, { "id": "SAW_M", "level": 2 } ],
"components": [
[ [ "power_supply", 2 ] ],
[ [ "amplifier", 2 ] ],
[ [ "solar_panel_v3", 1 ] ],
[ [ "cable", 20 ] ],
[ [ "sheet_metal", 1 ] ],
[ [ "sheet_metal_small", 4 ] ],
[ [ "steel_chunk", 4 ] ],
[ [ "scrap", 8 ] ],
[ [ "rope_6", 1 ] ]
]
},
{
"result": "bundle_rag",
"type": "uncraft",
Expand Down
24 changes: 0 additions & 24 deletions data/json/recipes/recipe_electronics.json
Original file line number Diff line number Diff line change
Expand Up @@ -727,30 +727,6 @@
[ [ "rope_natural_short", 1, "LIST" ] ]
]
},
{
"type": "recipe",
"result": "q_solarpack",
"category": "CC_ELECTRONIC",
"subcategory": "CSC_ELECTRONIC_OTHER",
"skill_used": "electronics",
"skills_required": [ [ "fabrication", 2 ], [ "mechanics", 2 ] ],
"difficulty": 10,
"time": "50 m",
"decomp_learn": 5,
"autolearn": true,
"book_learn": [ [ "recipe_augs", 7 ], [ "recipe_lab_elec", 7 ], [ "advanced_electronics", 8 ] ],
"using": [ [ "soldering_standard", 35 ], [ "welding_standard", 20 ] ],
"qualities": [ { "id": "SCREW", "level": 1 }, { "id": "HAMMER", "level": 2 }, { "id": "SAW_M", "level": 2 } ],
"byproducts": [ [ "sheet_metal_small", 8 ], [ "scrap", 8 ] ],
"components": [
[ [ "power_supply", 2 ] ],
[ [ "amplifier", 2 ] ],
[ [ "cable", 20 ] ],
[ [ "solar_panel_v3", 1 ] ],
[ [ "sheet_metal", 2 ] ],
[ [ "rope_natural_short", 1, "LIST" ] ]
]
},
{
"type": "recipe",
"result": "solar_panel",
Expand Down
10 changes: 10 additions & 0 deletions data/json/recipes/recipe_obsolete.json
Original file line number Diff line number Diff line change
Expand Up @@ -2303,5 +2303,15 @@
"type": "recipe",
"result": "helmet_xlsurvivor",
"obsolete": true
},
{
"type": "recipe",
"result": "q_solarpack",
"obsolete": true
},
{
"type": "recipe",
"result": "q_solarpack_on",
"obsolete": true
}
]
25 changes: 25 additions & 0 deletions data/json/vehicleparts/obsolete.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[

{
"type": "vehicle_part",
"id": "solar_panel_v3",
"copy-from": "solar_panel",
"name": "quantum solar panel",
"looks_like": "solar_panel_v2",
"proportional": { "epower": 6.0 },
"item": "solar_panel_v3",
"durability": 40,
"description": "An extremely high performance solar panel. Will recharge the vehicle's electrical power when exposed to the sun. Clouds will slow the recharge speed. Extremely fragile and cannot be armored.",
"requirements": {
"install": { "skills": [ [ "mechanics", 8 ] ], "time": "60 m", "using": [ [ "vehicle_bolt", 1 ] ] },
"removal": { "skills": [ [ "mechanics", 6 ] ], "time": "30 m", "using": [ [ "vehicle_bolt", 1 ] ] }
},
"extend": { "flags": [ "NO_REPAIR" ] },
"breaks_into": [
{ "item": "steel_lump", "count": [ 4, 4 ] },
{ "item": "steel_chunk", "count": [ 4, 4 ] },
{ "item": "scrap", "count": [ 4, 4 ] },
{ "item": "solar_cell", "count": [ 2, 8 ] }
]
}
]
22 changes: 0 additions & 22 deletions data/json/vehicleparts/vehicle_parts.json
Original file line number Diff line number Diff line change
Expand Up @@ -2136,28 +2136,6 @@
],
"damage_reduction": { "all": 10 }
},
{
"type": "vehicle_part",
"id": "solar_panel_v3",
"copy-from": "solar_panel",
"name": "quantum solar panel",
"looks_like": "solar_panel_v2",
"proportional": { "epower": 6.0 },
"item": "solar_panel_v3",
"durability": 40,
"description": "An extremely high performance solar panel. Will recharge the vehicle's electrical power when exposed to the sun. Clouds will slow the recharge speed. Extremely fragile and cannot be armored.",
"requirements": {
"install": { "skills": [ [ "mechanics", 8 ] ], "time": "60 m", "using": [ [ "vehicle_bolt", 1 ] ] },
"removal": { "skills": [ [ "mechanics", 6 ] ], "time": "30 m", "using": [ [ "vehicle_bolt", 1 ] ] }
},
"extend": { "flags": [ "NO_REPAIR" ] },
"breaks_into": [
{ "item": "steel_lump", "count": [ 4, 4 ] },
{ "item": "steel_chunk", "count": [ 4, 4 ] },
{ "item": "scrap", "count": [ 4, 4 ] },
{ "item": "solar_cell", "count": [ 2, 8 ] }
]
},
{
"type": "vehicle_part",
"id": "water_faucet",
Expand Down
4 changes: 0 additions & 4 deletions src/bionics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -815,10 +815,6 @@ bool Character::burn_fuel( int b, bool start )
if( is_wearing( "solarpack_on" ) ) {
effective_efficiency = 0.05;
}
// quantum solar backpack = solar panel x6
if( is_wearing( "q_solarpack_on" ) ) {
effective_efficiency = 0.3;
}
}
} else if( !start ) {
add_msg_player_or_npc( m_info,
Expand Down
3 changes: 1 addition & 2 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8910,8 +8910,7 @@ bool item::process_cable( player *carrier, const tripoint &pos )
}
std::string state = get_var( "state" );
if( state == "solar_pack_link" || state == "solar_pack" ) {
if( !carrier->has_item( *this ) || !( carrier->is_wearing( "solarpack_on" ) ||
carrier->is_wearing( "q_solarpack_on" ) ) ) {
if( !carrier->has_item( *this ) || !carrier->is_wearing( "solarpack_on" ) ) {
carrier->add_msg_if_player( m_bad, _( "You notice the cable has come loose!" ) );
reset_cable( carrier );
return false;
Expand Down
Loading

0 comments on commit 3b9b1d5

Please sign in to comment.