Skip to content

Commit

Permalink
Update entities.lua
Browse files Browse the repository at this point in the history
Updated picture shifts
  • Loading branch information
Jackalope-Gaming committed Mar 19, 2016
1 parent a7501ac commit 7cd759d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions prototypes/entities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
data.raw["cargo-wagon"]["cargo-wagon"].connection_distance = 3.4
data.raw["cargo-wagon"]["cargo-wagon"].joint_distance = 4.6
data.raw["cargo-wagon"]["cargo-wagon"].pictures.scale = 1.095
data.raw["cargo-wagon"]["cargo-wagon"].pictures.shift = {0.7665, -0.60}
data.raw["cargo-wagon"]["cargo-wagon"].pictures.shift = {0.8, -0.55}

data.raw["locomotive"]["diesel-locomotive"].collision_box = {{-0.6, -2.6}, {0.6, 2.6}}
data.raw["locomotive"]["diesel-locomotive"].selection_box = {{-1, -4.5}, {1, 3}}
data.raw["locomotive"]["diesel-locomotive"].connection_distance = 3.4
data.raw["locomotive"]["diesel-locomotive"].joint_distance = 4.6
data.raw["locomotive"]["diesel-locomotive"].pictures.shift = {1.0, -0.5}

--FARL's FARL locomotive
if data.raw["locomotive"]["farl"] then
data.raw["locomotive"]["farl"].collision_box = {{-0.6, -2.6}, {0.6, 2.6}}
data.raw["locomotive"]["farl"].selection_box = {{-1, -4.5}, {1, 3}}
data.raw["locomotive"]["farl"].connection_distance = 3.4
data.raw["locomotive"]["farl"].joint_distance = 4.6
data.raw["locomotive"]["farl"].pictures.shift = {1.0, -0.5}
end

--RailTanker's rail tanker cargo wagon
Expand All @@ -35,20 +37,23 @@
data.raw["locomotive"]["diesel-locomotive-2"].selection_box = {{-1, -4.5}, {1, 3}}
data.raw["locomotive"]["diesel-locomotive-2"].connection_distance = 3.4
data.raw["locomotive"]["diesel-locomotive-2"].joint_distance = 4.6
data.raw["locomotive"]["diesel-locomotive-2"].pictures.shift = {1.0, -0.5}
end

if data.raw["locomotive"]["diesel-locomotive-3"] then
data.raw["locomotive"]["diesel-locomotive-3"].collision_box = {{-0.6, -2.6}, {0.6, 2.6}}
data.raw["locomotive"]["diesel-locomotive-3"].selection_box = {{-1, -4.5}, {1, 3}}
data.raw["locomotive"]["diesel-locomotive-3"].connection_distance = 3.4
data.raw["locomotive"]["diesel-locomotive-3"].joint_distance = 4.6
data.raw["locomotive"]["diesel-locomotive-3"].pictures.shift = {1.0, -0.5}
end

if data.raw["locomotive"]["armoured-diesel-locomotive"] then
data.raw["locomotive"]["armoured-diesel-locomotive"].collision_box = {{-0.6, -2.6}, {0.6, 2.6}}
data.raw["locomotive"]["armoured-diesel-locomotive"].selection_box = {{-1, -4.5}, {1, 3}}
data.raw["locomotive"]["armoured-diesel-locomotive"].connection_distance = 3.4
data.raw["locomotive"]["armoured-diesel-locomotive"].joint_distance = 4.6
data.raw["locomotive"]["armoured-diesel-locomotive"].pictures.shift = {1.0, -0.5}
end

if data.raw["cargo-wagon"]["cargo-wagon-2"] then
Expand All @@ -57,7 +62,7 @@
data.raw["cargo-wagon"]["cargo-wagon-2"].connection_distance = 3.4
data.raw["cargo-wagon"]["cargo-wagon-2"].joint_distance = 4.6
data.raw["cargo-wagon"]["cargo-wagon-2"].pictures.scale = 1.095
data.raw["cargo-wagon"]["cargo-wagon-2"].pictures.shift = {0.7665, -0.60}
data.raw["cargo-wagon"]["cargo-wagon-2"].pictures.shift = {0.8, -0.55}
end

if data.raw["cargo-wagon"]["cargo-wagon-3"] then
Expand All @@ -66,7 +71,7 @@
data.raw["cargo-wagon"]["cargo-wagon-3"].connection_distance = 3.4
data.raw["cargo-wagon"]["cargo-wagon-3"].joint_distance = 4.6
data.raw["cargo-wagon"]["cargo-wagon-3"].pictures.scale = 1.095
data.raw["cargo-wagon"]["cargo-wagon-3"].pictures.shift = {0.7665, -0.60}
data.raw["cargo-wagon"]["cargo-wagon-3"].pictures.shift = {0.8, -0.55}
end

if data.raw["cargo-wagon"]["armoured-cargo-wagon"] then
Expand All @@ -75,5 +80,5 @@
data.raw["cargo-wagon"]["armoured-cargo-wagon"].connection_distance = 3.4
data.raw["cargo-wagon"]["armoured-cargo-wagon"].joint_distance = 4.6
data.raw["cargo-wagon"]["armoured-cargo-wagon"].pictures.scale = 1.095
data.raw["cargo-wagon"]["armoured-cargo-wagon"].pictures.shift = {0.7665, -0.60}
data.raw["cargo-wagon"]["armoured-cargo-wagon"].pictures.shift = {0.8, -0.55}
end

0 comments on commit 7cd759d

Please sign in to comment.