That's what I wanted to do, just add the tint tag. Where do I put it and how do I format it?
Code: Select all
data:extend({
{
type = "radar",
name = "radar-red",
icon = "__base__/graphics/icons/radar.png",
icon_size = 32,
flags = {"placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "radar-red"},
max_health = 800,
corpse = "big-remnants",
resistances =
{
{
type = "fire",
percent = 70
},
{
type = "impact",
percent = 30
}
},
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
energy_per_sector = "225kJ",
max_distance_of_sector_revealed = 8,
max_distance_of_nearby_sector_revealed = 4,
energy_per_nearby_scan = "2250kJ",
energy_source =
{
type = "electric",
usage_priority = "secondary-input"
},
energy_usage = "450kW",
integration_patch =
{
filename = "__base__/graphics/entity/radar/radar-integration.png",
priority = "low",
width = 119,
height = 108,
apply_projection = false,
direction_count = 1,
repeat_count = 64,
line_length = 1,
shift = util.by_pixel(1.5, 4),
hr_version =
{
filename = "__base__/graphics/entity/radar/hr-radar-integration.png",
priority = "low",
width = 238,
height = 216,
apply_projection = false,
direction_count = 1,
repeat_count = 64,
line_length = 1,
shift = util.by_pixel(1.5, 4),
scale = 0.5
}
},
pictures =
{
layers =
{
{
filename = "__base__/graphics/entity/radar/radar.png",
priority = "low",
width = 98,
height = 128,
apply_projection = false,
direction_count = 64,
line_length = 8,
shift = util.by_pixel(1, -16),
hr_version = {
filename = "__base__/graphics/entity/radar/hr-radar.png",
priority = "low",
width = 196,
height = 254,
apply_projection = false,
direction_count = 64,
line_length = 8,
shift = util.by_pixel(1, -16),
scale = 0.5
}
},
{
filename = "__base__/graphics/entity/radar/radar-shadow.png",
priority = "low",
width = 172,
height = 94,
apply_projection = false,
direction_count = 64,
line_length = 8,
shift = util.by_pixel(39,3),
draw_as_shadow = true,
hr_version = {
filename = "__base__/graphics/entity/radar/hr-radar-shadow.png",
priority = "low",
width = 343,
height = 186,
apply_projection = false,
direction_count = 64,
line_length = 8,
shift = util.by_pixel(39.25,3),
draw_as_shadow = true,
scale = 0.5
}
}
}
},
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
working_sound =
{
sound = {
{
filename = "__base__/sound/radar.ogg"
}
},
apparent_volume = 2,
},
radius_minimap_visualisation_color = { r = 0.059, g = 0.092, b = 0.235, a = 0.275 },
},
As it is formatted in darkfrei's mod, but the mod won't even load until I nest it in brackets. But even then, it does not affect the color of the entity in-game.