Skip to content

Commit

Permalink
Fixes the pulling of trading cards out of a pack message being visibl…
Browse files Browse the repository at this point in the history
…e to other people (#5852)

# About the pull request

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

# Explain why it's good for the game

Bug bad.

# Testing Photographs and Procedure

# Changelog

:cl:
fix: Fixes the pulling of trading cards out of a pack message being
visible to other people
/:cl:
  • Loading branch information
Warfan1815 committed Mar 1, 2024
1 parent 6770dc0 commit 7f86526
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7f86526

Please sign in to comment.