File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed
packages/isaacscript-common/src/functions Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -178,25 +178,8 @@ export function isRepentance(): boolean {
178
178
'Failed to get the "__class" key of the Sprite metatable.' ,
179
179
) ;
180
180
181
- const func = classTable . get ( "GetAnimation" ) ;
182
- return isFunction ( func ) ;
183
- }
184
-
185
- /**
186
- * Helper function to check if the player has the Repentance+ DLC installed.
187
- *
188
- * This function should always be used over the `REPENTANCE_PLUS` constant, since the latter is not
189
- * safe.
190
- *
191
- * Specifically, this function checks for `Room:DamageGridWithSource` method:
192
- * https://bindingofisaacrebirth.wiki.gg/wiki/The_Binding_of_Isaac:_Repentance%2B#Modding_Changes
193
- */
194
- export function isRepentancePlus ( ) : boolean {
195
- const room = game . GetRoom ( ) ;
196
- const metatable = getmetatable ( room ) as LuaMap < string , unknown > | undefined ;
197
- assertDefined ( metatable , "Failed to get the metatable of the room class." ) ;
198
- const func = metatable . get ( "DamageGridWithSource" ) ;
199
- return isFunction ( func ) ;
181
+ const getAnimation = classTable . get ( "GetAnimation" ) ;
182
+ return isFunction ( getAnimation ) ;
200
183
}
201
184
202
185
/**
You can’t perform that action at this time.
0 commit comments