gas graphics, more
This commit is contained in:
parent
6de690a092
commit
0f5624233d
10 changed files with 54 additions and 13 deletions
57
gas.lua
57
gas.lua
|
@ -51,6 +51,8 @@ data:extend({
|
||||||
-- walking_sound = sounds.oil,
|
-- walking_sound = sounds.oil,
|
||||||
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
|
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
|
||||||
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
|
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
|
||||||
|
map_color = {0.9, 0.7, 0.2},
|
||||||
|
map_grid = false,
|
||||||
autoplace = resource_autoplace.resource_autoplace_settings
|
autoplace = resource_autoplace.resource_autoplace_settings
|
||||||
{
|
{
|
||||||
name = "gas",
|
name = "gas",
|
||||||
|
@ -69,28 +71,57 @@ data:extend({
|
||||||
{
|
{
|
||||||
sheet =
|
sheet =
|
||||||
{
|
{
|
||||||
filename = "__base__/graphics/entity/crude-oil/crude-oil.png",
|
filename = "__bzgas__/graphics/entity/ores/gas.png",
|
||||||
priority = "extra-high",
|
priority = "extra-high",
|
||||||
width = 74,
|
width = 64,
|
||||||
height = 60,
|
height = 64,
|
||||||
frame_count = 4,
|
frame_count = 4,
|
||||||
variation_count = 1,
|
variation_count = 1,
|
||||||
shift = futil.by_pixel(0, -2),
|
shift = futil.by_pixel(0, -12),
|
||||||
hr_version =
|
hr_version =
|
||||||
{
|
{
|
||||||
filename = "__base__/graphics/entity/crude-oil/hr-crude-oil.png",
|
filename = "__bzgas__/graphics/entity/ores/hr-gas.png",
|
||||||
priority = "extra-high",
|
priority = "extra-high",
|
||||||
width = 148,
|
width = 128,
|
||||||
height = 120,
|
height = 128,
|
||||||
frame_count = 4,
|
frame_count = 4,
|
||||||
variation_count = 1,
|
variation_count = 1,
|
||||||
shift = futil.by_pixel(0, -2),
|
shift = futil.by_pixel(0, -12),
|
||||||
scale = 0.5
|
scale = 0.5,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
map_color = {0.67, 0.87, 0.77},
|
stages_effect =
|
||||||
map_grid = false
|
{
|
||||||
|
sheet =
|
||||||
|
{
|
||||||
|
filename = "__bzgas__/graphics/entity/ores/gas-effect.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 64,
|
||||||
|
height = 64,
|
||||||
|
frame_count = 4,
|
||||||
|
variation_count = 1,
|
||||||
|
shift = futil.by_pixel(0, -12),
|
||||||
|
blend_mode = "normal",
|
||||||
|
hr_version =
|
||||||
|
{
|
||||||
|
filename = "__bzgas__/graphics/entity/ores/hr-gas-effect.png",
|
||||||
|
priority = "extra-high",
|
||||||
|
width = 128,
|
||||||
|
height = 128,
|
||||||
|
frame_count = 4,
|
||||||
|
variation_count = 1,
|
||||||
|
shift = futil.by_pixel(0, -17),
|
||||||
|
scale = 0.5,
|
||||||
|
blend_mode = "normal",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
effect_animation_period = 3.5,
|
||||||
|
effect_animation_period_deviation = 1.5,
|
||||||
|
effect_darkness_multiplier = 3.6,
|
||||||
|
min_effect_alpha = 0.1,
|
||||||
|
max_effect_alpha = 0.9,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "fluid",
|
type = "fluid",
|
||||||
|
@ -100,8 +131,8 @@ data:extend({
|
||||||
fuel_value = "1KJ",
|
fuel_value = "1KJ",
|
||||||
base_color = {r=0.67, g=0.87, b=0.77},
|
base_color = {r=0.67, g=0.87, b=0.77},
|
||||||
flow_color = {r=0.67, g=0.87, b=0.87},
|
flow_color = {r=0.67, g=0.87, b=0.87},
|
||||||
icon = "__base__/graphics/icons/crude-oil-resource.png",
|
icon = "__bzgas__/graphics/icons/gas.png",
|
||||||
icon_size = 64,
|
icon_size = 128,
|
||||||
order = "a[fluid]-f[organotins]"
|
order = "a[fluid]-f[organotins]"
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
BIN
graphics/entity/ores/gas-effect.png
Normal file
BIN
graphics/entity/ores/gas-effect.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
BIN
graphics/entity/ores/gas-effect.xcf
Normal file
BIN
graphics/entity/ores/gas-effect.xcf
Normal file
Binary file not shown.
BIN
graphics/entity/ores/gas.png
Normal file
BIN
graphics/entity/ores/gas.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
BIN
graphics/entity/ores/gas.xcf
Normal file
BIN
graphics/entity/ores/gas.xcf
Normal file
Binary file not shown.
BIN
graphics/entity/ores/hr-gas-effect.png
Normal file
BIN
graphics/entity/ores/hr-gas-effect.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
BIN
graphics/entity/ores/hr-gas.png
Normal file
BIN
graphics/entity/ores/hr-gas.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
BIN
graphics/icons/gas.png
Normal file
BIN
graphics/icons/gas.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
graphics/icons/gas.xcf
Normal file
BIN
graphics/icons/gas.xcf
Normal file
Binary file not shown.
10
map-gen-preset-updates.lua
Normal file
10
map-gen-preset-updates.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
|
||||||
|
for name, preset in pairs(data.raw["map-gen-presets"].default) do
|
||||||
|
if type(preset) == "table" and
|
||||||
|
preset.basic_settings and
|
||||||
|
preset.basic_settings.autoplace_controls and
|
||||||
|
preset.basic_settings.autoplace_controls["iron-ore"] then
|
||||||
|
preset.basic_settings.autoplace_controls["gas"] = preset.basic_settings.autoplace_controls["gas"]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue