Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solar panels rebalance #67508

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions data/json/construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -5329,6 +5329,32 @@
"post_special": "done_appliance",
"activity_level": "LIGHT_EXERCISE"
},
{
"type": "construction",
"id": "app_stationary_solar",
"group": "place_stationary_solar_panel",
"category": "APPLIANCE",
"required_skills": [ [ "fabrication", 1 ] ],
"time": "12 m",
"qualities": [ [ { "id": "WRENCH", "level": 1 } ] ],
"components": [ [ [ "stationary_solar_panel", 1 ] ] ],
"pre_special": "check_empty",
"post_special": "done_appliance",
"activity_level": "LIGHT_EXERCISE"
},
{
"type": "construction",
"id": "app_stationary_solar_v2",
"group": "place_stationary_solar_panel_v2",
"category": "APPLIANCE",
"required_skills": [ [ "fabrication", 1 ] ],
"time": "12 m",
"qualities": [ [ { "id": "WRENCH", "level": 1 } ] ],
"components": [ [ [ "stationary_solar_panel_v2", 1 ] ] ],
"pre_special": "check_empty",
"post_special": "done_appliance",
"activity_level": "LIGHT_EXERCISE"
},
{
"type": "construction",
"id": "app_wind_turbine",
Expand Down
10 changes: 10 additions & 0 deletions data/json/construction_group.json
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,16 @@
"id": "place_reinforced_solar_panel_v2",
"name": "Place Advanced Reinforced Solar Panel"
},
{
"type": "construction_group",
"id": "place_stationary_solar_panel",
"name": "Place Stationary Solar Panel"
},
{
"type": "construction_group",
"id": "place_stationary_solar_panel_v2",
"name": "Place Advanced Stationary Solar Panel"
},
{
"type": "construction_group",
"id": "place_wind_turbine",
Expand Down
25 changes: 25 additions & 0 deletions data/json/furniture_and_terrain/appliances.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,31 @@
"requirements": { "removal": { "time": "3 m", "using": [ [ "vehicle_wrench_2", 1 ] ] } },
"variants": [ { "symbols": "#", "symbols_broken": "x" } ]
},
{
"type": "vehicle_part",
"id": "ap_stationary_solar_panel",
"flags": [ "SOLAR_PANEL", "OBSTACLE", "APPLIANCE" ],
"description": "A stationary solar panel, mounted on a frame and ready to power other appliances.",
"name": { "str": "stationary solar panel" },
"categories": [ "energy" ],
"color": "blue",
"broken_color": "blue",
"damage_modifier": 10,
"durability": 20,
"epower": "480 W",
"item": "stationary_solar_panel",
"requirements": { "removal": { "time": "6 m", "using": [ [ "vehicle_wrench_2", 1 ] ] } },
"variants": [ { "symbols": "#", "symbols_broken": "x" } ]
},
{
"type": "vehicle_part",
"id": "ap_stationary_solar_panel_v2",
"copy-from": "ap_stationary_solar_panel",
"name": { "str": "advanced stationary solar panel" },
"description": "A high-performance stationary solar panel, mounted on a frame and ready to power other appliances.",
"item": "stationary_solar_panel_v2",
"epower": "960 W"
},
{
"type": "vehicle_part",
"id": "ap_wind_turbine",
Expand Down
59 changes: 58 additions & 1 deletion data/json/furniture_and_terrain/furniture-appliances.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@
"sound": "whack!",
"sound_fail": "clang!",
"items": [
{ "item": "solar_cell", "count": [ 1, 5 ] },
{ "item": "solar_cell", "count": [ 1, 4 ] },
{ "item": "scrap", "count": [ 3, 6 ] },
{ "item": "amplifier", "prob": 50 },
{ "item": "cable", "charges": [ 10, 15 ] },
Expand All @@ -714,6 +714,63 @@
]
}
},
{
"type": "furniture",
"id": "f_stationary_solar_panel",
"name": "mounted stationary solar panel",
"description": "A large panel with photovoltaic power generators, which turn solar radiation into useable electricity. While useful before the Cataclysm, they have become priceless tools, invaluable to any survivor.",
"symbol": "#",
"color": "blue",
"move_cost_mod": 2,
"required_str": -1,
"examine_action": { "type": "appliance_convert", "furn_set": "f_null", "item": "stationary_solar_panel" },
"flags": [ "TRANSPARENT" ],
"deconstruct": { "items": [ { "item": "stationary_solar_panel", "count": 1 } ] },
"bash": {
"str_min": 10,
"str_max": 20,
"sound": "whack!",
"sound_fail": "clang!",
"items": [
{ "item": "solar_cell", "count": [ 2, 8 ] },
{ "item": "scrap_aluminum", "count": [ 20, 30 ] },
{ "item": "amplifier", "count": [ 0, 2 ] },
{ "item": "cable", "charges": [ 20, 30 ] },
{ "item": "power_supply", "count": [ 0, 2 ] },
{ "item": "scrap", "count": [ 4, 6 ] },
{ "item": "glass_shard", "count": [ 1, 16 ] }
]
}
},
{
"type": "furniture",
"//1": "IDK if this will be ever pre-placed on map, but I'll add it just to complete the set.",
"id": "f_stationary_solar_panel_v2",
"name": "mounted stationary solar panel_v2",
"description": "A large panel with photovoltaic power generators, which turn solar radiation into useable electricity. While useful before the Cataclysm, they have become priceless tools, invaluable to any survivor. This panel uses high-performance monocrystalline silicon cells.",
"symbol": "#",
"color": "blue",
"move_cost_mod": 2,
"required_str": -1,
"examine_action": { "type": "appliance_convert", "furn_set": "f_null", "item": "stationary_solar_panel_v2" },
"flags": [ "TRANSPARENT" ],
"deconstruct": { "items": [ { "item": "stationary_solar_panel_v2", "count": 1 } ] },
"bash": {
"str_min": 10,
"str_max": 20,
"sound": "whack!",
"sound_fail": "clang!",
"items": [
{ "item": "solar_cell_v2", "count": [ 2, 8 ] },
{ "item": "scrap_aluminum", "count": [ 20, 30 ] },
{ "item": "amplifier", "count": [ 0, 2 ] },
{ "item": "cable", "charges": [ 20, 30 ] },
{ "item": "power_supply", "count": [ 0, 2 ] },
{ "item": "scrap", "count": [ 4, 6 ] },
{ "item": "glass_shard", "count": [ 1, 16 ] }
]
}
},
{
"type": "furniture",
"id": "f_oxygen_concentrator",
Expand Down
48 changes: 41 additions & 7 deletions data/json/items/vehicle/solar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,55 @@
"id": "solar_panel",
"name": { "str": "solar panel" },
"description": "An electronic device that can convert solar radiation into electric power. Useful for a vehicle or a static power grid.",
"weight": "14000 g",
"weight": "9500 g",
"to_hit": -4,
"color": "yellow",
"symbol": "]",
"material": [ "glass" ],
"volume": "3 L",
"//1": "Solar cells on themselves are only 3.5 mm thick, so without extra volume added by frame the volume is 0.0035 x 1.065 = 3.6E-3 m3 or 3.6 l.",
"//2": "Let's add some volume for 2 power converters etc.",
"volume": "6 L",
"//3": "Considering selected geometry of basic solar cells and making a 4x2 array and forming long side out of short edges.",
"longest_side": "120 cm",
"flags": [ "NO_REPAIR", "WATER_BREAK" ],
"category": "veh_parts",
"price": 90000,
"price_postapoc": 1000,
"melee_damage": { "bash": 1 }
},
{
"type": "GENERIC",
"id": "stationary_solar_panel",
"name": { "str": "disconnected stationary solar panel" },
"description": "An electronic device that can convert solar radiation into electric power. It is mot mountable on a vehicle and is intended to be mounted on a rooftop as an appliance.",
"weight": "21000 g",
"to_hit": -6,
"color": "blue",
"symbol": "]",
"material": [ "glass", "aluminum" ],
"volume": "81 L",
"longest_side": "240 cm",
"flags": [ "NO_REPAIR", "WATER_BREAK" ],
"price": 180000,
"price_postapoc": 2000,
"melee_damage": { "bash": 1 }
},
{
"type": "GENERIC",
"copy-from": "stationary_solar_panel",
"id": "stationary_solar_panel_v2",
"name": { "str": "disconnected advanced stationary solar panel" },
"description": "An electronic device that can convert solar radiation into electric power. It is mot mountable on a vehicle and is intended to be mounted on a rooftop as an appliance. This model uses high-performance monocrystalline silicon cells.",
"price": 360000,
"price_postapoc": 6000
},
{
"type": "GENERIC",
"copy-from": "solar_panel",
"id": "folding_solar_panel",
"name": { "str": "collapsible solar array" },
"description": "An electronic device that can convert solar radiation into electric power, mounted on a folding frame. This one is a common, inexpensive type made with polycrystalline silicon cells.",
"weight": "14500 g",
"weight": "10000 g",
"price": 120000,
"price_postapoc": 1500
},
Expand All @@ -40,10 +70,11 @@
"id": "reinforced_solar_panel",
"name": { "str": "reinforced solar panel" },
"description": "A solar panel that has been covered with a pane of reinforced glass to protect the delicate solar cells from zombies or errant baseballs. The glass causes this panel to produce slightly less power than a normal panel.",
"weight": "24153 g",
"//1": "Another 11.5 kg and 5.5 l is added by a pane of reinforced glass.",
"weight": "20000 g",
"color": "light_blue",
"material": [ "glass", "steel" ],
"volume": "6500 ml",
"volume": "11500 ml",
"price": 120000,
"price_postapoc": 1500,
"copy-from": "solar_panel"
Expand Down Expand Up @@ -71,9 +102,12 @@
"id": "solar_cell",
"name": { "str": "solar cell" },
"description": "A small electronic device that can convert solar radiation into electric power. This one is a common, inexpensive type made of polycrystalline silicon.",
"weight": "500 g",
"//1": "Density of silicon is 2.33 kg/l. Approx. area of 0.13125 m3 and thickness of 3.5 mm. That gives us volume of ~470 ml and weight of 1.1 kg.",
"weight": "1100 g",
"symbol": ";",
"volume": "250 ml",
"volume": "470 ml",
"//2": "Assumingh a 2/3 ration between height and length. Given the area this gives us ~0.44 m max length and ~0.3 m height.",
"longest_side": "44 cm",
"category": "spare_parts",
"price": 5000,
"price_postapoc": 100,
Expand Down
60 changes: 58 additions & 2 deletions data/json/recipes/other/power_supplies.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,63 @@
{ "proficiency": "prof_elec_circuits" },
{ "proficiency": "prof_elec_semiconductors" }
],
"components": [ [ [ "power_supply", 2 ] ], [ [ "amplifier", 2 ] ], [ [ "solar_cell", 12 ] ], [ [ "cable", 20 ] ] ]
"components": [ [ [ "power_supply", 2 ] ], [ [ "amplifier", 2 ] ], [ [ "solar_cell", 8 ] ], [ [ "cable", 20 ] ] ]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "stationary_solar_panel",
"category": "CC_ELECTRONIC",
"subcategory": "CSC_ELECTRONIC_PARTS",
"skill_used": "electronics",
"difficulty": 8,
"time": "80 m",
"reversible": true,
"decomp_learn": 5,
"autolearn": true,
"book_learn": [ [ "manual_electronics", 7 ], [ "textbook_electronics", 6 ], [ "advanced_electronics", 6 ] ],
"using": [ [ "soldering_standard", 70 ] ],
"qualities": [ { "id": "SCREW", "level": 1 } ],
"proficiencies": [
{ "proficiency": "prof_elec_soldering" },
{ "proficiency": "prof_elec_circuits" },
{ "proficiency": "prof_elec_semiconductors" }
],
"components": [
[ [ "power_supply", 2 ] ],
[ [ "amplifier", 2 ] ],
[ [ "solar_cell", 16 ] ],
[ [ "cable", 40 ] ],
[ [ "xlframe", 1 ] ]
]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"result": "stationary_solar_panel_v2",
"category": "CC_ELECTRONIC",
"subcategory": "CSC_ELECTRONIC_PARTS",
"skill_used": "electronics",
"difficulty": 8,
"time": "80 m",
"reversible": true,
"decomp_learn": 5,
"autolearn": true,
"book_learn": [ [ "manual_electronics", 7 ], [ "textbook_electronics", 6 ], [ "advanced_electronics", 6 ] ],
"using": [ [ "soldering_standard", 70 ] ],
"qualities": [ { "id": "SCREW", "level": 1 } ],
"proficiencies": [
{ "proficiency": "prof_elec_soldering" },
{ "proficiency": "prof_elec_circuits" },
{ "proficiency": "prof_elec_semiconductors" }
],
"components": [
[ [ "power_supply", 2 ] ],
[ [ "amplifier", 2 ] ],
[ [ "solar_cell_v2", 16 ] ],
[ [ "cable", 40 ] ],
[ [ "xlframe", 1 ] ]
]
},
{
"type": "recipe",
Expand Down Expand Up @@ -480,7 +536,7 @@
{ "proficiency": "prof_elec_circuits" },
{ "proficiency": "prof_elec_semiconductors" }
],
"components": [ [ [ "power_supply", 2 ] ], [ [ "amplifier", 2 ] ], [ [ "solar_cell_v2", 12 ] ], [ [ "cable", 20 ] ] ]
"components": [ [ [ "power_supply", 2 ] ], [ [ "amplifier", 2 ] ], [ [ "solar_cell_v2", 8 ] ], [ [ "cable", 20 ] ] ]
},
{
"type": "recipe",
Expand Down
12 changes: 6 additions & 6 deletions data/json/vehicleparts/vehicle_parts.json
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@
"damage_modifier": 10,
"durability": 20,
"description": "A solar panel.",
"epower": "50 W",
"epower": "200 W",
"item": "solar_panel",
"location": "on_roof",
"requirements": {
Expand All @@ -1677,7 +1677,7 @@
{ "item": "steel_lump", "count": [ 2, 4 ] },
{ "item": "steel_chunk", "count": [ 2, 4 ] },
{ "item": "scrap", "count": [ 2, 4 ] },
{ "item": "solar_cell", "count": [ 1, 4 ] }
{ "item": "solar_cell", "count": [ 1, 3 ] }
],
"variants": [ { "symbols": "#", "symbols_broken": "x" } ]
},
Expand Down Expand Up @@ -1754,7 +1754,7 @@
"name": { "str": "collapsible solar array" },
"color": "light_blue",
"broken_color": "light_gray",
"proportional": { "epower": 0.68, "durability": 0.5 },
"proportional": { "durability": 0.5 },
"folded_volume": "2 L",
"description": "A small array of solar panels designed to be able to fold into one another.",
"item": "folding_solar_panel"
Expand Down Expand Up @@ -1791,7 +1791,7 @@
{ "item": "steel_lump", "count": [ 4, 7 ] },
{ "item": "steel_chunk", "count": [ 4, 7 ] },
{ "item": "scrap", "count": [ 4, 7 ] },
{ "item": "solar_cell", "count": [ 1, 4 ] }
{ "item": "solar_cell", "count": [ 1, 3 ] }
],
"damage_reduction": { "all": 12 }
},
Expand All @@ -1816,7 +1816,7 @@
{ "item": "steel_lump", "count": [ 2, 4 ] },
{ "item": "steel_chunk", "count": [ 2, 4 ] },
{ "item": "scrap", "count": [ 2, 4 ] },
{ "item": "solar_cell_v2", "count": [ 1, 6 ] }
{ "item": "solar_cell_v2", "count": [ 1, 4 ] }
]
},
{
Expand All @@ -1843,7 +1843,7 @@
{ "item": "steel_lump", "count": [ 4, 7 ] },
{ "item": "steel_chunk", "count": [ 4, 7 ] },
{ "item": "scrap", "count": [ 4, 7 ] },
{ "item": "solar_cell", "count": [ 1, 6 ] }
{ "item": "solar_cell", "count": [ 1, 4 ] }
],
"damage_reduction": { "all": 10 }
},
Expand Down
Loading