I'm trying K2 for 2.0, just realized that Wind Turbine is not displaying the power production inside the Info Tooltip and Factoriopedia:
Seems ok once the turbine is built:
Entity prototype:
Code: Select all
{
type = "electric-energy-interface",
name = "kr-wind-turbine",
icon = "__Krastorio2Assets__/icons/entities/wind-turbine.png",
flags = { "placeable-neutral", "player-creation", "not-rotatable" },
minable = { mining_time = 0.25, result = "kr-wind-turbine" },
fast_replaceable_group = "wind-turbine",
collision_box = { { -1.25, -1.25 }, { 1.25, 1.25 } },
selection_box = { { -1.45, -1.45 }, { 1.45, 1.45 } },
drawing_box = { { -0.5, -2 }, { 0.5, 1 } },
energy_source = {
type = "electric",
buffer_capacity = "20kJ",
usage_priority = "primary-output",
output_flow_limit = "20kW",
render_no_power_icon = false,
},
max_health = 200,
corpse = "medium-remnants",
damaged_trigger_effect = hit_effects.entity(),
resistances = {
{
type = "fire",
percent = 30,
},
{
type = "physical",
percent = 60,
},
{
type = "impact",
percent = 30,
},
},
working_sound = {
sound = persistent_sound,
idle_sound = persistent_sound,
persistent = true,
},
energy_production = "20kW",
animation = {
layers = {
{
filename = "__Krastorio2Assets__/buildings/wind-turbine/wind-turbine.png",
priority = "medium",
width = 196,
height = 286,
scale = 0.5,
frame_count = 30,
line_length = 6,
animation_speed = 0.8,
shift = { 0, -1.2 },
},
{
filename = "__Krastorio2Assets__/buildings/wind-turbine/wind-turbine-shadow.png",
priority = "medium",
width = 242,
height = 100,
scale = 0.65,
frame_count = 30,
line_length = 6,
animation_speed = 0.5,
draw_as_shadow = true,
shift = { 1.15, 0.05 },
},
},
},
continuous_animation = true,
water_reflection = {
pictures = {
filename = "__Krastorio2Assets__/buildings/wind-turbine/wind-turbine-reflection.png",
priority = "extra-high",
width = 20,
height = 25,
shift = util.by_pixel(0, 40),
variation_count = 1,
scale = 5,
},
rotate = false,
orientation_to_variation = false,
},
},