From a6f495af8b9ad96e45b6ce19636345c4235cfbda Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Fri, 12 Dec 2025 18:36:15 +0100 Subject: [PATCH] Add Item:defaultImportLocation --- cf-lib/data/Item.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cf-lib/data/Item.lua b/cf-lib/data/Item.lua index 1cfffcf..5934a72 100644 --- a/cf-lib/data/Item.lua +++ b/cf-lib/data/Item.lua @@ -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 \ No newline at end of file