Skip to content

Commit

Permalink
Remove all code related to icon_mipmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Nov 9, 2024
1 parent 2fc229a commit 163faf1
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 26 deletions.
5 changes: 0 additions & 5 deletions data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ require "prototypes/technologies/stacking-belts"

ITEM("automation-science-pack", "tool"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/science-pack-1.png")
ITEM("automation-science-pack", "tool"):set("icon_size", 64)
ITEM("automation-science-pack", "tool"):set("icon_mipmaps", nil)

ITEM("logistic-science-pack", "tool"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/science-pack-2.png")
ITEM("logistic-science-pack", "tool"):set("icon_size", 64)
ITEM("logistic-science-pack", "tool"):set("icon_mipmaps", nil)

ITEM("chemical-science-pack", "tool"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/science-pack-3.png")
ITEM("chemical-science-pack", "tool"):set("icon_size", 64)
ITEM("chemical-science-pack", "tool"):set("icon_mipmaps", nil)

ITEM("lab"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/lab-mk01.png")
ITEM("lab"):set("icon_size", 64)
ITEM("lab"):set("icon_mipmaps", nil)

ITEM("electric-engine-unit"):set("icon", "__pycoalprocessinggraphics__/graphics/icons/electric-engine-unit.png")
ITEM("electric-engine-unit"):set("icon_size", 64)
ITEM("electric-engine-unit"):set("icon_mipmaps", nil)

RECIPE("small-electric-pole"):replace_result("small-electric-pole", {"small-electric-pole", amount = 1})

Expand Down
2 changes: 0 additions & 2 deletions prototypes/buildings/beacon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,13 @@ for am = 5, 1, -1 do
beacon.next_upgrade = nil
beacon.icon = "__pycoalprocessinggraphics__/graphics/icons/beacon.png"
beacon.icon_size = 64
beacon.icon_mipmaps = nil
data:extend {beacon}
end
end

data.raw.item.beacon.place_result = "beacon-AM1-FM1"
data.raw.item.beacon.icon = "__pycoalprocessinggraphics__/graphics/icons/beacon.png"
data.raw.item.beacon.icon_size = 64
data.raw.item.beacon.icon_mipmaps = nil
data.raw.item.beacon.stack_size = 100
data.raw.beacon.beacon.subgroup = data.raw.item.beacon.subgroup

Expand Down
2 changes: 0 additions & 2 deletions prototypes/buildings/diet-beacon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ TECHNOLOGY {
name = "diet-beacon",
icon = "__base__/graphics/technology/module.png",
icon_size = 256,
icon_mipmaps = 4,
prerequisites = {"speed-module", "productivity-module", "efficiency-module"},
effects = {},
unit = {
Expand Down Expand Up @@ -140,7 +139,6 @@ for am = 5, 1, -1 do
beacon.minable = {mining_time = 0.2, result = "beacon-mk01"}
beacon.icon = "__pycoalprocessinggraphics__/graphics/icons/beacon-01.png"
beacon.icon_size = 64
beacon.icon_mipmaps = nil
data:extend {beacon}
end
end
Expand Down
2 changes: 1 addition & 1 deletion prototypes/technologies/artillery-2.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TECHNOLOGY {
type = "technology",
name = "artillery-2",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects = {},
prerequisites = {"artillery"},
Expand Down
26 changes: 13 additions & 13 deletions prototypes/technologies/artillery-range.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-1",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -29,7 +29,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-2",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -58,7 +58,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-3",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -87,7 +87,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-4",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -116,7 +116,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-5",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -145,7 +145,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-6",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -175,7 +175,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-7",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -205,7 +205,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-8",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -235,7 +235,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-9",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -266,7 +266,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-10",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -297,7 +297,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-11",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -328,7 +328,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-12",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down Expand Up @@ -359,7 +359,7 @@ TECHNOLOGY {
TECHNOLOGY {
type = "technology",
name = "artillery-shell-range-13",
icon_size = 256, icon_mipmaps = 4,
icon_size = 256,
icon = "__base__/graphics/technology/artillery.png",
effects =
{
Expand Down
2 changes: 0 additions & 2 deletions prototypes/updates/base-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,12 @@ for i = 1, 6 do
-- Speed icon
{
icon = "__core__/graphics/icons/technology/constants/constant-speed.png",
icon_mipmaps = 3,
icon_size = 128,
scale = 0.5,
shift = {50, 50}
}
})
tech:set("icon_size", 128)
tech:set("icon_mipmaps", nil)
end

-- Recipe unlocks
Expand Down
2 changes: 1 addition & 1 deletion prototypes/updates/pyindustry-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ITEM {
type = "item",
stack_size = 10,
icon = "__pycoalprocessinggraphics__/graphics/icons/py-logo-15tiles.png",
icon_size = 64, icon_mipmaps = 4,
icon_size = 64,
place_result = "py-logo-15tiles",
flags = {},
subgroup = "py-walls",
Expand Down

0 comments on commit 163faf1

Please sign in to comment.