Skip to content

Commit fb30428

Browse files
authored
feat: Repentance+ Changes (#128)
* chore: squashed 3 commits * feat: Sprite.ReplaceSpritesheet return value is boolean * feat: new arg * feat: adding repentance+ comments and changes from https://github.com/wofsauge/IsaacDocs/pull/508/changes * update ButtonAction
1 parent ba8324e commit fb30428

File tree

24 files changed

+1108
-34
lines changed

24 files changed

+1108
-34
lines changed

packages/isaac-typescript-definitions/src/enums/BackdropType.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,10 @@ export enum BackdropType {
6767
MINES_SHAFT = 58,
6868
ASHPIT_SHAFT = 59,
6969
DARK_CLOSET = 60,
70+
71+
/** Added in Repentance+. */
72+
DEATHMATCH = 61,
73+
74+
/** Added in Repentance+. */
75+
LIL_PORTAL = 62,
7076
}

packages/isaac-typescript-definitions/src/enums/ButtonAction.ts

Lines changed: 98 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,50 @@ export enum ButtonAction {
5252
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
5353
MENU_BACK = 15,
5454

55-
/** This only fires on `InputHook.IS_ACTION_PRESSED` (0). */
56-
RESTART = 16,
55+
/**
56+
* This only fires on `InputHook.IS_ACTION_PRESSED` (0).
57+
*
58+
* This enum value changed in Repentance+ from 16 to 18.
59+
*/
60+
RESTART_REPENTANCE = 16,
5761

58-
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
59-
FULLSCREEN = 17,
62+
/**
63+
* This only fires on `InputHook.IS_ACTION_TRIGGERED` (1).
64+
*
65+
* This enum value changed in Repentance+ from 17 to 16.
66+
*/
67+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
68+
FULLSCREEN_REPENTANCE_PLUS = 16,
6069

61-
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
62-
MUTE = 18,
70+
/**
71+
* This only fires on `InputHook.IS_ACTION_TRIGGERED` (1).
72+
*
73+
* This enum value changed in Repentance+ from 17 to 16.
74+
*/
75+
FULLSCREEN_REPENTANCE = 17,
76+
77+
/**
78+
* This only fires on `InputHook.IS_ACTION_TRIGGERED` (1).
79+
*
80+
* This enum value changed in Repentance+ from 18 to 17.
81+
*/
82+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
83+
MUTE_REPENTANCE_PLUS = 17,
84+
85+
/**
86+
* This only fires on `InputHook.IS_ACTION_TRIGGERED` (1).
87+
*
88+
* This enum value changed in Repentance+ from 18 to 17.
89+
*/
90+
MUTE_REPENTANCE = 18,
91+
92+
/**
93+
* This only fires on `InputHook.IS_ACTION_PRESSED` (0).
94+
*
95+
* This enum value changed in Repentance+ from 16 to 18.
96+
*/
97+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
98+
RESTART_REPENTANCE_PLUS = 18,
6399

64100
/** Does not seem to trigger any input hooks while on keyboard. */
65101
JOIN_MULTIPLAYER = 19,
@@ -76,15 +112,63 @@ export enum ButtonAction {
76112
/** Does not seem to trigger any input hooks while on keyboard. */
77113
MENU_DOWN = 23,
78114

79-
/** Does not seem to trigger any input hooks while on keyboard. */
80-
MENU_LT = 24,
115+
/** This enum value changed in Repentance+ from 24 to 26. */
116+
MENU_LEFT_TRIGGER_REPENTANCE = 24,
81117

82-
/** Does not seem to trigger any input hooks while on keyboard. */
83-
MENU_RT = 25,
118+
/** Added in Repentance+. (It took the old value for "MENU_LEFT_TRIGGER".) */
119+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
120+
MENU_LEFT_SHOULDER = 24,
84121

85-
/** Does not seem to trigger any input hooks while on keyboard. */
86-
MENU_TAB = 26,
122+
/** This enum value changed in Repentance+ from 25 to 27. */
123+
MENU_RIGHT_TRIGGER_REPENTANCE = 25,
87124

88-
/** This only fires on `InputHook.IS_ACTION_TRIGGERED` (1). */
89-
CONSOLE = 28,
125+
/** Added in Repentance+. (It took the old value for "MENU_RIGHT_TRIGGER".) */
126+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
127+
MENU_RIGHT_SHOULDER = 25,
128+
129+
/** This enum value changed in Repentance+ from 26 to 28. */
130+
MENU_TAB_REPENTANCE = 26,
131+
132+
/**
133+
* Does not seem to trigger any input hooks while on keyboard.
134+
*
135+
* This enum value changed in Repentance+ from 24 to 26.
136+
*/
137+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
138+
MENU_LEFT_TRIGGER_REPENTANCE_PLUS = 26,
139+
140+
/**
141+
* Does not seem to trigger any input hooks while on keyboard.
142+
*
143+
* This enum value changed in Repentance+ from 25 to 27.
144+
*/
145+
MENU_RIGHT_TRIGGER_REPENTANCE_PLUS = 27,
146+
147+
/**
148+
* This only fires on `InputHook.IS_ACTION_TRIGGERED` (1).
149+
*
150+
* This enum value changed in Repentance+ from 28 to 32.
151+
*/
152+
CONSOLE_REPENTANCE = 28,
153+
154+
/**
155+
* Does not seem to trigger any input hooks while on keyboard.
156+
*
157+
* This enum value changed in Repentance+ from 26 to 28.
158+
*/
159+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
160+
MENU_TAB_REPENTANCE_PLUS = 28,
161+
162+
/** Added in Repentance+. */
163+
MENU_EX = 29,
164+
165+
/** Added in Repentance+. */
166+
EMOTES = 30,
167+
168+
/**
169+
* This only fires on `InputHook.IS_ACTION_TRIGGERED` (1).
170+
*
171+
* This enum value changed in Repentance+ from 28 to 32.
172+
*/
173+
CONSOLE_REPENTANCE_PLUS = 32,
90174
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** Added in Repentance+. */
2+
export enum DrawStringAlignment {
3+
TOP_LEFT = 0,
4+
TOP_CENTER = 1,
5+
TOP_RIGHT = 2,
6+
MIDDLE_LEFT = 3,
7+
MIDDLE_CENTER = 4,
8+
MIDDLE_RIGHT = 5,
9+
BOTTOM_LEFT = 6,
10+
BOTTOM_CENTER = 7,
11+
BOTTOM_RIGHT = 8,
12+
}

packages/isaac-typescript-definitions/src/enums/GameStateFlag.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,16 @@ export enum GameStateFlag {
9797

9898
/** Set when the player takes Dad's Note. The "backwards path" refers to the Ascent. */
9999
BACKWARDS_PATH = 48,
100+
101+
/** Added in Repentance+. */
102+
MEGA_SATAN_DOOR_OPENED = 49,
103+
104+
/** Added in Repentance+. */
105+
URIEL_KILLED = 50,
106+
107+
/** Added in Repentance+. */
108+
GABRIEL_KILLED = 51,
109+
110+
/** Added in Repentance+. */
111+
MOTHER_HEART_DOOR_OPENED = 52,
100112
}

packages/isaac-typescript-definitions/src/enums/GridRoom.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,10 @@ export enum GridRoom {
6161

6262
/** The shop that you go to when you climb the ladder from The Stairway. */
6363
ANGEL_SHOP = -18,
64+
65+
/** Added in Repentance+. */
66+
DEATHMATCH = -19,
67+
68+
/** Added in Repentance+. */
69+
LIL_PORTAL = -20,
6470
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** Added in Repentance+. */
2+
export enum JacobEsauControls {
3+
CLASSIC = 0,
4+
BETTER = 1,
5+
}

packages/isaac-typescript-definitions/src/enums/Music.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,7 @@ export enum Music {
9797
MINESHAFT_AMBIENT = 116,
9898
MINESHAFT_ESCAPE = 117,
9999
REVERSE_GENESIS = 118,
100+
101+
/** Added in Repentance+. */
102+
MUSIC_DEATHMATCH = 119,
100103
}

packages/isaac-typescript-definitions/src/enums/RoomType.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,7 @@ export enum RoomType {
5050
BLUE = 28,
5151

5252
ULTRA_SECRET = 29,
53+
54+
/** Added in Repentance+. */
55+
DEATHMATCH = 30,
5356
}

0 commit comments

Comments
 (0)