Add Item:defaultImportLocation

This commit is contained in:
Simon Brodtmann 2025-12-12 18:36:15 +01:00
parent bf7d05e3be
commit a6f495af8b

View file

@ -57,4 +57,11 @@ function Item:itemsPerRocket(count)
return self
end
--- Sets the default import location for space platforms
--- @param planetName string The name of the planet
function Item:defaultImportLocation(planetName)
self.prototype.default_import_location = planetName
return self
end
return Item