Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes the pulling of trading cards out of a pack message being visible to other people #5852

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/game/objects/items/storage/fancy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@

/obj/item/storage/fancy/cigarettes/trading_card/attack_hand(mob/user, mods)
if(trading_card?.loc == src && loc == user)
user.visible_message(SPAN_NOTICE("You pull a [trading_card.collection_color] trading card out of the cigarette pack."))
to_chat(user, SPAN_NOTICE("You pull a [trading_card.collection_color] trading card out of the cigarette pack."))
//have to take two disparate systems n' ram 'em together
remove_from_storage(trading_card, user.loc)
user.put_in_hands(trading_card)
Expand Down Expand Up @@ -491,7 +491,7 @@

/obj/item/storage/fancy/trading_card/attack_hand(mob/user, mods)
if(top_trading_card?.loc == src && loc == user)
user.visible_message(SPAN_NOTICE("You pull a [top_trading_card.collection_color] trading card out of the pack."))
to_chat(user, SPAN_NOTICE("You pull a [top_trading_card.collection_color] trading card out of the pack."))
//have to take two disparate systems n' ram 'em together
remove_from_storage(top_trading_card, user.loc)
user.put_in_hands(top_trading_card)
Expand Down
Loading