:apply() returns self
This commit is contained in:
parent
5a0f1975ef
commit
48325fd78d
3 changed files with 3 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ end
|
|||
--- Applies the item to the game
|
||||
function Item:apply()
|
||||
data:extend({ self.prototype })
|
||||
return self
|
||||
end
|
||||
|
||||
--- Assigns data to the item
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ end
|
|||
--- Applies the recipe to the game
|
||||
function Recipe:apply()
|
||||
data:extend({ self.prototype })
|
||||
return self
|
||||
end
|
||||
|
||||
--- Assigns data to the recipe
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ end
|
|||
--- Applies the technology to the game
|
||||
function Technology:apply()
|
||||
data:extend({ self.prototype })
|
||||
return self
|
||||
end
|
||||
|
||||
--- Assigns data to the technology
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue