Skip to content

Commit

Permalink
Fix item types
Browse files Browse the repository at this point in the history
- Removed mining-tool
- Removed spidertron-remote
- Added rts_tool
  • Loading branch information
KiwiHawk committed Sep 18, 2024
1 parent d7c3a43 commit 9c9a7e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
21 changes: 10 additions & 11 deletions boblibrary/item-functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,25 @@ function bobmods.lib.item.get_type(name) --returns actual item type
local item_types = {
"ammo",
"armor",
"blueprint",
"blueprint-book",
"capsule",
"copy-paste-tool",
"deconstruction-item",
"fluid",
"gun",
"item",
"mining-tool",
"repair-tool",
"module",
"tool",
"item-with-entity-data",
"rail-planner",
"item-with-label",
"item-with-inventory",
"blueprint-book",
"item-with-label",
"item-with-tags",
"module",
"rail-planner",
"repair-tool",
"rts-tool",
"selection-tool",
"blueprint",
"copy-paste-tool",
"deconstruction-item",
"tool",
"upgrade-item",
"spidertron-remote",
}
for i, type_name in pairs(item_types) do
if data.raw[type_name][name] then
Expand Down
4 changes: 0 additions & 4 deletions bobwarfare/prototypes/spidertron.lua
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,6 @@ data:extend({
type = "unlock-recipe",
recipe = "spidertron"
},
{
type = "unlock-recipe",
recipe = "spidertron-remote"
}
},
prerequisites =
{
Expand Down

0 comments on commit 9c9a7e3

Please sign in to comment.