I modded a few weapons, and the game is able to read all the stats except for cooldown, which is zero in-game. Here is the code for one of them:
weapon_component_template = {
key = "FC_SPACE_WHALE_WEAPON_2"
size = small
entity = "small_space_whale_weapon_entity"
power = -10
type = instant
icon = "GFX_ship_part_fc_space_whale_weapon_2"
icon_frame = 1
projectile_gfx = "space_whale_weapon"
tags = { weapon_type_energy weapon_type_space_fauna }
ai_tags = { weapon_role_anti_shield weapon_type_space_fauna }
component_set = "SPACE_WHALE_WEAPON_2"
prerequisites = { "tech_fc_space_whale_weapon_2" }
resources = {
category = ship_components
cost = {
alloys = @s_t3_cost
exotic_gases = @s_t3_rare
}
upkeep = {
energy = @s_t3_upkeep_alloys
alloys = @s_t3_upkeep_alloys
}
}
damage = { min = 12 max = 25 }
cooldown = 30
range = 60
accuracy = 0.75
tracking = 0.50
shield_damage = 2.0
armor_damage = 0.25
hull_damage = 1.0
}