Skip to content

Commit

Permalink
Фикс крафтов из золота и пластика (#3308)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pivo24 authored Feb 24, 2025
1 parent 8824c02 commit daa7c3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 4 additions & 0 deletions mods/fancy_sofas/code/roundedchair.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ ROUNDEDCHAIR(light)
#undef ROUNDEDCHAIR

/material/generate_recipes()
.=..()
if(integrity >= 50 && hardness >= MATERIAL_FLEXIBLE + 10)
.=..()
. += new/datum/stack_recipe_list("padded [display_name] rounded chairs", create_recipe_list(/datum/stack_recipe/furniture/chair/rounded))
. += new/datum/stack_recipe_list("padded [display_name] right sofas", create_recipe_list(/datum/stack_recipe/furniture/sofa/r))
. += new/datum/stack_recipe_list("padded [display_name] middle sofas", create_recipe_list(/datum/stack_recipe/furniture/sofa/m))
. += new/datum/stack_recipe_list("padded [display_name] left sofas", create_recipe_list(/datum/stack_recipe/furniture/sofa/l))
7 changes: 0 additions & 7 deletions mods/fancy_sofas/code/sofa.dm
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,3 @@ RIGHT_SOFA(green)
RIGHT_SOFA(yellow)
RIGHT_SOFA(light)
#undef RIGHT_SOFA

/material/generate_recipes()
if(integrity >= 50 && hardness >= MATERIAL_FLEXIBLE + 10)
.=..()
. += new/datum/stack_recipe_list("padded [display_name] right sofas", create_recipe_list(/datum/stack_recipe/furniture/sofa/r))
. += new/datum/stack_recipe_list("padded [display_name] middle sofas", create_recipe_list(/datum/stack_recipe/furniture/sofa/m))
. += new/datum/stack_recipe_list("padded [display_name] left sofas", create_recipe_list(/datum/stack_recipe/furniture/sofa/l))

0 comments on commit daa7c3d

Please sign in to comment.