:apply() returns self

This commit is contained in:
Simon Brodtmann 2025-12-24 08:58:26 +01:00
parent 5a0f1975ef
commit 48325fd78d
3 changed files with 3 additions and 0 deletions

View file

@ -32,6 +32,7 @@ end
--- Applies the item to the game --- Applies the item to the game
function Item:apply() function Item:apply()
data:extend({ self.prototype }) data:extend({ self.prototype })
return self
end end
--- Assigns data to the item --- Assigns data to the item

View file

@ -32,6 +32,7 @@ end
--- Applies the recipe to the game --- Applies the recipe to the game
function Recipe:apply() function Recipe:apply()
data:extend({ self.prototype }) data:extend({ self.prototype })
return self
end end
--- Assigns data to the recipe --- Assigns data to the recipe

View file

@ -40,6 +40,7 @@ end
--- Applies the technology to the game --- Applies the technology to the game
function Technology:apply() function Technology:apply()
data:extend({ self.prototype }) data:extend({ self.prototype })
return self
end end
--- Assigns data to the technology --- Assigns data to the technology