2020-04-26 03:48:47 +00:00
|
|
|
Baseless.RegisterIfNew {
|
|
|
|
Baseless.Make.Base("trigger-target-type", "ground-unit", {}),
|
|
|
|
Baseless.Make.DamageType("impact", {}),
|
2020-08-15 02:12:30 +00:00
|
|
|
Baseless.Make.DamageType("physical", {}),
|
2020-04-26 03:48:47 +00:00
|
|
|
Baseless.Make.EquipmentGrid("small-equipment-grid", {}),
|
|
|
|
Baseless.Make.Item(nil, "copper-cable", {}),
|
|
|
|
Baseless.Make.Item(nil, "green-wire", {}),
|
2020-08-15 02:12:30 +00:00
|
|
|
Baseless.Make.Item(nil, "red-wire", {}),
|
2020-04-26 03:48:47 +00:00
|
|
|
Baseless.Make.RecipeCategory("crafting", {}),
|
|
|
|
Baseless.Make.ResourceCategory("basic-solid", {}),
|
|
|
|
Baseless.Make.TrivialSmoke("smoke-building", {}),
|
|
|
|
Baseless.Make.VirtualSignal("signal-anything", {}),
|
|
|
|
Baseless.Make.VirtualSignal("signal-each", {}),
|
2020-08-15 02:12:30 +00:00
|
|
|
Baseless.Make.VirtualSignal("signal-everything", {}),
|
2020-04-26 03:48:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if Baseless.RegisterIfNew(
|
|
|
|
Baseless.Make.ItemSubGroup("other", "dummy-item-group", {})
|
|
|
|
) then
|
|
|
|
Baseless.RegisterIfNew(
|
|
|
|
Baseless.Make.ItemGroup()
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
2020-08-11 22:29:57 +00:00
|
|
|
if Baseless.RegisterIfNew(
|
|
|
|
Baseless.Make.ItemSubGroup("fluid", "dummy-item-group", {})
|
|
|
|
) then
|
|
|
|
Baseless.RegisterIfNew(
|
|
|
|
Baseless.Make.ItemGroup()
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
2020-04-26 03:48:47 +00:00
|
|
|
-- Requires at least one tile that is walkable and not minable
|
|
|
|
for _,tile in pairs(data.raw["tile"] or {}) do
|
|
|
|
if tile.minable == nil then
|
|
|
|
for _,mask in pairs(tile.collision_mask or {}) do
|
|
|
|
if mask == "ground-tile" then
|
|
|
|
goto after_tile
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
Baseless.RegisterIfNew {
|
|
|
|
Baseless.Make.Tile(nil, {
|
|
|
|
collision_mask = {"ground-tile"},
|
|
|
|
}),
|
|
|
|
}
|
|
|
|
::after_tile::
|
|
|
|
|
|
|
|
-- Deprecated prototypes
|
|
|
|
Baseless.RegisterIfUnique {
|
|
|
|
Baseless.Make.Entity("leaf-particle", "leaf-particle-for-migration", {}),
|
|
|
|
Baseless.Make.Entity("particle", "particle-for-migration", {}),
|
|
|
|
Baseless.Make.Smoke("smoke", "smoke-for-migration", {}),
|
|
|
|
Baseless.Make.Tool("mining-tool", "mining-tool-for-migration", {}),
|
|
|
|
}
|