|
| 1 | +# Copyright (c) 2022 FelicitusNeko |
| 2 | +# |
| 3 | +# This software is released under the MIT License. |
| 4 | +# https://opensource.org/licenses/MIT |
| 5 | + |
| 6 | +import typing |
| 7 | + |
| 8 | +from BaseClasses import Item, ItemClassification |
| 9 | +from worlds.alttp import ALTTPWorld |
| 10 | + |
| 11 | + |
| 12 | +class BumpStikLttPText(typing.NamedTuple): |
| 13 | + pedestal: typing.Optional[str] |
| 14 | + sickkid: typing.Optional[str] |
| 15 | + magicshop: typing.Optional[str] |
| 16 | + zora: typing.Optional[str] |
| 17 | + fluteboy: typing.Optional[str] |
| 18 | + |
| 19 | + |
| 20 | +LttPCreditsText = { |
| 21 | + "Nothing": BumpStikLttPText("blank space", |
| 22 | + "Forgot it at home again", |
| 23 | + "Hallucinating again", |
| 24 | + "Bucket o' Nothing for 9999.99", |
| 25 | + "King Nothing"), |
| 26 | + "Score Bonus": BumpStikLttPText("helpful hand", |
| 27 | + "Busy kid gets the point...s", |
| 28 | + "Variable conversion rate", |
| 29 | + "Stonks", |
| 30 | + "Catchy ad jingle"), |
| 31 | + "Task Advance": BumpStikLttPText("hall pass", |
| 32 | + "Faker kid skips again", |
| 33 | + "I know a way around it", |
| 34 | + "Money can fix it", |
| 35 | + "Quick! A distraction"), |
| 36 | + "Starting Turner": BumpStikLttPText("fidget spinner", |
| 37 | + "Spinning kid turns heads", |
| 38 | + "This turns things around", |
| 39 | + "Your turn to turn", |
| 40 | + "Turn turn turn"), |
| 41 | + "Reserved": BumpStikLttPText("... wuh?", |
| 42 | + "Why's this here?", |
| 43 | + "Why's this here?", |
| 44 | + "Why's this here?", |
| 45 | + "Why's this here?"), |
| 46 | + "Starting Paint Can": BumpStikLttPText("paint bucket", |
| 47 | + "Artsy kid paints again", |
| 48 | + "Your rainbow destiny", |
| 49 | + "Rainbow for sale", |
| 50 | + "Let me paint a picture"), |
| 51 | + "Booster Bumper": BumpStikLttPText("multiplier", |
| 52 | + "Math kid multiplies again", |
| 53 | + "Growing shrooms", |
| 54 | + "Investment opportunity", |
| 55 | + "In harmony with themself"), |
| 56 | + "Hazard Bumper": BumpStikLttPText("dull stone", |
| 57 | + "...I got better", |
| 58 | + "Mischief Maker", |
| 59 | + "Whoops for sale", |
| 60 | + "Stuck in a moment"), |
| 61 | + "Treasure Bumper": BumpStikLttPText("odd treasure box", |
| 62 | + "Interdimensional treasure", |
| 63 | + "Shrooms for ???", |
| 64 | + "Who knows what this is", |
| 65 | + "You get what you give"), |
| 66 | + "Rainbow Trap": BumpStikLttPText("chaos prism", |
| 67 | + "Roy G Biv in disguise", |
| 68 | + "The colors Duke! The colors", |
| 69 | + "Paint overstock", |
| 70 | + "Raise a little hell"), |
| 71 | + "Spinner Trap": BumpStikLttPText("whirlwind", |
| 72 | + "Vertigo kid gets dizzy", |
| 73 | + "The room is spinning Dave", |
| 74 | + "International sabotage", |
| 75 | + "You spin me right round"), |
| 76 | + "Killer Trap": BumpStikLttPText("broken board", |
| 77 | + "Thank you Mr Coffey", |
| 78 | + "Lethal dosage", |
| 79 | + "Assassin for hire", |
| 80 | + "Killer Queen"), |
| 81 | +} |
| 82 | + |
| 83 | + |
| 84 | +item_groups = { |
| 85 | + "Helpers": ["Task Advance", "Starting Turner", "Starting Paint Can"], |
| 86 | + "Targets": ["Treasure Bumper", "Booster Bumper", "Hazard Bumper"], |
| 87 | + "Traps": ["Rainbow Trap", "Spinner Trap", "Killer Trap"] |
| 88 | +} |
| 89 | + |
| 90 | + |
| 91 | +class BumpStikItem(Item): |
| 92 | + game = "Bumper Stickers" |
| 93 | + type: str |
| 94 | + |
| 95 | + def __init__(self, name, classification, code, player): |
| 96 | + super(BumpStikItem, self).__init__( |
| 97 | + name, classification, code, player) |
| 98 | + |
| 99 | + if code is None: |
| 100 | + self.type = "Event" |
| 101 | + elif name in item_groups["Traps"]: |
| 102 | + self.type = "Trap" |
| 103 | + self.classification = ItemClassification.trap |
| 104 | + elif name in item_groups["Targets"]: |
| 105 | + self.type = "Target" |
| 106 | + self.classification = ItemClassification.progression |
| 107 | + elif name in item_groups["Helpers"]: |
| 108 | + self.type = "Helper" |
| 109 | + self.classification = ItemClassification.useful |
| 110 | + else: |
| 111 | + self.type = "Other" |
| 112 | + |
| 113 | + |
| 114 | +offset = 595_000 |
| 115 | + |
| 116 | +item_table = { |
| 117 | + item: offset + x for x, item in enumerate(LttPCreditsText.keys()) |
| 118 | +} |
| 119 | + |
| 120 | +ALTTPWorld.pedestal_credit_texts.update({item_table[name]: f"and the {texts.pedestal}" |
| 121 | + for name, texts in LttPCreditsText.items()}) |
| 122 | +ALTTPWorld.sickkid_credit_texts.update( |
| 123 | + {item_table[name]: texts.sickkid for name, texts in LttPCreditsText.items()}) |
| 124 | +ALTTPWorld.magicshop_credit_texts.update( |
| 125 | + {item_table[name]: texts.magicshop for name, texts in LttPCreditsText.items()}) |
| 126 | +ALTTPWorld.zora_credit_texts.update( |
| 127 | + {item_table[name]: texts.zora for name, texts in LttPCreditsText.items()}) |
| 128 | +ALTTPWorld.fluteboy_credit_texts.update( |
| 129 | + {item_table[name]: texts.fluteboy for name, texts in LttPCreditsText.items()}) |
0 commit comments