Code: Select all
c.damage(game.forces.enemy, 80) -- c is my entity
Code: Select all
c.damage(game.forces.enemy, 80) -- c is my entity
Code: Select all
{
type = "offshore-pump",
name = "lava-pump",
icon = "__base__/graphics/icons/offshore-pump.png",
flags = {"placeable-neutral", "player-creation", "filter-directions"},
minable = {mining_time = 1, result = "lava-pump"},
max_health = 80,
corpse = "small-remnants",
fluid = "lava",
resistances =
{
{
type = "fire",
percent = 90
}
},
collision_box = {{-0.6, -0.3}, {0.6, 0.3}},
selection_box = {{-1, -1.49}, {1, 0.49}},
fluid_box =
{
base_area = 1,
pipe_covers = pipecoverspictures(),
pipe_connections =
{
{ position = {0, 1} },
},
},
pumping_speed = 1,
tile_width = 1,
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
picture =
{
north =
{
filename = "__base__/graphics/entity/offshore-pump/offshore-pump.png",
priority = "high",
shift = {0.9, 0.05},
width = 160,
height = 102
},
east =
{
filename = "__base__/graphics/entity/offshore-pump/offshore-pump.png",
priority = "high",
shift = {0.9, 0.05},
x = 160,
width = 160,
height = 102
},
south =
{
filename = "__base__/graphics/entity/offshore-pump/offshore-pump.png",
priority = "high",
shift = {0.9, 0.65},
x = 320,
width = 160,
height = 102
},
west =
{
filename = "__base__/graphics/entity/offshore-pump/offshore-pump.png",
priority = "high",
shift = {1.0, 0.05},
x = 480,
width = 160,
height = 102
}
},
circuit_wire_connection_points =
{
{
shadow =
{
red = {2.7125, 0.20625},
green = {2.7125, 0.20625},
},
wire =
{
red = {0.4, -0.41875},
green = {0.4, -0.41875},
}
},
{
shadow =
{
red = {2.025, 0.83125},
green = {2.025, 0.83125},
},
wire =
{
red = {0.36875, -0.1375},
green = {0.36875, -0.1375},
}
},
{
shadow =
{
red = {1.09, 1.025},
green = {1.09, 1.025},
},
wire =
{
red = {-0.50625, 0.2125},
green = {-0.50625, 0.2125},
}
},
{
shadow =
{
red = {1.6875, -0.10625},
green = {1.6875, -0.10625},
},
wire =
{
red = {-0.34375, -0.73125},
green = {-0.34375, -0.73125},
}
}
},
circuit_wire_max_distance = 7.5
}