Skip to content

Commit

Permalink
Merge pull request #4616 from MistakeNot4892/feature/rug
Browse files Browse the repository at this point in the history
Adding a small circular rug.
  • Loading branch information
out-of-phaze authored Dec 9, 2024
2 parents 95774f3 + dc46237 commit bc40151
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
12 changes: 12 additions & 0 deletions code/game/objects/structures/rug.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/obj/structure/rug
name = "rug"
desc = "A small, circular floor covering."
icon = 'icons/obj/structures/rug.dmi'
material = /decl/material/solid/organic/cloth/wool
icon_state = ICON_STATE_WORLD
paint_color = COLOR_GRAY20
color = COLOR_GRAY20

/obj/structure/rug/crafted
paint_color = null
color = null
6 changes: 6 additions & 0 deletions code/modules/crafting/stack_recipes/recipes_grass.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
return FALSE
return ..()

/decl/stack_recipe/woven/rug
result_type = /obj/structure/rug/crafted
one_per_turf = TRUE
on_floor = TRUE
category = "furniture"

/decl/stack_recipe/woven/basket
result_type = /obj/item/basket

Expand Down
16 changes: 11 additions & 5 deletions code/modules/crafting/stack_recipes/recipes_textiles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@
crafting_extra_cost_factor = 1.5 // measure twice, cut once; material is lost. todo: produce scraps?
abstract_type = /decl/stack_recipe/textiles

/decl/stack_recipe/textiles/rug
result_type = /obj/structure/rug/crafted
one_per_turf = TRUE
on_floor = TRUE
category = "furniture"

/decl/stack_recipe/textiles/cloak
result_type = /obj/item/clothing/suit/cloak/hide
category = "clothing"
result_type = /obj/item/clothing/suit/cloak/hide
category = "clothing"

/decl/stack_recipe/textiles/banner
name = "banner"
Expand Down Expand Up @@ -60,9 +66,9 @@
category = "clothing"

/decl/stack_recipe/textiles/leather/bedroll
result_type = /obj/item/bedroll
difficulty = MAT_VALUE_NORMAL_DIY // Slightly easier than making clothing.
category = "bedding"
result_type = /obj/item/bedroll
difficulty = MAT_VALUE_NORMAL_DIY // Slightly easier than making clothing.
category = "bedding"

/decl/stack_recipe/textiles/leather/shoes
result_type = /obj/item/clothing/shoes/craftable
Expand Down
Binary file added icons/obj/structures/rug.dmi
Binary file not shown.
1 change: 1 addition & 0 deletions nebula.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,7 @@
#include "code\game\objects\structures\racks.dm"
#include "code\game\objects\structures\railing.dm"
#include "code\game\objects\structures\rubble.dm"
#include "code\game\objects\structures\rug.dm"
#include "code\game\objects\structures\safe.dm"
#include "code\game\objects\structures\seaweed.dm"
#include "code\game\objects\structures\showcase.dm"
Expand Down

0 comments on commit bc40151

Please sign in to comment.