Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | 1x 44x 743x 44x 37x 98x 66x 52x 40x 32x 16x 13x 2x 6x 89x 36x 30x 30x 44x 108x 1x | import { Token } from "../tokens"; /** * @internal A function to facilitate the declaration of bag composition. * * @param {string} tokenList * The comma-separated list of tokens. * @return {Token[]} * The array of tokens parsed from the string. */ function toTokens(tokenList: string): Token[] { return tokenList.split(",").map(s => { switch (s.trim()) { case "Elder sign": return Token.ELDER_SIGN; case "+1": return Token.PLUS_ONE; case "0": return Token.ZERO; case "-1": return Token.MINUS_ONE; case "-2": return Token.MINUS_TWO; case "-3": return Token.MINUS_THREE; case "-4": return Token.MINUS_FOUR; case "-5": return Token.MINUS_FIVE; case "-6": return Token.MINUS_SIX; case "-7": return Token.MINUS_SEVEN; case "-8": return Token.MINUS_EIGHT; case "Skull": return Token.SKULL; case "Cultist": return Token.CULTIST; case "Tablet": return Token.TABLET; case "Elder thing": return Token.ELDER_THING; case "Autofail": return Token.AUTOFAIL; default: return null; } }); } // tslint:disable:object-literal-sort-keys max-line-length /** * Bag compositions for the different campaigns. */ export const Bags = { /** * Night of the Zealot */ NightOfTheZealot: { Easy: toTokens( "+1, +1, 0, 0, 0, -1, -1, -1, -2, -2, Skull, Skull, Cultist, Tablet, Autofail, Elder sign" ), Standard: toTokens( "+1, 0, 0, -1, -1, -1, -2, -2, -3, -4, Skull, Skull, Cultist, Tablet, Autofail, Elder sign" ), Hard: toTokens( "0, 0, 0, -1, -1, -2, -2, -3, -3, -4, -5, Skull, Skull, Cultist, Tablet, Autofail, Elder sign" ), Expert: toTokens( "0, -1, -1, -2, -2, -3, -3, -4, -4, -5, -6, -8, Skull, Skull, Cultist, Tablet, Autofail, Elder sign" ) }, /** * The Dunwich Legacy */ TheDunwichLegacy: { Easy: toTokens( "+1, +1, 0, 0, 0, -1, -1, -1, -2, -2, Skull, Skull, Cultist, Autofail, Elder sign" ), Standard: toTokens( "+1, 0, 0, -1, -1, -1, -2, -2, -3, -4, Skull, Skull, Cultist, Autofail, Elder sign" ), Hard: toTokens( "0, 0, 0, -1, -1, -2, -2, -3, -3, -4, -5, Skull, Skull, Cultist, Autofail, Elder sign" ), Expert: toTokens( "0, -1, -1, -2, -2, -3, -3, -4, -4, -5, -6, -8, Skull, Skull, Cultist, Autofail, Elder sign" ) }, /** * The Path to Carcosa */ ThePathToCarcosa: { Easy: toTokens( "+1, +1, 0, 0, 0, -1, -1, -1, -2, -2, Skull, Skull, Skull, Autofail, Elder sign" ), Standard: toTokens( "+1, 0, 0, -1, -1, -1, -2, -2, -3, -4, Skull, Skull, Skull, Autofail, Elder sign" ), Hard: toTokens( "0, 0, 0, -1, -1, -2, -2, -3, -3, -4, -5, Skull, Skull, Skull, Autofail, Elder sign" ), Expert: toTokens( "0, -1, -1, -2, -2, -3, -3, -4, -4, -5, -6, -8, Skull, Skull, Skull, Autofail, Elder sign" ) }, /** * The Forgotten Age */ TheForgottenAge: { Easy: toTokens( "+1, +1, 0, 0, 0, -1, -1, -2, -3, Skull, Skull, Elder thing, Autofail, Elder sign" ), Standard: toTokens( "+1, 0, 0, 0, -1, -2, -2, -3, -5, Skull, Skull, Elder thing, Autofail, Elder sign" ), Hard: toTokens( "+1, 0, 0, -1, -2, -3, -3, -4, -6, Skull, Skull, Elder thing, Autofail, Elder sign" ), Expert: toTokens( "0, -1, -2, -2, -3, -3, -4, -4, -6, -8, Skull, Skull, Elder thing, Autofail, Elder sign" ) }, /** * The Circle Undone */ TheCircleUndone: { Easy: toTokens( "+1, +1, 0, 0, 0, -1, -1, -2, -3, Skull, Skull, Autofail, Elder sign" ), Standard: toTokens( "+1, 0, 0, -1, -1, -2, -2, -3, -4, Skull, Skull, Autofail, Elder sign" ), Hard: toTokens( "0, 0, -1, -1, -2, -2, -3, -4, -5, Skull, Skull, Autofail, Elder sign" ), Expert: toTokens( "0, -1, -1, -2, -2, -3, -4, -6, -8, Skull, Skull, Autofail, Elder sign" ) }, /** * The Dream-Eaters : The Dream-Quest */ TheDreamEatersTheDreamQuest: { Easy: toTokens( "+1, +1, 0, 0, 0, –1, –1, –2, –2, Cultist, Tablet, Tablet, Autofail, Elder sign" ), Standard: toTokens( "+1, 0, 0, –1, –1, –2, –2, –3, –4, Cultist, Tablet, Tablet, Autofail, Elder sign" ), Hard: toTokens( "0, 0, –1, –1, –2, –2, –3, –3, –4, –5, Cultist, Tablet, Tablet, Autofail, Elder sign" ), Expert: toTokens( "0, –1, –1, –2, –2, –3, –4, –4, –5, –6, –8, Cultist, Tablet, Tablet, Autofail, Elder sign" ) }, /** * The Dream-Eaters : The Web of Dreams */ TheDreamEatersTheWebOfDreams: { Easy: toTokens( "+1, +1, 0, 0, 0, –1, –1, –1, –2, –2, Skull, Skull, Cultist, Elder thing, Elder thing, Autofail, Elder sign" ), Standard: toTokens( "+1, 0, 0, –1, –1, –1, –2, –2, –3, –4, Skull, Skull, Cultist, Elder thing, Elder thing, Autofail, Elder sign" ), Hard: toTokens( "0, 0, 0, –1, –1, –2, –2, –3, –3, –4, –5, Skull, Skull, Cultist, Elder thing, Elder thing, Autofail, Elder sign" ), Expert: toTokens( "0, –1, –1, –2, –2, –3, –3, –4, –4, –5, –6, –8, Skull, Skull, Cultist, Elder thing, Elder thing, Autofail, Elder sign" ) }, /** * The Innsmouth Conspiracy */ TheInnsmouthConspiracy: { Easy: toTokens( "+1, +1, 0, 0, 0, –1, –1, –1, –2, –2, Skull, Skull, Cultist, Cultist, Tablet, Tablet, Elder thing, Elder thing, Autofail, Elder sign" ), Standard: toTokens( "+1, 0, 0, –1, –1, –1, –2, –2, –3, –4, Skull, Skull, Cultist, Cultist, Tablet, Tablet, Elder thing, Elder thing, Autofail, Elder sign" ), Hard: toTokens( "0, 0, 0, –1, –1, –2, –2, –3, –3, –4, –5, Skull, Skull, Cultist, Cultist, Tablet, Tablet, Elder thing, Elder thing, Autofail, Elder sign" ), Expert: toTokens( "0, –1, –1, –2, –2, –3, –3, –4, –4, –5, –6, –8, Skull, Skull, Cultist, Cultist, Tablet, Tablet, Elder thing, Elder thing, Autofail, Elder sign" ) }, /** * Curse of the Rougarou */ CurseOfTheRougarou: { Standard: toTokens( "+1, +1, 0, 0, 0, -1, -1, -1, -2, -2, -3, -3, -4, -4, -5, -6, Skull, Skull, Cultist, Cultist, Tablet, Elder thing, Autofail, Elder sign" ), Hard: toTokens( "+1, 0, 0, 0, -1, -1, -1, -2, -2, -3, -3, -4, -4, -5, -5, -6, -8, Skull, Skull, Skull, Cultist, Cultist, Tablet, Elder thing, Autofail, Elder sign" ) }, /** * Carnevale of Horrors */ CarnevaleOfHorrors: { Standard: toTokens( "+1, 0, 0, 0, -1, -1, -1, -2, -3, -4, -6, Skull, Skull, Skull, Cultist, Tablet, Elder thing, Autofail, Elder sign" ), Hard: toTokens( "+1, 0, 0, 0, -1, -1, -3, -4, -5, -6, -7, Skull, Skull, Skull, Cultist, Tablet, Elder thing, Autofail, Elder sign" ) }, /** * The Labyrinths of Lunacy */ TheLabyrinthsOfLunacy: { Standard: toTokens( "+1, 0, 0, 0, –1, –1, –1, –2, –2, –3, –4, –5, Skull, Skull, Autofail, Elder sign" ), Hard: toTokens( "+1, 0, –1, –1, –1, –2, –2, –2, –3, –4, –5, –6, Skull, Skull, Autofail, Elder sign" ) }, /** * Guardians of the Abyss */ GuardiansOfTheAbyss: { Standard: toTokens( "+1, +1, 0, 0, -1, -1, -1, -2, -2, -3, -3, -4, -6, Skull, Skull, Skull, Cultist, Tablet, Elder thing, Autofail, Elder sign" ), Hard: toTokens( "+1, 0, 0, -1, -1, -1, -2, -2, -2, -3, -3, -4, -4, -5, -7, Skull, Skull, Skull, Cultist, Tablet, Elder thing, Autofail, Elder sign" ) }, /** * Guardians of the Abyss */ MurderAtTheExcelsiorHotel: { Standard: toTokens( "+1, 0, -1, -1, -2, -3, -3, -4, Skull, Skull, Cultist, Tablet, Elder thing, Autofail, Elder sign" ), Hard: toTokens( "0, -1, -2, -3, -4, -4, -5, -6, Skull, Skull, Cultist, Tablet, Elder thing, Autofail, Elder sign" ) }, /** * The Blob That Ate Everything */ TheBlobThatAteEverything: { Standard: toTokens( "+1, 0, 0, 0, -1, -2, -2, -3, -4, -5, Skull, Skull, Cultist, Tablet, Elder thing, Autofail, Elder sign" ), Hard: toTokens( "0, 0, 0, -1, -1, -2, -3, -4, -5, -6, Skull, Skull, Cultist, Tablet, Elder thing, Autofail, Elder sign" ) } }; |