Add Item:defaultImportLocation
This commit is contained in:
parent
bf7d05e3be
commit
a6f495af8b
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue