-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Weyland Yutani Trading Cards™ (#5665)
# About the pull request Adds Weyland Yutani Trading Cards™ to the rec vendor Adds Weyland Yutani Trading Cards™ packs of five to the rec vendor Adds Weyland Yutani Trading Cards Gold™ cigarette packs to the rec vendor and colony cigarette machines (that exist soley to break the lucky strikes military tobacco monopoly) # Explain why it's good for the game Adds some funny cards for marines to collect and to fight each other over # Testing Photographs and Procedure <details> <summary>Screenshots & Videos</summary> https://cdn.discordapp.com/attachments/745447048261795890/1203903068756906016/2024-02-05_03-17-17.mp4?ex=65d2c91b&is=65c0541b&hm=13a9bbf4e63e9c3f8f14f02233ea9d43eaa62862957474677171dddde10efdf7& </details> # Changelog :cl: add: Added WeyYu Trading Cards (they come in packs of 5, single, or in special packs of WeyYu Gold) buyable at rec vendor (and/or colony tobacco vendors in the case of the special cigarette packs) imageadd: Added sprites of the WeyYu Trading Cards, trading card packs, and special WeyYu Gold cigarette packs. /:cl: --------- Co-authored-by: harryob <[email protected]>
- Loading branch information
Showing
7 changed files
with
195 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/obj/item/toy/trading_card | ||
name = "WeyYu Military Trading Card" | ||
icon = 'icons/obj/items/playing_cards.dmi' | ||
icon_state = "trading_red" | ||
w_class = SIZE_TINY | ||
|
||
var/trading_card_number = "1" | ||
var/picture_description = "barrel charger" | ||
var/collection_color | ||
var/is_front = FALSE | ||
var/back_name = "Red WeyYu Military Trading Card" | ||
var/front_name = "Red WeyYu Military Trading Card Number One" | ||
var/back_description = "The back of a red trading card with the text: WeyYu Military Trading Cards! GOTTA COLLECT EM ALL!" | ||
var/front_description = "A red trading card with a picture of the United Americas flag emblazoned on it. It is number one out of the five red cards." | ||
var/back_icon_state = "trading_red" | ||
var/front_icon_state = "trading_red_one" | ||
var/picture_descriptions = list("5" = list("red" = "a Holy Order of the HEFA cultist", "green" = "General Delyla S. Vaughn (the Assistant Commandant of the United States Colonial Marines)", "blue" = "the Weyland Yutani logo"), | ||
"4" = list("red" = "a UPPA officer", "green" = "General Diego Dellamarggio (the Commandant of the United States Colonial Marines)", "blue" = "the Independent Core System Colonies logo"), | ||
"3" = list("red" = "a UPPA minigunner", "green" = "Generale d'armee Felix Couture (the Commandant of the Canadian Colonial Armed Forces)", "blue" = "the Three World Empire flag"), | ||
"2" = list("red" = "a UPPA soldier", "green" = "Marechal-do-ar Enzo Gabriel Lurdes (the Chief of Naval Operations of the Latin American Colonial Navy)", "blue" = "the Union of Progressive Peoples flag"), | ||
"1" = list("red" = "a fanatical colonial seditionist", "green" = "Almirante Joelle De La Cruz (the United Americas Secretary of Defense)", "blue" = "the United Americas flag",) | ||
) | ||
|
||
/obj/item/toy/trading_card/Initialize() | ||
. = ..() | ||
|
||
if(istype(loc, /obj/item/storage/fancy/trading_card)) | ||
var/obj/item/storage/fancy/trading_card/packet = loc | ||
collection_color = packet.collection_color | ||
|
||
if(!collection_color) | ||
collection_color = pick("red", "green", "blue") | ||
trading_card_number = pick_weight(list("5" = 25, "4" = 20, "3" = 15, "2" = 10, "1" = 5)) | ||
picture_description = picture_descriptions[trading_card_number][collection_color] | ||
|
||
name = "[capitalize(collection_color)] WeyYu Military Trading Card" | ||
back_name = "[capitalize(collection_color)] WeyYu Military Trading Card" | ||
front_name = "[capitalize(collection_color)] WeyYu Military Trading Card #[trading_card_number]" | ||
|
||
desc = "The back of a [collection_color] trading card with the text: WeyYu Military Trading Cards! GOTTA COLLECT EM ALL!" | ||
back_description = "The back of a [collection_color] trading card with the text: WeyYu Military Trading Cards! GOTTA COLLECT EM ALL!" | ||
front_description = "A [collection_color] trading card with a picture of [picture_description] emblazoned on it. It is #[trading_card_number] out of the five [collection_color] cards." | ||
|
||
icon_state = "trading_[collection_color]" | ||
back_icon_state = "trading_[collection_color]" | ||
front_icon_state = "trading_[collection_color]_[trading_card_number]" | ||
|
||
/obj/item/toy/trading_card/attack_self(mob/user) | ||
if(loc == user) | ||
if(is_front) | ||
name = back_name | ||
desc = back_description | ||
icon_state = back_icon_state | ||
is_front = FALSE | ||
else | ||
to_chat(user, SPAN_NOTICE("You reveal the card. It has a picture of [picture_description] on it!")) | ||
name = front_name | ||
desc = front_description | ||
icon_state = front_icon_state | ||
is_front = TRUE | ||
return ..() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.