Compare commits

..

No commits in common. "master" and "0.0.13" have entirely different histories.

5 changed files with 2 additions and 31 deletions

View file

@ -1,9 +1,4 @@
---------------------------------------------------------------------------------------------------
Version: 0.0.14
Date: 10.06.2025
Changes:
Add :merge
---------------------------------------------------------------------------------------------------
Version: 0.0.13
Date: 23.05.2025
Changes:

View file

@ -42,14 +42,6 @@ function Item:assign(data)
return self
end
--- Deeply merges data with the item
--- Shorthand for table.merge(item.prototype, data)
--- @param data table The data to merge
function Item:merge(data)
table.merge(self.prototype, data)
return self
end
--- Sets the weight of the item calculated from given count per rocket.
--- @param count number The amount of items that fit into a rocket
function Item:itemsPerRocket(count)

View file

@ -42,14 +42,6 @@ function Recipe:assign(data)
return self
end
--- Deeply merges data with the recipe
--- Shorthand for table.merge(recipe.prototype, data)
--- @param data table The data to merge
function Recipe:merge(data)
table.merge(self.prototype, data)
return self
end
--- Adds an ingredient to the recipe
--- @param ingredientName string The name of the ingredient
--- @param amount number The amount of the ingredient (default: 1)
@ -70,7 +62,7 @@ function Recipe:addIngredient(ingredientName, amount)
ingredient.amount_min = nil
ingredient.amount_max = nil
ingredient.probability = nil
return self
return
end
end
table.insert(self.prototype.ingredients, { name = ingredientName, amount = amount, type = ingredientType })

View file

@ -50,14 +50,6 @@ function Technology:assign(data)
return self
end
--- Deeply merges data with the technology
--- Shorthand for table.merge(technology.prototype, data)
--- @param data table The data to merge
function Technology:merge(data)
table.merge(self.prototype, data)
return self
end
--- Sets the prerequisite for the technology
--- @param prerequisites table The names of the prerequisites
function Technology:setPrerequisites(prerequisites)

View file

@ -1,6 +1,6 @@
{
"name": "cf-lib",
"version": "0.0.14",
"version": "0.0.13",
"title": "cackling fiends library",
"description": "Because I'd like to have my own library :-)",
"author": "cackling fiend",