mirror of
https://github.com/Wyrrrd/Rocket_Turrets.git
synced 2026-03-25 15:19:49 +01:00
Merged vanilla version
Reworked loading logic of entities, items, recipes and tech
This commit is contained in:
@@ -1,4 +1,28 @@
|
||||
|
||||
-- Sheet definition
|
||||
|
||||
function rocket_sheet(inputs)
|
||||
return
|
||||
{
|
||||
layers =
|
||||
{
|
||||
{
|
||||
filename = "__Rocket_Turrets__/graphics/entity/rocket-sheet.png",
|
||||
priority = "medium",
|
||||
scale = 1,
|
||||
width = 72,
|
||||
height = 80,
|
||||
direction_count = inputs.direction_count and inputs.direction_count or 64,
|
||||
frame_count = 1,
|
||||
line_length = inputs.line_length and inputs.line_length or 16,
|
||||
axially_symmetrical = false,
|
||||
run_mode = inputs.run_mode and inputs.run_mode or "forward",
|
||||
shift = { 0.25, -0.5 },
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
function rocket_mk1_sheet(inputs)
|
||||
return
|
||||
{
|
||||
@@ -179,8 +203,70 @@ return
|
||||
}
|
||||
end
|
||||
|
||||
data:extend({
|
||||
{
|
||||
|
||||
-- Entity definition
|
||||
|
||||
entity0 = {
|
||||
type = "ammo-turret",
|
||||
name = "rocket-turret",
|
||||
icon = "__Rocket_Turrets__/graphics/icon/turret-rocket-icon.png",
|
||||
icon_size = 32,
|
||||
flags = {"placeable-player", "player-creation"},
|
||||
minable = {mining_time = 0.7, result = "rocket-turret"},
|
||||
max_health = 400,
|
||||
corpse = "small-remnants",
|
||||
collision_box = {{-0.7, -0.7 }, {0.7, 0.7}},
|
||||
selection_box = {{-1, -1 }, {1, 1}},
|
||||
rotation_speed = 0.008,
|
||||
preparing_speed = 0.04,
|
||||
folding_speed = 0.04,
|
||||
dying_explosion = "medium-explosion",
|
||||
inventory_size = 1,
|
||||
automated_ammo_count = 10,
|
||||
attacking_speed = 0.09,
|
||||
|
||||
folded_animation = rocket_sheet{direction_count = 4, line_length = 1},
|
||||
preparing_animation = rocket_sheet{direction_count = 4, line_length = 1},
|
||||
prepared_animation = rocket_sheet{},
|
||||
attacking_animation = rocket_sheet{},
|
||||
folding_animation = rocket_sheet{direction_count = 4, line_length = 1, run_mode = "backward"},
|
||||
|
||||
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
|
||||
|
||||
attack_parameters =
|
||||
{
|
||||
type = "projectile",
|
||||
ammo_category = "rocket",
|
||||
cooldown = 75,
|
||||
projectile_creation_distance = 1.2,
|
||||
projectile_center = {-0.15625, -0.07812},
|
||||
damage_modifier = 1,
|
||||
shell_particle =
|
||||
{
|
||||
name = "shell-particle",
|
||||
direction_deviation = 0.1,
|
||||
speed = 0.1,
|
||||
speed_deviation = 0.03,
|
||||
center = {0, 0},
|
||||
creation_distance = -1.925,
|
||||
starting_frame_speed = 0.2,
|
||||
starting_frame_speed_deviation = 0.1
|
||||
},
|
||||
range = 35,
|
||||
min_range = 15,
|
||||
sound =
|
||||
{
|
||||
{
|
||||
filename = "__base__/sound/fight/rocket-launcher.ogg",
|
||||
volume = 0.8
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
call_for_help_radius = 40
|
||||
}
|
||||
|
||||
entity1 = {
|
||||
type = "ammo-turret",
|
||||
name = "rocket-turret-mk1",
|
||||
icon = "__Rocket_Turrets__/graphics/icon/turret-rocket-mk1-icon.png",
|
||||
@@ -238,8 +324,9 @@ data:extend({
|
||||
},
|
||||
|
||||
call_for_help_radius = 40
|
||||
},
|
||||
{
|
||||
}
|
||||
|
||||
entity2 = {
|
||||
type = "ammo-turret",
|
||||
name = "rocket-turret-mk2",
|
||||
icon = "__Rocket_Turrets__/graphics/icon/turret-rocket-mk2-icon.png",
|
||||
@@ -297,8 +384,9 @@ data:extend({
|
||||
},
|
||||
|
||||
call_for_help_radius = 40
|
||||
},
|
||||
{
|
||||
}
|
||||
|
||||
entity3 = {
|
||||
type = "ammo-turret",
|
||||
name = "rocket-turret-mk3",
|
||||
icon = "__Rocket_Turrets__/graphics/icon/turret-rocket-mk3-icon.png",
|
||||
@@ -356,8 +444,9 @@ data:extend({
|
||||
},
|
||||
|
||||
call_for_help_radius = 40
|
||||
},
|
||||
{
|
||||
}
|
||||
|
||||
entity4 = {
|
||||
type = "ammo-turret",
|
||||
name = "rocket-turret-mk4",
|
||||
icon = "__Rocket_Turrets__/graphics/icon/turret-rocket-mk4-icon.png",
|
||||
@@ -415,8 +504,9 @@ data:extend({
|
||||
},
|
||||
|
||||
call_for_help_radius = 40
|
||||
},
|
||||
{
|
||||
}
|
||||
|
||||
entity5 = {
|
||||
type = "ammo-turret",
|
||||
name = "rocket-turret-mk5",
|
||||
icon = "__Rocket_Turrets__/graphics/icon/turret-rocket-mk5-icon.png",
|
||||
@@ -474,5 +564,4 @@ data:extend({
|
||||
},
|
||||
|
||||
call_for_help_radius = 40
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user