Skip to content

Commit

Permalink
Hide corpses from factoriopedia #302
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Jan 12, 2025
1 parent 49b51ac commit f23fb6c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bobenemies/prototypes/biters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-a[biter]-c[big]",
Expand Down Expand Up @@ -240,6 +241,7 @@ data:extend({
icon = "__base__/graphics/icons/medium-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-a[biter]-d[bigger]",
Expand Down Expand Up @@ -367,6 +369,7 @@ data:extend({
icon = "__base__/graphics/icons/medium-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-a[biter]-d[bigger]",
Expand Down Expand Up @@ -498,6 +501,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-a[biter]-e[biggest]",
Expand Down Expand Up @@ -628,6 +632,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-a[biter]-e[biggest]",
Expand Down Expand Up @@ -766,6 +771,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-a[biter]-e[titan]",
Expand Down Expand Up @@ -914,6 +920,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-a[biter]-e[behemoth]",
Expand Down Expand Up @@ -1076,6 +1083,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1.2, -1.2 }, { 1.2, 1.2 } },
subgroup = "corpses",
order = "c[corpse]-a[biter]-f[leviathan]",
Expand Down
1 change: 1 addition & 0 deletions bobenemies/prototypes/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function bobmods.enemies.new_biter(input)
icon = input.icon or "__base__/graphics/icons/big-biter-corpse.png",
icon_size = input.icon_size or 32,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1 * input.scale, -1 * input.scale }, { 1 * input.scale, 1 * input.scale } },
subgroup = "corpses",
order = "c[corpse]-" .. input.order,
Expand Down
3 changes: 3 additions & 0 deletions bobenemies/prototypes/spawners.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ data:extend({
collision_box = { { -2, -2 }, { 2, 2 } },
selection_box = { { -2, -2 }, { 2, 2 } },
selectable_in_game = false,
hidden_in_factoriopedia = true,
dying_speed = 0.04,
subgroup = "corpses",
order = "c[corpse]-d[big-biter-spawner]",
Expand Down Expand Up @@ -243,6 +244,7 @@ data:extend({
collision_box = { { -2, -2 }, { 2, 2 } },
selection_box = { { -2, -2 }, { 2, 2 } },
selectable_in_game = false,
hidden_in_factoriopedia = true,
dying_speed = 0.04,
subgroup = "corpses",
order = "c[corpse]-c[big-spitter-spawner]",
Expand Down Expand Up @@ -386,6 +388,7 @@ if settings.startup["bobmods-enemies-superspawner"].value == true then
collision_box = { { -2, -2 }, { 2, 2 } },
selection_box = { { -2, -2 }, { 2, 2 } },
selectable_in_game = false,
hidden_in_factoriopedia = true,
dying_speed = 0.04,
subgroup = "corpses",
order = "c[corpse]-c[super-spawner]",
Expand Down
8 changes: 8 additions & 0 deletions bobenemies/prototypes/spitters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-b[spitter]-c[big]",
Expand Down Expand Up @@ -208,6 +209,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-b[spitter]-d[bigger]",
Expand Down Expand Up @@ -313,6 +315,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-b[spitter]-d[bigger]",
Expand Down Expand Up @@ -417,6 +420,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-b[spitter]-e[biggest]",
Expand Down Expand Up @@ -521,6 +525,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-b[spitter]-e[biggest]",
Expand Down Expand Up @@ -627,6 +632,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-b[spitter]-e[titan]",
Expand Down Expand Up @@ -738,6 +744,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1, -1 }, { 1, 1 } },
subgroup = "corpses",
order = "c[corpse]-b[spitter]-e[behemoth]",
Expand Down Expand Up @@ -852,6 +859,7 @@ data:extend({
icon = "__base__/graphics/icons/big-biter-corpse.png",
icon_size = 64,
selectable_in_game = false,
hidden_in_factoriopedia = true,
selection_box = { { -1.2, -1.2 }, { 1.2, 1.2 } },
subgroup = "corpses",
order = "c[corpse]-b[spitter]-f[leviathan]",
Expand Down

0 comments on commit f23fb6c

Please sign in to comment.