: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
|
--- 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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue