Skip to content

Commit

Permalink
subtypes woodencrate
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed Jun 14, 2024
1 parent f793481 commit c24c383
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/stacks/sheets/sheet_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ GLOBAL_LIST_INIT_TYPED(wood_recipes, /datum/stack_recipe, list ( \
new/datum/stack_recipe("campfire", /obj/structure/prop/brazier/frame/full/campfire, 5, time = 15, one_per_turf = ONE_TYPE_PER_TURF, on_floor = TRUE), \
new/datum/stack_recipe("wooden chair", /obj/structure/bed/chair/wood/normal, 1, time = 10, one_per_turf = ONE_TYPE_PER_TURF, on_floor = 1), \
new/datum/stack_recipe("wooden barricade", /obj/structure/barricade/wooden, 5, time = 20, one_per_turf = ONE_TYPE_PER_BORDER, on_floor = 1), \
new/datum/stack_recipe("wooden crate", /obj/structure/closet/coffin/woodencrate, 5, time = 15, one_per_turf = ONE_TYPE_PER_TURF, on_floor = 1), \
new/datum/stack_recipe("wooden crate", /obj/structure/closet/crate/woodencrate, 5, time = 15, one_per_turf = ONE_TYPE_PER_TURF, on_floor = 1), \
new/datum/stack_recipe("wooden door", /obj/structure/mineral_door/wood, 10, time = 20, one_per_turf = ONE_TYPE_PER_TURF, on_floor = 1), \
new/datum/stack_recipe("coffin", /obj/structure/closet/coffin, 5, time = 15, one_per_turf = ONE_TYPE_PER_TURF, on_floor = 1), \
new/datum/stack_recipe("baseball bat", /obj/item/weapon/baseballbat, 10, time = 20, on_floor = 1), \
Expand Down
12 changes: 0 additions & 12 deletions code/game/objects/structures/crates_lockers/closets/coffin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,3 @@

open_sound = 'sound/effects/stonedoor_openclose.ogg'
close_sound = 'sound/effects/stonedoor_openclose.ogg'


/obj/structure/closet/coffin/woodencrate //Subtyped here so Req doesn't sell them
name = "wooden crate"
desc = "A wooden crate. Shoddily assembled, spacious and worthless on the ASRS"
icon_state = "closed_woodcrate"
icon_opened = "open_woodcrate"
icon_closed = "closed_woodcrate"
material = MATERIAL_WOOD
store_mobs = FALSE
climbable = TRUE
throwpass = 1
9 changes: 9 additions & 0 deletions code/game/objects/structures/crates_lockers/crates.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
throwpass = 1 //prevents moving crates by hurling things at them
store_mobs = FALSE
var/rigged = 0
// whether or not it's sellable for req points
var/can_sell = TRUE
/// Types this crate can be made into
var/list/crate_customizing_types = list(
Expand Down Expand Up @@ -343,6 +344,14 @@
icon_closed = "closed_trashcart"
can_sell = FALSE

/obj/structure/closet/crate/woodencrate
name = "wooden crate"
desc = "A wooden crate. Shoddily assembled, spacious and worthless on the ASRS"
icon_state = "closed_woodcrate"
icon_opened = "open_woodcrate"
icon_closed = "closed_woodcrate"
can_sell = FALSE

/obj/structure/closet/crate/weapon
name = "weapons crate"
desc = "A weapons crate."
Expand Down
2 changes: 1 addition & 1 deletion maps/map_files/BigRed/BigRed.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -38314,7 +38314,7 @@
},
/area/bigredv2/outside/admin_building)
"taV" = (
/obj/structure/closet/coffin/woodencrate,
/obj/structure/closet/crate/woodencrate,
/obj/effect/decal/cleanable/dirt,
/turf/open/floor{
dir = 1;
Expand Down
2 changes: 1 addition & 1 deletion maps/map_files/LV522_Chances_Claim/LV522_Chances_Claim.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -9043,7 +9043,7 @@
},
/area/lv522/atmos/east_reactor)
"efT" = (
/obj/structure/closet/coffin/woodencrate,
/obj/structure/closet/crate/woodencrate,
/obj/item/clothing/mask/cigarette/weed,
/obj/item/clothing/mask/cigarette/weed,
/obj/item/clothing/mask/cigarette/weed,
Expand Down
6 changes: 3 additions & 3 deletions maps/map_files/USS_Almayer/USS_Almayer.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -42432,7 +42432,7 @@
},
/area/almayer/engineering/laundry)
"kxL" = (
/obj/structure/closet/coffin/woodencrate,
/obj/structure/closet/crate/woodencrate,
/obj/structure/largecrate/random/mini/wooden{
pixel_x = 4;
pixel_y = 6
Expand Down Expand Up @@ -70295,7 +70295,7 @@
/turf/open/floor/almayer,
/area/almayer/living/gym)
"tXj" = (
/obj/structure/closet/coffin/woodencrate,
/obj/structure/closet/crate/woodencrate,
/obj/item/storage/box/m94,
/obj/item/storage/box/m94,
/obj/item/storage/box/m94,
Expand Down Expand Up @@ -81371,7 +81371,7 @@
/turf/open/floor/almayer,
/area/almayer/engineering/laundry)
"xCa" = (
/obj/structure/closet/coffin/woodencrate,
/obj/structure/closet/crate/woodencrate,
/obj/item/frame/table/wood/poor,
/obj/item/frame/table/wood/poor,
/turf/open/floor/almayer{
Expand Down
2 changes: 1 addition & 1 deletion maps/templates/lazy_templates/clf_ert_station.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@
/obj/structure/platform/kutjevo{
dir = 1
},
/obj/structure/closet/coffin/woodencrate,
/obj/structure/closet/crate/woodencrate,
/turf/open/auto_turf/strata_grass/layer1,
/area/adminlevel/ert_station/clf_station)
"uO" = (
Expand Down
4 changes: 2 additions & 2 deletions maps/templates/lazy_templates/twe_ert_station.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
},
/area/adminlevel/ert_station/royal_marines_station)
"dm" = (
/obj/structure/closet/coffin/woodencrate,
/obj/structure/closet/crate/woodencrate,
/obj/effect/decal/cleanable/dirt,
/obj/structure/machinery/light{
dir = 8
Expand Down Expand Up @@ -769,7 +769,7 @@
},
/area/adminlevel/ert_station/royal_marines_station)
"nW" = (
/obj/structure/closet/coffin/woodencrate,
/obj/structure/closet/crate/woodencrate,
/turf/open/floor/almayer{
icon_state = "plate"
},
Expand Down

0 comments on commit c24c383

Please sign in to comment.