Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: harryob <[email protected]>
  • Loading branch information
Warfan1815 and harryob authored Feb 23, 2024
1 parent 501e314 commit 4cb1ed9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions code/game/objects/items/storage/fancy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@
user.put_in_hands(trading_card)
trading_card = null

. = ..()
return ..()

/obj/item/storage/fancy/cigarettes/trading_card/attackby(obj/item/attacked_by_item, mob/user)
if(istype(attacked_by_item, /obj/item/toy/trading_card))
trading_card = attacked_by_item

. = ..()
return ..()

/////////////
//CIGAR BOX//
Expand Down Expand Up @@ -503,13 +503,13 @@
update_icon()
return

. = ..()
return ..()

/obj/item/storage/fancy/trading_card/attackby(obj/item/attacked_by_item, mob/user)
if(istype(attacked_by_item, /obj/item/toy/trading_card))
top_trading_card = attacked_by_item

. = ..()
return ..()

/obj/item/storage/fancy/trading_card/red
collection_color = "red"
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/toys/trading_cards.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
desc = front_description
icon_state = front_icon_state
is_front = TRUE
. = ..()
return ..()

0 comments on commit 4cb1ed9

Please sign in to comment.