Skip to content

Commit

Permalink
Replace can_hold with contents_allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Jan 14, 2024
1 parent 9681826 commit b61bcb2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion maps/sierra/items/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sierra specific items
/obj/item/reagent_containers/hypospray/autoinjector/pain,
/obj/item/stack/medical/bruise_pack
)
can_hold = list(
contents_allowed = list(
/obj/item/reagent_containers/hypospray/autoinjector,
/obj/item/stack/medical/bruise_pack
)
Expand Down
4 changes: 2 additions & 2 deletions mods/music_player/code/music_tape.dm
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@
icon = 'mods/music_player/icons/object.dmi'
icon_state = "tape_holder"
w_class = ITEM_SIZE_SMALL
max_w_class = ITEM_SIZE_SMALL //Don't worry, see can_hold[]
max_w_class = ITEM_SIZE_SMALL //Don't worry, see contents_allowed[]
max_storage_space = 5
can_hold = list(
contents_allowed = list(
/obj/item/music_tape,
/obj/item/device/flashlight/pen,
/obj/item/device/tape,
Expand Down
2 changes: 1 addition & 1 deletion packs/infinity/items/hookah.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
desc = "A box with coals for a hookah."
icon_state = "largebox"
startswith = list(/obj/item/coal = 10)
can_hold = list(/obj/item/coal)
contents_allowed = list(/obj/item/coal)
w_class = ITEM_SIZE_LARGE
max_w_class = ITEM_SIZE_NORMAL
max_storage_space = DEFAULT_LARGEBOX_STORAGE
Expand Down

0 comments on commit b61bcb2

Please sign in to comment.