Skip to content

Commit

Permalink
stack recipes are now defaulting to cost 1 instead of null (#6640)
Browse files Browse the repository at this point in the history
  • Loading branch information
silicons committed Aug 7, 2024
1 parent 939b12e commit d3055b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/recipe/stack_recipe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* why? because this is easier to regex later if it turns out silicons code design(tm) was terrible
*/
/proc/create_stack_recipe_datum(name, product, cost, amount = 1, sanity_checks = TRUE, time = 0, recipe_type = /datum/stack_recipe, category, exclusitivity, list/recipe_args)
/proc/create_stack_recipe_datum(name, product, cost = 1, amount = 1, sanity_checks = TRUE, time = 0, recipe_type = /datum/stack_recipe, category, exclusitivity, list/recipe_args)
// check this isn't being misused
ASSERT(!ispath(recipe_type, /datum/stack_recipe/material))
var/datum/stack_recipe/creating = isnull(recipe_args)? (new recipe_type) : (new recipe_type(arglist(recipe_args)))
Expand Down

0 comments on commit d3055b1

Please sign in to comment.