isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
47 lines (43 loc) • 2.72 kB
text/typescript
import { StageID } from "isaac-typescript-definitions";
import { newReadonlyColor } from "../functions/readOnly";
const BASEMENT_COLOR = newReadonlyColor(201 / 255, 114 / 255, 96 / 255);
const CAVES_COLOR = newReadonlyColor(167 / 255, 111 / 255, 75 / 255);
const DEPTHS_COLOR = newReadonlyColor(70 / 255, 70 / 255, 72 / 255);
const WOMB_COLOR = newReadonlyColor(241 / 255, 28 / 255, 28 / 255);
const SHEOL_COLOR = newReadonlyColor(60 / 255, 54 / 255, 54 / 255);
/** We arbitrarily specify a default color equal to that of Basement. */
const DEFAULT_COLOR = BASEMENT_COLOR;
/** These values are taken from StageAPI. */
export const VERSUS_SCREEN_DIRT_SPOT_COLORS = {
[]: DEFAULT_COLOR, // 0
[]: BASEMENT_COLOR, // 1
[]: newReadonlyColor(229 / 255, 157 / 255, 111 / 255), // 2
[]: newReadonlyColor(252 / 255, 108 / 255, 90 / 255), // 3
[]: CAVES_COLOR, // 4
[]: newReadonlyColor(135 / 255, 90 / 255, 80 / 255), // 5
[]: newReadonlyColor(111 / 255, 147 / 255, 180 / 255), // 6
[]: DEPTHS_COLOR, // 7
[]: newReadonlyColor(88 / 255, 67 / 255, 54 / 255), // 8
[]: DEPTHS_COLOR, // 9
[]: WOMB_COLOR, // 10
[]: newReadonlyColor(199 / 255, 60 / 255, 48 / 255), // 11
[]: newReadonlyColor(247 / 255, 152 / 255, 88 / 255), // 12
[]: newReadonlyColor(157 / 255, 209 / 255, 255 / 255), // 13
[]: SHEOL_COLOR, // 14
[]: newReadonlyColor(44 / 255, 100 / 255, 111 / 255), // 15
[]: newReadonlyColor(80 / 255, 38 / 255, 20 / 255), // 16
[]: newReadonlyColor(175 / 255, 108 / 255, 72 / 255), // 17
[]: DEFAULT_COLOR, // 24
[]: DEFAULT_COLOR, // 25
[]: newReadonlyColor(70 / 255, 5 / 255, 5 / 255), // 26
[]: newReadonlyColor(149 / 255, 157 / 255, 167 / 255), // 27
[]: newReadonlyColor(179 / 255, 179 / 255, 143 / 255), // 28
[]: newReadonlyColor(93 / 255, 85 / 255, 72 / 255), // 29
[]: newReadonlyColor(106 / 255, 102 / 255, 94 / 255), // 30
[]: newReadonlyColor(70 / 255, 59 / 255, 72 / 255), // 31
[]: newReadonlyColor(59 / 255, 41 / 255, 41 / 255), // 32
[]: newReadonlyColor(124 / 255, 134 / 255, 111 / 255), // 33
[]: newReadonlyColor(124 / 255, 134 / 255, 111 / 255), // 34
[]: DEFAULT_COLOR, // 35
[]: DEFAULT_COLOR, // 36
} as const satisfies Record<StageID, Readonly<Color>>;