REPENTOGON phase 1: 361 of 396 callbacks fired at their original sites with REPENTOGON's arguments, filters and return handling, inert without mods (72 goldens identical), vanilla changes behind the parity switch; source_tree.py skips src/'s own template structs
This commit is contained in:
1 parent
2cc082f6ee
commit
74322af121
167 files changed
+6385
-523
No files matched your search
+366
-366
@@ -2110,401 +2110,401 @@ constructor SourceQuad SourceQuad repentogon/LuaInterfaces/LuaRender.cpp:3213 r
|
||||
constructor Sprite Sprite repentogon/resources/scripts/main_ex.lua:2168 Sprite.md render and sprites done defined in Lua
|
||||
constructor Vector Vector repentogon/LuaInterfaces/LuaVector.cpp:152 misc review
|
||||
constructor WeightedOutcomePicker WeightedOutcomePicker repentogon/LuaInterfaces/LuaWeightedOutcomePicker.cpp:108 WeightedOutcomePicker.md items and pools todo
|
||||
callback ModCallbacks MC_BOMB_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:170 enums/ModCallbacks.md tear and weapons todo id 1178
|
||||
callback ModCallbacks MC_CAN_SELECT_CHARACTER repentogon/resources/scripts/enums_ex.lua:291 enums/ModCallbacks.md misc todo id 1328
|
||||
callback ModCallbacks MC_COMPLETION_MARK_GET repentogon/resources/scripts/enums_ex.lua:49 enums/ModCallbacks.md persistent data and saves todo id 1047
|
||||
callback ModCallbacks MC_BOMB_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:170 enums/ModCallbacks.md tear and weapons done id 1178
|
||||
callback ModCallbacks MC_CAN_SELECT_CHARACTER repentogon/resources/scripts/enums_ex.lua:291 enums/ModCallbacks.md misc done id 1328
|
||||
callback ModCallbacks MC_COMPLETION_MARK_GET repentogon/resources/scripts/enums_ex.lua:49 enums/ModCallbacks.md persistent data and saves done id 1047
|
||||
callback ModCallbacks MC_CONSOLE_AUTOCOMPLETE repentogon/resources/scripts/enums_ex.lua:122 enums/ModCallbacks.md console and debug todo id 1120
|
||||
callback ModCallbacks MC_ENTITY_RESTORE repentogon/resources/scripts/enums_ex.lua:289 entities todo id 1315
|
||||
callback ModCallbacks MC_ENTITY_SAVE repentogon/resources/scripts/enums_ex.lua:288 persistent data and saves todo id 1314
|
||||
callback ModCallbacks MC_ENTITY_SAVE repentogon/resources/scripts/enums_ex.lua:288 persistent data and saves done id 1314
|
||||
callback ModCallbacks MC_ENTITY_TAKE_DMG enums/ModCallbacks.md entities review id 11, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_EVALUATE_CUSTOM_CACHE repentogon/resources/scripts/enums_ex.lua:199 enums/ModCallbacks.md items and pools todo id 1224
|
||||
callback ModCallbacks MC_EVALUATE_FAMILIAR_MULTIPLIER repentogon/resources/scripts/enums_ex.lua:200 enums/ModCallbacks.md familiar todo id 1225
|
||||
callback ModCallbacks MC_EVALUATE_FAMILIAR_MULTIPLIER repentogon/resources/scripts/enums_ex.lua:200 enums/ModCallbacks.md familiar done id 1225
|
||||
callback ModCallbacks MC_EVALUATE_MULTI_SHOT_PARAMS repentogon/resources/scripts/enums_ex.lua:263 enums/ModCallbacks.md misc todo id 1289
|
||||
callback ModCallbacks MC_EVALUATE_STAT repentogon/resources/scripts/enums_ex.lua:201 enums/ModCallbacks.md hud and menus todo id 1226
|
||||
callback ModCallbacks MC_EVALUATE_TEAR_HIT_PARAMS repentogon/resources/scripts/enums_ex.lua:404 enums/ModCallbacks.md tear and weapons todo id 1490
|
||||
callback ModCallbacks MC_FAMILIAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:168 enums/ModCallbacks.md familiar todo id 1176
|
||||
callback ModCallbacks MC_GET_BOSS_THEMATIC_ITEM repentogon/resources/scripts/enums_ex.lua:407 enums/ModCallbacks.md npc todo id 1493
|
||||
callback ModCallbacks MC_GET_FOLLOWER_PRIORITY repentogon/resources/scripts/enums_ex.lua:65 enums/ModCallbacks.md misc todo id 1063
|
||||
callback ModCallbacks MC_EVALUATE_STAT repentogon/resources/scripts/enums_ex.lua:201 enums/ModCallbacks.md hud and menus done id 1226
|
||||
callback ModCallbacks MC_EVALUATE_TEAR_HIT_PARAMS repentogon/resources/scripts/enums_ex.lua:404 enums/ModCallbacks.md tear and weapons done id 1490
|
||||
callback ModCallbacks MC_FAMILIAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:168 enums/ModCallbacks.md familiar done id 1176
|
||||
callback ModCallbacks MC_GET_BOSS_THEMATIC_ITEM repentogon/resources/scripts/enums_ex.lua:407 enums/ModCallbacks.md npc done id 1493
|
||||
callback ModCallbacks MC_GET_FOLLOWER_PRIORITY repentogon/resources/scripts/enums_ex.lua:65 enums/ModCallbacks.md misc done id 1063
|
||||
callback ModCallbacks MC_GET_PILL_EFFECT enums/ModCallbacks.md items and pools review id 65, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_GET_SHOP_ITEM_PRICE repentogon/resources/scripts/enums_ex.lua:68 enums/ModCallbacks.md items and pools todo id 1066
|
||||
callback ModCallbacks MC_GET_STATUS_EFFECT_TARGET repentogon/resources/scripts/enums_ex.lua:399 enums/ModCallbacks.md hud and menus todo id 1485
|
||||
callback ModCallbacks MC_GRID_HURT_DAMAGE repentogon/resources/scripts/enums_ex.lua:13 enums/ModCallbacks.md level and room todo id 1012
|
||||
callback ModCallbacks MC_HUD_POST_UPDATE repentogon/resources/scripts/enums_ex.lua:22 hud and menus todo id 1021
|
||||
callback ModCallbacks MC_HUD_RENDER repentogon/resources/scripts/enums_ex.lua:24 enums/ModCallbacks.md hud and menus todo id 1022
|
||||
callback ModCallbacks MC_HUD_UPDATE repentogon/resources/scripts/enums_ex.lua:21 enums/ModCallbacks.md hud and menus todo id 1020
|
||||
callback ModCallbacks MC_IS_PERSISTENT_ROOM_ENTITY repentogon/resources/scripts/enums_ex.lua:237 enums/ModCallbacks.md persistent data and saves todo id 1263
|
||||
callback ModCallbacks MC_MAIN_MENU_RENDER repentogon/resources/scripts/enums_ex.lua:25 enums/ModCallbacks.md hud and menus todo id 1023
|
||||
callback ModCallbacks MC_MENU_INPUT_ACTION repentogon/resources/scripts/enums_ex.lua:380 enums/ModCallbacks.md hud and menus todo id 1464
|
||||
callback ModCallbacks MC_NPC_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:176 enums/ModCallbacks.md npc todo id 1184
|
||||
callback ModCallbacks MC_NPC_PICK_TARGET repentogon/resources/scripts/enums_ex.lua:197 enums/ModCallbacks.md npc todo id 1222
|
||||
callback ModCallbacks MC_PICKUP_GET_COIN_VALUE repentogon/resources/scripts/enums_ex.lua:224 enums/ModCallbacks.md pickup todo id 1250
|
||||
callback ModCallbacks MC_PICKUP_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:172 enums/ModCallbacks.md pickup todo id 1180
|
||||
callback ModCallbacks MC_PLAYER_GET_ACTIVE_MAX_CHARGE repentogon/resources/scripts/enums_ex.lua:74 enums/ModCallbacks.md player todo id 1072
|
||||
callback ModCallbacks MC_PLAYER_GET_ACTIVE_MIN_USABLE_CHARGE repentogon/resources/scripts/enums_ex.lua:75 enums/ModCallbacks.md player todo id 1073
|
||||
callback ModCallbacks MC_PLAYER_GET_HEALTH_TYPE repentogon/resources/scripts/enums_ex.lua:69 enums/ModCallbacks.md player todo id 1067
|
||||
callback ModCallbacks MC_PLAYER_GET_HEART_LIMIT repentogon/resources/scripts/enums_ex.lua:76 enums/ModCallbacks.md player todo id 1074
|
||||
callback ModCallbacks MC_PLAYER_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:164 enums/ModCallbacks.md player todo id 1172
|
||||
callback ModCallbacks MC_PLAYER_HEALTH_TYPE_CHANGE repentogon/resources/scripts/enums_ex.lua:130 enums/ModCallbacks.md player todo id 1128
|
||||
callback ModCallbacks MC_PLAYER_INIT_POST_LEVEL_INIT_STATS repentogon/resources/scripts/enums_ex.lua:44 enums/ModCallbacks.md player todo id 1042
|
||||
callback ModCallbacks MC_PLAYER_INIT_PRE_LEVEL_INIT_STATS repentogon/resources/scripts/enums_ex.lua:129 enums/ModCallbacks.md player todo id 1127
|
||||
callback ModCallbacks MC_POST_ACHIEVEMENT_UNLOCK repentogon/resources/scripts/enums_ex.lua:390 enums/ModCallbacks.md persistent data and saves todo id 1476
|
||||
callback ModCallbacks MC_POST_ADD_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:5 enums/ModCallbacks.md items and pools todo id 1005
|
||||
callback ModCallbacks MC_GET_SHOP_ITEM_PRICE repentogon/resources/scripts/enums_ex.lua:68 enums/ModCallbacks.md items and pools done id 1066
|
||||
callback ModCallbacks MC_GET_STATUS_EFFECT_TARGET repentogon/resources/scripts/enums_ex.lua:399 enums/ModCallbacks.md hud and menus done id 1485
|
||||
callback ModCallbacks MC_GRID_HURT_DAMAGE repentogon/resources/scripts/enums_ex.lua:13 enums/ModCallbacks.md level and room done id 1012
|
||||
callback ModCallbacks MC_HUD_POST_UPDATE repentogon/resources/scripts/enums_ex.lua:22 hud and menus done id 1021
|
||||
callback ModCallbacks MC_HUD_RENDER repentogon/resources/scripts/enums_ex.lua:24 enums/ModCallbacks.md hud and menus done id 1022
|
||||
callback ModCallbacks MC_HUD_UPDATE repentogon/resources/scripts/enums_ex.lua:21 enums/ModCallbacks.md hud and menus done id 1020
|
||||
callback ModCallbacks MC_IS_PERSISTENT_ROOM_ENTITY repentogon/resources/scripts/enums_ex.lua:237 enums/ModCallbacks.md persistent data and saves done id 1263
|
||||
callback ModCallbacks MC_MAIN_MENU_RENDER repentogon/resources/scripts/enums_ex.lua:25 enums/ModCallbacks.md hud and menus done id 1023
|
||||
callback ModCallbacks MC_MENU_INPUT_ACTION repentogon/resources/scripts/enums_ex.lua:380 enums/ModCallbacks.md hud and menus done id 1464
|
||||
callback ModCallbacks MC_NPC_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:176 enums/ModCallbacks.md npc done id 1184
|
||||
callback ModCallbacks MC_NPC_PICK_TARGET repentogon/resources/scripts/enums_ex.lua:197 enums/ModCallbacks.md npc done id 1222
|
||||
callback ModCallbacks MC_PICKUP_GET_COIN_VALUE repentogon/resources/scripts/enums_ex.lua:224 enums/ModCallbacks.md pickup done id 1250
|
||||
callback ModCallbacks MC_PICKUP_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:172 enums/ModCallbacks.md pickup done id 1180
|
||||
callback ModCallbacks MC_PLAYER_GET_ACTIVE_MAX_CHARGE repentogon/resources/scripts/enums_ex.lua:74 enums/ModCallbacks.md player done id 1072
|
||||
callback ModCallbacks MC_PLAYER_GET_ACTIVE_MIN_USABLE_CHARGE repentogon/resources/scripts/enums_ex.lua:75 enums/ModCallbacks.md player done id 1073
|
||||
callback ModCallbacks MC_PLAYER_GET_HEALTH_TYPE repentogon/resources/scripts/enums_ex.lua:69 enums/ModCallbacks.md player done id 1067
|
||||
callback ModCallbacks MC_PLAYER_GET_HEART_LIMIT repentogon/resources/scripts/enums_ex.lua:76 enums/ModCallbacks.md player done id 1074
|
||||
callback ModCallbacks MC_PLAYER_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:164 enums/ModCallbacks.md player done id 1172
|
||||
callback ModCallbacks MC_PLAYER_HEALTH_TYPE_CHANGE repentogon/resources/scripts/enums_ex.lua:130 enums/ModCallbacks.md player done id 1128
|
||||
callback ModCallbacks MC_PLAYER_INIT_POST_LEVEL_INIT_STATS repentogon/resources/scripts/enums_ex.lua:44 enums/ModCallbacks.md player done id 1042
|
||||
callback ModCallbacks MC_PLAYER_INIT_PRE_LEVEL_INIT_STATS repentogon/resources/scripts/enums_ex.lua:129 enums/ModCallbacks.md player done id 1127
|
||||
callback ModCallbacks MC_POST_ACHIEVEMENT_UNLOCK repentogon/resources/scripts/enums_ex.lua:390 enums/ModCallbacks.md persistent data and saves done id 1476
|
||||
callback ModCallbacks MC_POST_ADD_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:5 enums/ModCallbacks.md items and pools done id 1005
|
||||
callback ModCallbacks MC_POST_ADD_INNATE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:56 enums/ModCallbacks.md items and pools todo id 1054
|
||||
callback ModCallbacks MC_POST_ADD_INNATE_TRINKET repentogon/resources/scripts/enums_ex.lua:57 enums/ModCallbacks.md items and pools todo id 1055
|
||||
callback ModCallbacks MC_POST_ADD_TO_BAG_OF_CRAFTING repentogon/resources/scripts/enums_ex.lua:17 enums/ModCallbacks.md items and pools todo id 1016
|
||||
callback ModCallbacks MC_POST_APPLY_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:252 enums/ModCallbacks.md tear and weapons todo id 1278
|
||||
callback ModCallbacks MC_POST_ADD_TO_BAG_OF_CRAFTING repentogon/resources/scripts/enums_ex.lua:17 enums/ModCallbacks.md items and pools done id 1016
|
||||
callback ModCallbacks MC_POST_APPLY_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:252 enums/ModCallbacks.md tear and weapons done id 1278
|
||||
callback ModCallbacks MC_POST_BACKDROP_CHANGE repentogon/resources/scripts/enums_ex.lua:144 enums/ModCallbacks.md level and room todo id 1142
|
||||
callback ModCallbacks MC_POST_BACKDROP_PRE_RENDER_WALLS repentogon/resources/scripts/enums_ex.lua:111 enums/ModCallbacks.md render and sprites todo id 1109
|
||||
callback ModCallbacks MC_POST_BACKWARDS_ROOM_RESTORE repentogon/resources/scripts/enums_ex.lua:282 enums/ModCallbacks.md level and room todo id 1308
|
||||
callback ModCallbacks MC_POST_BACKWARDS_ROOM_SAVE repentogon/resources/scripts/enums_ex.lua:281 enums/ModCallbacks.md persistent data and saves todo id 1307
|
||||
callback ModCallbacks MC_POST_BOMB_COLLISION repentogon/resources/scripts/enums_ex.lua:211 enums/ModCallbacks.md tear and weapons todo id 1237
|
||||
callback ModCallbacks MC_POST_BOMB_DAMAGE repentogon/resources/scripts/enums_ex.lua:249 enums/ModCallbacks.md tear and weapons todo id 1275
|
||||
callback ModCallbacks MC_POST_BOMB_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:250 enums/ModCallbacks.md tear and weapons todo id 1276
|
||||
callback ModCallbacks MC_POST_BOSS_INTRO_SHOW repentogon/resources/scripts/enums_ex.lua:244 enums/ModCallbacks.md npc todo id 1270
|
||||
callback ModCallbacks MC_POST_BRIMSTONE_SNEEZE repentogon/resources/scripts/enums_ex.lua:39 enums/ModCallbacks.md tear and weapons todo id 1037
|
||||
callback ModCallbacks MC_POST_CHALLENGE_DONE repentogon/resources/scripts/enums_ex.lua:386 enums/ModCallbacks.md game todo id 1472
|
||||
callback ModCallbacks MC_POST_COMPLETION_EVENT repentogon/resources/scripts/enums_ex.lua:54 enums/ModCallbacks.md persistent data and saves todo id 1052
|
||||
callback ModCallbacks MC_POST_COMPLETION_MARKS_RENDER repentogon/resources/scripts/enums_ex.lua:192 enums/ModCallbacks.md persistent data and saves todo id 1217
|
||||
callback ModCallbacks MC_POST_COMPLETION_MARK_GET repentogon/resources/scripts/enums_ex.lua:50 enums/ModCallbacks.md persistent data and saves todo id 1048
|
||||
callback ModCallbacks MC_POST_DEVIL_CALCULATE repentogon/resources/scripts/enums_ex.lua:135 enums/ModCallbacks.md items and pools todo id 1133
|
||||
callback ModCallbacks MC_POST_DISCHARGE_ACTIVE_ITEM repentogon/resources/scripts/enums_ex.lua:142 enums/ModCallbacks.md items and pools todo id 1140
|
||||
callback ModCallbacks MC_POST_BACKDROP_PRE_RENDER_WALLS repentogon/resources/scripts/enums_ex.lua:111 enums/ModCallbacks.md render and sprites done id 1109
|
||||
callback ModCallbacks MC_POST_BACKWARDS_ROOM_RESTORE repentogon/resources/scripts/enums_ex.lua:282 enums/ModCallbacks.md level and room done id 1308
|
||||
callback ModCallbacks MC_POST_BACKWARDS_ROOM_SAVE repentogon/resources/scripts/enums_ex.lua:281 enums/ModCallbacks.md persistent data and saves done id 1307
|
||||
callback ModCallbacks MC_POST_BOMB_COLLISION repentogon/resources/scripts/enums_ex.lua:211 enums/ModCallbacks.md tear and weapons done id 1237
|
||||
callback ModCallbacks MC_POST_BOMB_DAMAGE repentogon/resources/scripts/enums_ex.lua:249 enums/ModCallbacks.md tear and weapons done id 1275
|
||||
callback ModCallbacks MC_POST_BOMB_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:250 enums/ModCallbacks.md tear and weapons done id 1276
|
||||
callback ModCallbacks MC_POST_BOSS_INTRO_SHOW repentogon/resources/scripts/enums_ex.lua:244 enums/ModCallbacks.md npc done id 1270
|
||||
callback ModCallbacks MC_POST_BRIMSTONE_SNEEZE repentogon/resources/scripts/enums_ex.lua:39 enums/ModCallbacks.md tear and weapons done id 1037
|
||||
callback ModCallbacks MC_POST_CHALLENGE_DONE repentogon/resources/scripts/enums_ex.lua:386 enums/ModCallbacks.md game done id 1472
|
||||
callback ModCallbacks MC_POST_COMPLETION_EVENT repentogon/resources/scripts/enums_ex.lua:54 enums/ModCallbacks.md persistent data and saves done id 1052
|
||||
callback ModCallbacks MC_POST_COMPLETION_MARKS_RENDER repentogon/resources/scripts/enums_ex.lua:192 enums/ModCallbacks.md persistent data and saves done id 1217
|
||||
callback ModCallbacks MC_POST_COMPLETION_MARK_GET repentogon/resources/scripts/enums_ex.lua:50 enums/ModCallbacks.md persistent data and saves done id 1048
|
||||
callback ModCallbacks MC_POST_DEVIL_CALCULATE repentogon/resources/scripts/enums_ex.lua:135 enums/ModCallbacks.md items and pools done id 1133
|
||||
callback ModCallbacks MC_POST_DISCHARGE_ACTIVE_ITEM repentogon/resources/scripts/enums_ex.lua:142 enums/ModCallbacks.md items and pools done id 1140
|
||||
callback ModCallbacks MC_POST_ENTITY_KILL enums/ModCallbacks.md entities review id 68, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_POST_ENTITY_SET_COLOR repentogon/resources/scripts/enums_ex.lua:401 enums/ModCallbacks.md render and sprites todo id 1487
|
||||
callback ModCallbacks MC_POST_ENTITY_TAKE_DMG repentogon/resources/scripts/enums_ex.lua:7 enums/ModCallbacks.md entities todo id 1006
|
||||
callback ModCallbacks MC_POST_ENTITY_THROW repentogon/resources/scripts/enums_ex.lua:43 enums/ModCallbacks.md entities todo id 1041
|
||||
callback ModCallbacks MC_POST_FAMILIAR_COLLISION repentogon/resources/scripts/enums_ex.lua:209 enums/ModCallbacks.md familiar todo id 1235
|
||||
callback ModCallbacks MC_POST_FAMILIAR_FIRE_BRIMSTONE repentogon/resources/scripts/enums_ex.lua:235 enums/ModCallbacks.md familiar todo id 1261
|
||||
callback ModCallbacks MC_POST_FAMILIAR_FIRE_PROJECTILE repentogon/resources/scripts/enums_ex.lua:226 enums/ModCallbacks.md familiar todo id 1252
|
||||
callback ModCallbacks MC_POST_FAMILIAR_FIRE_TECH_LASER repentogon/resources/scripts/enums_ex.lua:236 enums/ModCallbacks.md familiar todo id 1262
|
||||
callback ModCallbacks MC_POST_FIRE_BOMB repentogon/resources/scripts/enums_ex.lua:227 enums/ModCallbacks.md tear and weapons todo id 1253
|
||||
callback ModCallbacks MC_POST_FIRE_BONE_CLUB repentogon/resources/scripts/enums_ex.lua:228 enums/ModCallbacks.md tear and weapons todo id 1254
|
||||
callback ModCallbacks MC_POST_FIRE_BRIMSTONE repentogon/resources/scripts/enums_ex.lua:229 enums/ModCallbacks.md tear and weapons todo id 1255
|
||||
callback ModCallbacks MC_POST_FIRE_BRIMSTONE_BALL repentogon/resources/scripts/enums_ex.lua:230 enums/ModCallbacks.md tear and weapons todo id 1256
|
||||
callback ModCallbacks MC_POST_FIRE_KNIFE repentogon/resources/scripts/enums_ex.lua:231 enums/ModCallbacks.md tear and weapons todo id 1257
|
||||
callback ModCallbacks MC_POST_ENTITY_SET_COLOR repentogon/resources/scripts/enums_ex.lua:401 enums/ModCallbacks.md render and sprites done id 1487
|
||||
callback ModCallbacks MC_POST_ENTITY_TAKE_DMG repentogon/resources/scripts/enums_ex.lua:7 enums/ModCallbacks.md entities done id 1006
|
||||
callback ModCallbacks MC_POST_ENTITY_THROW repentogon/resources/scripts/enums_ex.lua:43 enums/ModCallbacks.md entities done id 1041
|
||||
callback ModCallbacks MC_POST_FAMILIAR_COLLISION repentogon/resources/scripts/enums_ex.lua:209 enums/ModCallbacks.md familiar done id 1235
|
||||
callback ModCallbacks MC_POST_FAMILIAR_FIRE_BRIMSTONE repentogon/resources/scripts/enums_ex.lua:235 enums/ModCallbacks.md familiar done id 1261
|
||||
callback ModCallbacks MC_POST_FAMILIAR_FIRE_PROJECTILE repentogon/resources/scripts/enums_ex.lua:226 enums/ModCallbacks.md familiar done id 1252
|
||||
callback ModCallbacks MC_POST_FAMILIAR_FIRE_TECH_LASER repentogon/resources/scripts/enums_ex.lua:236 enums/ModCallbacks.md familiar done id 1262
|
||||
callback ModCallbacks MC_POST_FIRE_BOMB repentogon/resources/scripts/enums_ex.lua:227 enums/ModCallbacks.md tear and weapons done id 1253
|
||||
callback ModCallbacks MC_POST_FIRE_BONE_CLUB repentogon/resources/scripts/enums_ex.lua:228 enums/ModCallbacks.md tear and weapons done id 1254
|
||||
callback ModCallbacks MC_POST_FIRE_BRIMSTONE repentogon/resources/scripts/enums_ex.lua:229 enums/ModCallbacks.md tear and weapons done id 1255
|
||||
callback ModCallbacks MC_POST_FIRE_BRIMSTONE_BALL repentogon/resources/scripts/enums_ex.lua:230 enums/ModCallbacks.md tear and weapons done id 1256
|
||||
callback ModCallbacks MC_POST_FIRE_KNIFE repentogon/resources/scripts/enums_ex.lua:231 enums/ModCallbacks.md tear and weapons done id 1257
|
||||
callback ModCallbacks MC_POST_FIRE_SPLIT_TEAR repentogon/resources/scripts/enums_ex.lua:27 enums/ModCallbacks.md tear and weapons todo id 1025
|
||||
callback ModCallbacks MC_POST_FIRE_SWORD repentogon/resources/scripts/enums_ex.lua:232 enums/ModCallbacks.md tear and weapons todo id 1258
|
||||
callback ModCallbacks MC_POST_FIRE_TECH_LASER repentogon/resources/scripts/enums_ex.lua:233 enums/ModCallbacks.md tear and weapons todo id 1259
|
||||
callback ModCallbacks MC_POST_FIRE_TECH_X_LASER repentogon/resources/scripts/enums_ex.lua:234 enums/ModCallbacks.md tear and weapons todo id 1260
|
||||
callback ModCallbacks MC_POST_FORCE_ADD_PILL_EFFECT repentogon/resources/scripts/enums_ex.lua:131 enums/ModCallbacks.md items and pools todo id 1129
|
||||
callback ModCallbacks MC_POST_GAME_STATE_RESTORE repentogon/resources/scripts/enums_ex.lua:286 hud and menus todo id 1312
|
||||
callback ModCallbacks MC_POST_GAME_STATE_SAVE repentogon/resources/scripts/enums_ex.lua:284 persistent data and saves todo id 1310
|
||||
callback ModCallbacks MC_POST_GLOWING_HOURGLASS_LOAD repentogon/resources/scripts/enums_ex.lua:275 enums/ModCallbacks.md misc todo id 1301
|
||||
callback ModCallbacks MC_POST_GLOWING_HOURGLASS_SAVE repentogon/resources/scripts/enums_ex.lua:274 enums/ModCallbacks.md persistent data and saves todo id 1300
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_DECORATION_RENDER repentogon/resources/scripts/enums_ex.lua:361 enums/ModCallbacks.md render and sprites todo id 1445
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_DECORATION_UPDATE repentogon/resources/scripts/enums_ex.lua:318 enums/ModCallbacks.md level and room todo id 1401
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_DOOR_RENDER repentogon/resources/scripts/enums_ex.lua:363 enums/ModCallbacks.md render and sprites todo id 1447
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_DOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:320 enums/ModCallbacks.md level and room todo id 1403
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_FIRE_RENDER repentogon/resources/scripts/enums_ex.lua:365 enums/ModCallbacks.md tear and weapons todo id 1449
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_FIRE_UPDATE repentogon/resources/scripts/enums_ex.lua:322 enums/ModCallbacks.md tear and weapons todo id 1405
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_GRAVITY_UPDATE repentogon/resources/scripts/enums_ex.lua:324 enums/ModCallbacks.md level and room todo id 1407
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_LOCK_RENDER repentogon/resources/scripts/enums_ex.lua:367 enums/ModCallbacks.md render and sprites todo id 1451
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_LOCK_UPDATE repentogon/resources/scripts/enums_ex.lua:326 enums/ModCallbacks.md level and room todo id 1409
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_PIT_RENDER repentogon/resources/scripts/enums_ex.lua:371 enums/ModCallbacks.md render and sprites todo id 1455
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_PIT_UPDATE repentogon/resources/scripts/enums_ex.lua:328 enums/ModCallbacks.md level and room todo id 1411
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_POOP_RENDER repentogon/resources/scripts/enums_ex.lua:373 enums/ModCallbacks.md render and sprites todo id 1457
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_POOP_UPDATE repentogon/resources/scripts/enums_ex.lua:330 enums/ModCallbacks.md level and room todo id 1413
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_PRESSUREPLATE_RENDER repentogon/resources/scripts/enums_ex.lua:377 enums/ModCallbacks.md render and sprites todo id 1461
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_PRESSUREPLATE_UPDATE repentogon/resources/scripts/enums_ex.lua:332 enums/ModCallbacks.md level and room todo id 1415
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_ROCK_RENDER repentogon/resources/scripts/enums_ex.lua:375 enums/ModCallbacks.md render and sprites todo id 1459
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_ROCK_UPDATE repentogon/resources/scripts/enums_ex.lua:334 enums/ModCallbacks.md level and room todo id 1417
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_SPAWN repentogon/resources/scripts/enums_ex.lua:103 enums/ModCallbacks.md level and room todo id 1101
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_SPIKES_RENDER repentogon/resources/scripts/enums_ex.lua:350 enums/ModCallbacks.md render and sprites todo id 1433
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_SPIKES_UPDATE repentogon/resources/scripts/enums_ex.lua:336 enums/ModCallbacks.md level and room todo id 1419
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_STAIRCASE_RENDER repentogon/resources/scripts/enums_ex.lua:358 enums/ModCallbacks.md render and sprites todo id 1441
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_STAIRCASE_UPDATE repentogon/resources/scripts/enums_ex.lua:338 enums/ModCallbacks.md level and room todo id 1421
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_STATUE_UPDATE repentogon/resources/scripts/enums_ex.lua:340 enums/ModCallbacks.md hud and menus todo id 1423
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TELEPORTER_RENDER repentogon/resources/scripts/enums_ex.lua:369 enums/ModCallbacks.md render and sprites todo id 1453
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TELEPORTER_UPDATE repentogon/resources/scripts/enums_ex.lua:342 enums/ModCallbacks.md level and room todo id 1425
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TNT_RENDER repentogon/resources/scripts/enums_ex.lua:354 enums/ModCallbacks.md render and sprites todo id 1437
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TNT_UPDATE repentogon/resources/scripts/enums_ex.lua:348 enums/ModCallbacks.md level and room todo id 1431
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TRAPDOOR_RENDER repentogon/resources/scripts/enums_ex.lua:356 enums/ModCallbacks.md render and sprites todo id 1439
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TRAPDOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:344 enums/ModCallbacks.md level and room todo id 1427
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_WALL_RENDER repentogon/resources/scripts/enums_ex.lua:379 enums/ModCallbacks.md render and sprites todo id 1463
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_WEB_RENDER repentogon/resources/scripts/enums_ex.lua:352 enums/ModCallbacks.md render and sprites todo id 1435
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_WEB_UPDATE repentogon/resources/scripts/enums_ex.lua:346 enums/ModCallbacks.md level and room todo id 1429
|
||||
callback ModCallbacks MC_POST_GRID_HURT repentogon/resources/scripts/enums_ex.lua:19 enums/ModCallbacks.md level and room todo id 1018
|
||||
callback ModCallbacks MC_POST_GRID_HURT_DAMAGE repentogon/resources/scripts/enums_ex.lua:14 enums/ModCallbacks.md level and room todo id 1013
|
||||
callback ModCallbacks MC_POST_GRID_ROCK_DESTROY repentogon/resources/scripts/enums_ex.lua:12 enums/ModCallbacks.md level and room todo id 1011
|
||||
callback ModCallbacks MC_POST_HISTORYHUD_RECOMPUTE repentogon/resources/scripts/enums_ex.lua:31 enums/ModCallbacks.md hud and menus todo id 1029
|
||||
callback ModCallbacks MC_POST_HISTORYHUD_RENDER repentogon/resources/scripts/enums_ex.lua:30 enums/ModCallbacks.md hud and menus todo id 1028
|
||||
callback ModCallbacks MC_POST_HUD_RENDER repentogon/resources/scripts/enums_ex.lua:26 enums/ModCallbacks.md hud and menus todo id 1024
|
||||
callback ModCallbacks MC_POST_HUD_UPDATE repentogon/resources/scripts/enums_ex.lua:23 enums/ModCallbacks.md hud and menus todo id 1021
|
||||
callback ModCallbacks MC_POST_ITEM_OVERLAY_RENDER repentogon/resources/scripts/enums_ex.lua:141 enums/ModCallbacks.md hud and menus todo id 1139
|
||||
callback ModCallbacks MC_POST_ITEM_OVERLAY_SHOW repentogon/resources/scripts/enums_ex.lua:136 enums/ModCallbacks.md hud and menus todo id 1134
|
||||
callback ModCallbacks MC_POST_ITEM_OVERLAY_UPDATE repentogon/resources/scripts/enums_ex.lua:77 enums/ModCallbacks.md hud and menus todo id 1075
|
||||
callback ModCallbacks MC_POST_KNIFE_COLLISION repentogon/resources/scripts/enums_ex.lua:217 enums/ModCallbacks.md tear and weapons todo id 1243
|
||||
callback ModCallbacks MC_POST_LASER_COLLISION repentogon/resources/scripts/enums_ex.lua:223 enums/ModCallbacks.md tear and weapons todo id 1249
|
||||
callback ModCallbacks MC_POST_LEVEL_LAYOUT_GENERATED repentogon/resources/scripts/enums_ex.lua:101 enums/ModCallbacks.md level and room todo id 1099
|
||||
callback ModCallbacks MC_POST_MINIMAP_RENDER repentogon/resources/scripts/enums_ex.lua:394 hud and menus todo id 1480
|
||||
callback ModCallbacks MC_POST_MINIMAP_UPDATE repentogon/resources/scripts/enums_ex.lua:392 hud and menus todo id 1478
|
||||
callback ModCallbacks MC_POST_MODS_LOADED repentogon/resources/scripts/enums_ex.lua:185 enums/ModCallbacks.md misc todo id 1210
|
||||
callback ModCallbacks MC_POST_NIGHTMARE_SCENE_RENDER repentogon/resources/scripts/enums_ex.lua:104 enums/ModCallbacks.md hud and menus todo id 1102
|
||||
callback ModCallbacks MC_POST_NIGHTMARE_SCENE_SHOW repentogon/resources/scripts/enums_ex.lua:105 enums/ModCallbacks.md hud and menus todo id 1103
|
||||
callback ModCallbacks MC_POST_NPC_COLLISION repentogon/resources/scripts/enums_ex.lua:221 enums/ModCallbacks.md npc todo id 1247
|
||||
callback ModCallbacks MC_POST_NPC_DARK_RED_CHAMPION_REGEN repentogon/resources/scripts/enums_ex.lua:198 enums/ModCallbacks.md npc todo id 1223
|
||||
callback ModCallbacks MC_POST_FIRE_SWORD repentogon/resources/scripts/enums_ex.lua:232 enums/ModCallbacks.md tear and weapons done id 1258
|
||||
callback ModCallbacks MC_POST_FIRE_TECH_LASER repentogon/resources/scripts/enums_ex.lua:233 enums/ModCallbacks.md tear and weapons done id 1259
|
||||
callback ModCallbacks MC_POST_FIRE_TECH_X_LASER repentogon/resources/scripts/enums_ex.lua:234 enums/ModCallbacks.md tear and weapons done id 1260
|
||||
callback ModCallbacks MC_POST_FORCE_ADD_PILL_EFFECT repentogon/resources/scripts/enums_ex.lua:131 enums/ModCallbacks.md items and pools done id 1129
|
||||
callback ModCallbacks MC_POST_GAME_STATE_RESTORE repentogon/resources/scripts/enums_ex.lua:286 hud and menus done id 1312
|
||||
callback ModCallbacks MC_POST_GAME_STATE_SAVE repentogon/resources/scripts/enums_ex.lua:284 persistent data and saves done id 1310
|
||||
callback ModCallbacks MC_POST_GLOWING_HOURGLASS_LOAD repentogon/resources/scripts/enums_ex.lua:275 enums/ModCallbacks.md misc done id 1301
|
||||
callback ModCallbacks MC_POST_GLOWING_HOURGLASS_SAVE repentogon/resources/scripts/enums_ex.lua:274 enums/ModCallbacks.md persistent data and saves done id 1300
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_DECORATION_RENDER repentogon/resources/scripts/enums_ex.lua:361 enums/ModCallbacks.md render and sprites done id 1445
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_DECORATION_UPDATE repentogon/resources/scripts/enums_ex.lua:318 enums/ModCallbacks.md level and room done id 1401
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_DOOR_RENDER repentogon/resources/scripts/enums_ex.lua:363 enums/ModCallbacks.md render and sprites done id 1447
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_DOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:320 enums/ModCallbacks.md level and room done id 1403
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_FIRE_RENDER repentogon/resources/scripts/enums_ex.lua:365 enums/ModCallbacks.md tear and weapons done id 1449
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_FIRE_UPDATE repentogon/resources/scripts/enums_ex.lua:322 enums/ModCallbacks.md tear and weapons done id 1405
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_GRAVITY_UPDATE repentogon/resources/scripts/enums_ex.lua:324 enums/ModCallbacks.md level and room done id 1407
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_LOCK_RENDER repentogon/resources/scripts/enums_ex.lua:367 enums/ModCallbacks.md render and sprites done id 1451
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_LOCK_UPDATE repentogon/resources/scripts/enums_ex.lua:326 enums/ModCallbacks.md level and room done id 1409
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_PIT_RENDER repentogon/resources/scripts/enums_ex.lua:371 enums/ModCallbacks.md render and sprites done id 1455
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_PIT_UPDATE repentogon/resources/scripts/enums_ex.lua:328 enums/ModCallbacks.md level and room done id 1411
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_POOP_RENDER repentogon/resources/scripts/enums_ex.lua:373 enums/ModCallbacks.md render and sprites done id 1457
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_POOP_UPDATE repentogon/resources/scripts/enums_ex.lua:330 enums/ModCallbacks.md level and room done id 1413
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_PRESSUREPLATE_RENDER repentogon/resources/scripts/enums_ex.lua:377 enums/ModCallbacks.md render and sprites done id 1461
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_PRESSUREPLATE_UPDATE repentogon/resources/scripts/enums_ex.lua:332 enums/ModCallbacks.md level and room done id 1415
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_ROCK_RENDER repentogon/resources/scripts/enums_ex.lua:375 enums/ModCallbacks.md render and sprites done id 1459
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_ROCK_UPDATE repentogon/resources/scripts/enums_ex.lua:334 enums/ModCallbacks.md level and room done id 1417
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_SPAWN repentogon/resources/scripts/enums_ex.lua:103 enums/ModCallbacks.md level and room done id 1101
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_SPIKES_RENDER repentogon/resources/scripts/enums_ex.lua:350 enums/ModCallbacks.md render and sprites done id 1433
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_SPIKES_UPDATE repentogon/resources/scripts/enums_ex.lua:336 enums/ModCallbacks.md level and room done id 1419
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_STAIRCASE_RENDER repentogon/resources/scripts/enums_ex.lua:358 enums/ModCallbacks.md render and sprites done id 1441
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_STAIRCASE_UPDATE repentogon/resources/scripts/enums_ex.lua:338 enums/ModCallbacks.md level and room done id 1421
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_STATUE_UPDATE repentogon/resources/scripts/enums_ex.lua:340 enums/ModCallbacks.md hud and menus done id 1423
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TELEPORTER_RENDER repentogon/resources/scripts/enums_ex.lua:369 enums/ModCallbacks.md render and sprites done id 1453
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TELEPORTER_UPDATE repentogon/resources/scripts/enums_ex.lua:342 enums/ModCallbacks.md level and room done id 1425
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TNT_RENDER repentogon/resources/scripts/enums_ex.lua:354 enums/ModCallbacks.md render and sprites done id 1437
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TNT_UPDATE repentogon/resources/scripts/enums_ex.lua:348 enums/ModCallbacks.md level and room done id 1431
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TRAPDOOR_RENDER repentogon/resources/scripts/enums_ex.lua:356 enums/ModCallbacks.md render and sprites done id 1439
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_TRAPDOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:344 enums/ModCallbacks.md level and room done id 1427
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_WALL_RENDER repentogon/resources/scripts/enums_ex.lua:379 enums/ModCallbacks.md render and sprites done id 1463
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_WEB_RENDER repentogon/resources/scripts/enums_ex.lua:352 enums/ModCallbacks.md render and sprites done id 1435
|
||||
callback ModCallbacks MC_POST_GRID_ENTITY_WEB_UPDATE repentogon/resources/scripts/enums_ex.lua:346 enums/ModCallbacks.md level and room done id 1429
|
||||
callback ModCallbacks MC_POST_GRID_HURT repentogon/resources/scripts/enums_ex.lua:19 enums/ModCallbacks.md level and room done id 1018
|
||||
callback ModCallbacks MC_POST_GRID_HURT_DAMAGE repentogon/resources/scripts/enums_ex.lua:14 enums/ModCallbacks.md level and room done id 1013
|
||||
callback ModCallbacks MC_POST_GRID_ROCK_DESTROY repentogon/resources/scripts/enums_ex.lua:12 enums/ModCallbacks.md level and room done id 1011
|
||||
callback ModCallbacks MC_POST_HISTORYHUD_RECOMPUTE repentogon/resources/scripts/enums_ex.lua:31 enums/ModCallbacks.md hud and menus done id 1029
|
||||
callback ModCallbacks MC_POST_HISTORYHUD_RENDER repentogon/resources/scripts/enums_ex.lua:30 enums/ModCallbacks.md hud and menus done id 1028
|
||||
callback ModCallbacks MC_POST_HUD_RENDER repentogon/resources/scripts/enums_ex.lua:26 enums/ModCallbacks.md hud and menus done id 1024
|
||||
callback ModCallbacks MC_POST_HUD_UPDATE repentogon/resources/scripts/enums_ex.lua:23 enums/ModCallbacks.md hud and menus done id 1021
|
||||
callback ModCallbacks MC_POST_ITEM_OVERLAY_RENDER repentogon/resources/scripts/enums_ex.lua:141 enums/ModCallbacks.md hud and menus done id 1139
|
||||
callback ModCallbacks MC_POST_ITEM_OVERLAY_SHOW repentogon/resources/scripts/enums_ex.lua:136 enums/ModCallbacks.md hud and menus done id 1134
|
||||
callback ModCallbacks MC_POST_ITEM_OVERLAY_UPDATE repentogon/resources/scripts/enums_ex.lua:77 enums/ModCallbacks.md hud and menus done id 1075
|
||||
callback ModCallbacks MC_POST_KNIFE_COLLISION repentogon/resources/scripts/enums_ex.lua:217 enums/ModCallbacks.md tear and weapons done id 1243
|
||||
callback ModCallbacks MC_POST_LASER_COLLISION repentogon/resources/scripts/enums_ex.lua:223 enums/ModCallbacks.md tear and weapons done id 1249
|
||||
callback ModCallbacks MC_POST_LEVEL_LAYOUT_GENERATED repentogon/resources/scripts/enums_ex.lua:101 enums/ModCallbacks.md level and room done id 1099
|
||||
callback ModCallbacks MC_POST_MINIMAP_RENDER repentogon/resources/scripts/enums_ex.lua:394 hud and menus done id 1480
|
||||
callback ModCallbacks MC_POST_MINIMAP_UPDATE repentogon/resources/scripts/enums_ex.lua:392 hud and menus done id 1478
|
||||
callback ModCallbacks MC_POST_MODS_LOADED repentogon/resources/scripts/enums_ex.lua:185 enums/ModCallbacks.md misc done id 1210
|
||||
callback ModCallbacks MC_POST_NIGHTMARE_SCENE_RENDER repentogon/resources/scripts/enums_ex.lua:104 enums/ModCallbacks.md hud and menus done id 1102
|
||||
callback ModCallbacks MC_POST_NIGHTMARE_SCENE_SHOW repentogon/resources/scripts/enums_ex.lua:105 enums/ModCallbacks.md hud and menus done id 1103
|
||||
callback ModCallbacks MC_POST_NPC_COLLISION repentogon/resources/scripts/enums_ex.lua:221 enums/ModCallbacks.md npc done id 1247
|
||||
callback ModCallbacks MC_POST_NPC_DARK_RED_CHAMPION_REGEN repentogon/resources/scripts/enums_ex.lua:198 enums/ModCallbacks.md npc done id 1223
|
||||
callback ModCallbacks MC_POST_NPC_GET_LOOT_LIST repentogon/resources/scripts/enums_ex.lua:302 npc todo id 1339
|
||||
callback ModCallbacks MC_POST_NPC_MORPH repentogon/resources/scripts/enums_ex.lua:189 enums/ModCallbacks.md npc todo id 1214
|
||||
callback ModCallbacks MC_POST_OPEN_CHEST repentogon/resources/scripts/enums_ex.lua:406 enums/ModCallbacks.md misc todo id 1492
|
||||
callback ModCallbacks MC_POST_PAUSE_SCREEN_RENDER repentogon/resources/scripts/enums_ex.lua:194 enums/ModCallbacks.md hud and menus todo id 1219
|
||||
callback ModCallbacks MC_POST_PICKUP_COLLISION repentogon/resources/scripts/enums_ex.lua:213 enums/ModCallbacks.md pickup todo id 1239
|
||||
callback ModCallbacks MC_POST_NPC_MORPH repentogon/resources/scripts/enums_ex.lua:189 enums/ModCallbacks.md npc done id 1214
|
||||
callback ModCallbacks MC_POST_OPEN_CHEST repentogon/resources/scripts/enums_ex.lua:406 enums/ModCallbacks.md misc done id 1492
|
||||
callback ModCallbacks MC_POST_PAUSE_SCREEN_RENDER repentogon/resources/scripts/enums_ex.lua:194 enums/ModCallbacks.md hud and menus done id 1219
|
||||
callback ModCallbacks MC_POST_PICKUP_COLLISION repentogon/resources/scripts/enums_ex.lua:213 enums/ModCallbacks.md pickup done id 1239
|
||||
callback ModCallbacks MC_POST_PICKUP_GET_LOOT_LIST repentogon/resources/scripts/enums_ex.lua:299 enums/ModCallbacks.md pickup todo id 1336
|
||||
callback ModCallbacks MC_POST_PICKUP_MORPH repentogon/resources/scripts/enums_ex.lua:190 enums/ModCallbacks.md pickup todo id 1215
|
||||
callback ModCallbacks MC_POST_PICKUP_MORPH repentogon/resources/scripts/enums_ex.lua:190 enums/ModCallbacks.md pickup done id 1215
|
||||
callback ModCallbacks MC_POST_PICKUP_SELECTION enums/ModCallbacks.md pickup review id 37, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_POST_PICKUP_SHOP_PURCHASE repentogon/resources/scripts/enums_ex.lua:64 enums/ModCallbacks.md pickup todo id 1062
|
||||
callback ModCallbacks MC_POST_PLANETARIUM_CALCULATE repentogon/resources/scripts/enums_ex.lua:117 enums/ModCallbacks.md items and pools todo id 1115
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_ACTIVE_ITEM repentogon/resources/scripts/enums_ex.lua:81 enums/ModCallbacks.md player todo id 1079
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_CRAFTING_TABLE repentogon/resources/scripts/enums_ex.lua:272 enums/ModCallbacks.md player todo id 1298
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_HEARTS repentogon/resources/scripts/enums_ex.lua:93 enums/ModCallbacks.md player todo id 1091
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_INVENTORY repentogon/resources/scripts/enums_ex.lua:268 enums/ModCallbacks.md player todo id 1294
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_POOP_SPELL_QUEUE repentogon/resources/scripts/enums_ex.lua:270 enums/ModCallbacks.md player todo id 1296
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_CARD repentogon/resources/scripts/enums_ex.lua:305 enums/ModCallbacks.md player todo id 1351
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_COSTUME repentogon/resources/scripts/enums_ex.lua:257 enums/ModCallbacks.md player todo id 1283
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_EFFECT repentogon/resources/scripts/enums_ex.lua:247 enums/ModCallbacks.md player todo id 1273
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_HEARTS repentogon/resources/scripts/enums_ex.lua:11 enums/ModCallbacks.md player todo id 1010
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_PILL repentogon/resources/scripts/enums_ex.lua:307 enums/ModCallbacks.md player todo id 1353
|
||||
callback ModCallbacks MC_POST_PLAYER_COLLECT_CARD repentogon/resources/scripts/enums_ex.lua:311 enums/ModCallbacks.md player todo id 1357
|
||||
callback ModCallbacks MC_POST_PLAYER_COLLECT_PILL repentogon/resources/scripts/enums_ex.lua:313 enums/ModCallbacks.md player todo id 1359
|
||||
callback ModCallbacks MC_POST_PLAYER_COLLISION repentogon/resources/scripts/enums_ex.lua:205 enums/ModCallbacks.md player todo id 1231
|
||||
callback ModCallbacks MC_POST_PLAYER_DROP_CARD repentogon/resources/scripts/enums_ex.lua:314 enums/ModCallbacks.md player todo id 1360
|
||||
callback ModCallbacks MC_POST_PLAYER_DROP_PILL repentogon/resources/scripts/enums_ex.lua:315 enums/ModCallbacks.md player todo id 1361
|
||||
callback ModCallbacks MC_POST_PLAYER_DROP_TRINKET repentogon/resources/scripts/enums_ex.lua:146 enums/ModCallbacks.md player todo id 1144
|
||||
callback ModCallbacks MC_POST_PICKUP_SHOP_PURCHASE repentogon/resources/scripts/enums_ex.lua:64 enums/ModCallbacks.md pickup done id 1062
|
||||
callback ModCallbacks MC_POST_PLANETARIUM_CALCULATE repentogon/resources/scripts/enums_ex.lua:117 enums/ModCallbacks.md items and pools done id 1115
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_ACTIVE_ITEM repentogon/resources/scripts/enums_ex.lua:81 enums/ModCallbacks.md player done id 1079
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_CRAFTING_TABLE repentogon/resources/scripts/enums_ex.lua:272 enums/ModCallbacks.md player done id 1298
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_HEARTS repentogon/resources/scripts/enums_ex.lua:93 enums/ModCallbacks.md player done id 1091
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_INVENTORY repentogon/resources/scripts/enums_ex.lua:268 enums/ModCallbacks.md player done id 1294
|
||||
callback ModCallbacks MC_POST_PLAYERHUD_RENDER_POOP_SPELL_QUEUE repentogon/resources/scripts/enums_ex.lua:270 enums/ModCallbacks.md player done id 1296
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_CARD repentogon/resources/scripts/enums_ex.lua:305 enums/ModCallbacks.md player done id 1351
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_COSTUME repentogon/resources/scripts/enums_ex.lua:257 enums/ModCallbacks.md player done id 1283
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_EFFECT repentogon/resources/scripts/enums_ex.lua:247 enums/ModCallbacks.md player done id 1273
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_HEARTS repentogon/resources/scripts/enums_ex.lua:11 enums/ModCallbacks.md player done id 1010
|
||||
callback ModCallbacks MC_POST_PLAYER_ADD_PILL repentogon/resources/scripts/enums_ex.lua:307 enums/ModCallbacks.md player done id 1353
|
||||
callback ModCallbacks MC_POST_PLAYER_COLLECT_CARD repentogon/resources/scripts/enums_ex.lua:311 enums/ModCallbacks.md player done id 1357
|
||||
callback ModCallbacks MC_POST_PLAYER_COLLECT_PILL repentogon/resources/scripts/enums_ex.lua:313 enums/ModCallbacks.md player done id 1359
|
||||
callback ModCallbacks MC_POST_PLAYER_COLLISION repentogon/resources/scripts/enums_ex.lua:205 enums/ModCallbacks.md player done id 1231
|
||||
callback ModCallbacks MC_POST_PLAYER_DROP_CARD repentogon/resources/scripts/enums_ex.lua:314 enums/ModCallbacks.md player done id 1360
|
||||
callback ModCallbacks MC_POST_PLAYER_DROP_PILL repentogon/resources/scripts/enums_ex.lua:315 enums/ModCallbacks.md player done id 1361
|
||||
callback ModCallbacks MC_POST_PLAYER_DROP_TRINKET repentogon/resources/scripts/enums_ex.lua:146 enums/ModCallbacks.md player done id 1144
|
||||
callback ModCallbacks MC_POST_PLAYER_GET_MULTI_SHOT_PARAMS repentogon/resources/scripts/enums_ex.lua:225 player todo id 1251
|
||||
callback ModCallbacks MC_POST_PLAYER_NEW_LEVEL repentogon/resources/scripts/enums_ex.lua:80 enums/ModCallbacks.md player todo id 1078
|
||||
callback ModCallbacks MC_POST_PLAYER_NEW_ROOM_TEMP_EFFECTS repentogon/resources/scripts/enums_ex.lua:79 enums/ModCallbacks.md player todo id 1077
|
||||
callback ModCallbacks MC_POST_PLAYER_REMOVE_CARD repentogon/resources/scripts/enums_ex.lua:308 enums/ModCallbacks.md player todo id 1354
|
||||
callback ModCallbacks MC_POST_PLAYER_REMOVE_COSTUME repentogon/resources/scripts/enums_ex.lua:258 enums/ModCallbacks.md player todo id 1284
|
||||
callback ModCallbacks MC_POST_PLAYER_REMOVE_PILL repentogon/resources/scripts/enums_ex.lua:309 enums/ModCallbacks.md player todo id 1355
|
||||
callback ModCallbacks MC_POST_PLAYER_REVIVE repentogon/resources/scripts/enums_ex.lua:396 enums/ModCallbacks.md player todo id 1482
|
||||
callback ModCallbacks MC_POST_PLAYER_TRIGGER_EFFECT_REMOVED repentogon/resources/scripts/enums_ex.lua:242 enums/ModCallbacks.md player todo id 1268
|
||||
callback ModCallbacks MC_POST_PLAYER_TRIGGER_ROOM_CLEAR repentogon/resources/scripts/enums_ex.lua:140 enums/ModCallbacks.md player todo id 1138
|
||||
callback ModCallbacks MC_POST_PLAYER_USE_BOMB repentogon/resources/scripts/enums_ex.lua:196 enums/ModCallbacks.md player todo id 1221
|
||||
callback ModCallbacks MC_POST_PROJECTILE_COLLISION repentogon/resources/scripts/enums_ex.lua:219 enums/ModCallbacks.md tear and weapons todo id 1245
|
||||
callback ModCallbacks MC_POST_PROJECTILE_DEATH repentogon/resources/scripts/enums_ex.lua:34 enums/ModCallbacks.md tear and weapons todo id 1032
|
||||
callback ModCallbacks MC_POST_PLAYER_NEW_LEVEL repentogon/resources/scripts/enums_ex.lua:80 enums/ModCallbacks.md player done id 1078
|
||||
callback ModCallbacks MC_POST_PLAYER_NEW_ROOM_TEMP_EFFECTS repentogon/resources/scripts/enums_ex.lua:79 enums/ModCallbacks.md player done id 1077
|
||||
callback ModCallbacks MC_POST_PLAYER_REMOVE_CARD repentogon/resources/scripts/enums_ex.lua:308 enums/ModCallbacks.md player done id 1354
|
||||
callback ModCallbacks MC_POST_PLAYER_REMOVE_COSTUME repentogon/resources/scripts/enums_ex.lua:258 enums/ModCallbacks.md player done id 1284
|
||||
callback ModCallbacks MC_POST_PLAYER_REMOVE_PILL repentogon/resources/scripts/enums_ex.lua:309 enums/ModCallbacks.md player done id 1355
|
||||
callback ModCallbacks MC_POST_PLAYER_REVIVE repentogon/resources/scripts/enums_ex.lua:396 enums/ModCallbacks.md player done id 1482
|
||||
callback ModCallbacks MC_POST_PLAYER_TRIGGER_EFFECT_REMOVED repentogon/resources/scripts/enums_ex.lua:242 enums/ModCallbacks.md player done id 1268
|
||||
callback ModCallbacks MC_POST_PLAYER_TRIGGER_ROOM_CLEAR repentogon/resources/scripts/enums_ex.lua:140 enums/ModCallbacks.md player done id 1138
|
||||
callback ModCallbacks MC_POST_PLAYER_USE_BOMB repentogon/resources/scripts/enums_ex.lua:196 enums/ModCallbacks.md player done id 1221
|
||||
callback ModCallbacks MC_POST_PROJECTILE_COLLISION repentogon/resources/scripts/enums_ex.lua:219 enums/ModCallbacks.md tear and weapons done id 1245
|
||||
callback ModCallbacks MC_POST_PROJECTILE_DEATH repentogon/resources/scripts/enums_ex.lua:34 enums/ModCallbacks.md tear and weapons done id 1032
|
||||
callback ModCallbacks MC_POST_REMOVE_INNATE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:58 enums/ModCallbacks.md items and pools todo id 1056
|
||||
callback ModCallbacks MC_POST_REMOVE_INNATE_TRINKET repentogon/resources/scripts/enums_ex.lua:59 enums/ModCallbacks.md items and pools todo id 1057
|
||||
callback ModCallbacks MC_POST_RENDER_CHARACTER_SELECT_PAGE repentogon/resources/scripts/enums_ex.lua:293 enums/ModCallbacks.md render and sprites todo id 1330
|
||||
callback ModCallbacks MC_POST_RENDER_CHARACTER_SELECT_PORTRAIT repentogon/resources/scripts/enums_ex.lua:295 enums/ModCallbacks.md render and sprites todo id 1332
|
||||
callback ModCallbacks MC_POST_RENDER_PLAYER_BODY repentogon/resources/scripts/enums_ex.lua:48 player todo id 1046
|
||||
callback ModCallbacks MC_POST_RENDER_PLAYER_HEAD repentogon/resources/scripts/enums_ex.lua:47 player todo id 1045
|
||||
callback ModCallbacks MC_POST_REPLACE_SPRITESHEET repentogon/resources/scripts/enums_ex.lua:119 enums/ModCallbacks.md render and sprites todo id 1117
|
||||
callback ModCallbacks MC_POST_RESTOCK_SHOP repentogon/resources/scripts/enums_ex.lua:73 enums/ModCallbacks.md items and pools todo id 1071
|
||||
callback ModCallbacks MC_POST_ROOM_ADD_EFFECT repentogon/resources/scripts/enums_ex.lua:248 enums/ModCallbacks.md level and room todo id 1274
|
||||
callback ModCallbacks MC_POST_ROOM_RENDER_ENTITIES repentogon/resources/scripts/enums_ex.lua:46 enums/ModCallbacks.md render and sprites todo id 1044
|
||||
callback ModCallbacks MC_POST_ROOM_SAVE_STATE repentogon/resources/scripts/enums_ex.lua:278 enums/ModCallbacks.md persistent data and saves todo id 1304
|
||||
callback ModCallbacks MC_POST_ROOM_TRANSITION_RENDER repentogon/resources/scripts/enums_ex.lua:246 enums/ModCallbacks.md render and sprites todo id 1272
|
||||
callback ModCallbacks MC_POST_ROOM_TRANSITION_UPDATE repentogon/resources/scripts/enums_ex.lua:245 enums/ModCallbacks.md level and room todo id 1271
|
||||
callback ModCallbacks MC_POST_ROOM_TRIGGER_CLEAR repentogon/resources/scripts/enums_ex.lua:145 enums/ModCallbacks.md level and room todo id 1143
|
||||
callback ModCallbacks MC_POST_ROOM_TRIGGER_EFFECT_REMOVED repentogon/resources/scripts/enums_ex.lua:243 enums/ModCallbacks.md level and room todo id 1269
|
||||
callback ModCallbacks MC_POST_SAVESLOT_LOAD repentogon/resources/scripts/enums_ex.lua:384 enums/ModCallbacks.md persistent data and saves todo id 1470
|
||||
callback ModCallbacks MC_POST_SFX_PLAY repentogon/resources/scripts/enums_ex.lua:33 enums/ModCallbacks.md audio todo id 1031
|
||||
callback ModCallbacks MC_POST_SHUFFLE_COSTUMES repentogon/resources/scripts/enums_ex.lua:409 enums/ModCallbacks.md player todo id 1495
|
||||
callback ModCallbacks MC_POST_SLOT_COLLISION repentogon/resources/scripts/enums_ex.lua:215 enums/ModCallbacks.md pickup todo id 1241
|
||||
callback ModCallbacks MC_POST_SLOT_CREATE_EXPLOSION_DROPS repentogon/resources/scripts/enums_ex.lua:126 enums/ModCallbacks.md pickup todo id 1124
|
||||
callback ModCallbacks MC_POST_SLOT_INIT repentogon/resources/scripts/enums_ex.lua:123 enums/ModCallbacks.md pickup todo id 1121
|
||||
callback ModCallbacks MC_POST_SLOT_RENDER repentogon/resources/scripts/enums_ex.lua:92 enums/ModCallbacks.md pickup todo id 1090
|
||||
callback ModCallbacks MC_POST_SLOT_SET_PRIZE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:128 enums/ModCallbacks.md pickup todo id 1126
|
||||
callback ModCallbacks MC_POST_SLOT_UPDATE repentogon/resources/scripts/enums_ex.lua:124 enums/ModCallbacks.md pickup todo id 1122
|
||||
callback ModCallbacks MC_POST_START_AMBUSH_WAVE repentogon/resources/scripts/enums_ex.lua:402 enums/ModCallbacks.md level and room todo id 1488
|
||||
callback ModCallbacks MC_POST_START_GREED_WAVE repentogon/resources/scripts/enums_ex.lua:403 enums/ModCallbacks.md level and room todo id 1489
|
||||
callback ModCallbacks MC_POST_STATUS_EFFECT_APPLY repentogon/resources/scripts/enums_ex.lua:382 enums/ModCallbacks.md hud and menus todo id 1466
|
||||
callback ModCallbacks MC_POST_SWAP_ROOMS repentogon/resources/scripts/enums_ex.lua:280 enums/ModCallbacks.md level and room todo id 1306
|
||||
callback ModCallbacks MC_POST_TAKE_DMG repentogon/resources/scripts/enums_ex.lua:6 entities todo id 1006
|
||||
callback ModCallbacks MC_POST_TEAR_COLLISION repentogon/resources/scripts/enums_ex.lua:207 enums/ModCallbacks.md tear and weapons todo id 1233
|
||||
callback ModCallbacks MC_POST_TEAR_DEATH repentogon/resources/scripts/enums_ex.lua:35 enums/ModCallbacks.md tear and weapons todo id 1033
|
||||
callback ModCallbacks MC_POST_RENDER_CHARACTER_SELECT_PAGE repentogon/resources/scripts/enums_ex.lua:293 enums/ModCallbacks.md render and sprites done id 1330
|
||||
callback ModCallbacks MC_POST_RENDER_CHARACTER_SELECT_PORTRAIT repentogon/resources/scripts/enums_ex.lua:295 enums/ModCallbacks.md render and sprites done id 1332
|
||||
callback ModCallbacks MC_POST_RENDER_PLAYER_BODY repentogon/resources/scripts/enums_ex.lua:48 player done id 1046
|
||||
callback ModCallbacks MC_POST_RENDER_PLAYER_HEAD repentogon/resources/scripts/enums_ex.lua:47 player done id 1045
|
||||
callback ModCallbacks MC_POST_REPLACE_SPRITESHEET repentogon/resources/scripts/enums_ex.lua:119 enums/ModCallbacks.md render and sprites done id 1117
|
||||
callback ModCallbacks MC_POST_RESTOCK_SHOP repentogon/resources/scripts/enums_ex.lua:73 enums/ModCallbacks.md items and pools done id 1071
|
||||
callback ModCallbacks MC_POST_ROOM_ADD_EFFECT repentogon/resources/scripts/enums_ex.lua:248 enums/ModCallbacks.md level and room done id 1274
|
||||
callback ModCallbacks MC_POST_ROOM_RENDER_ENTITIES repentogon/resources/scripts/enums_ex.lua:46 enums/ModCallbacks.md render and sprites done id 1044
|
||||
callback ModCallbacks MC_POST_ROOM_SAVE_STATE repentogon/resources/scripts/enums_ex.lua:278 enums/ModCallbacks.md persistent data and saves done id 1304
|
||||
callback ModCallbacks MC_POST_ROOM_TRANSITION_RENDER repentogon/resources/scripts/enums_ex.lua:246 enums/ModCallbacks.md render and sprites done id 1272
|
||||
callback ModCallbacks MC_POST_ROOM_TRANSITION_UPDATE repentogon/resources/scripts/enums_ex.lua:245 enums/ModCallbacks.md level and room done id 1271
|
||||
callback ModCallbacks MC_POST_ROOM_TRIGGER_CLEAR repentogon/resources/scripts/enums_ex.lua:145 enums/ModCallbacks.md level and room done id 1143
|
||||
callback ModCallbacks MC_POST_ROOM_TRIGGER_EFFECT_REMOVED repentogon/resources/scripts/enums_ex.lua:243 enums/ModCallbacks.md level and room done id 1269
|
||||
callback ModCallbacks MC_POST_SAVESLOT_LOAD repentogon/resources/scripts/enums_ex.lua:384 enums/ModCallbacks.md persistent data and saves done id 1470
|
||||
callback ModCallbacks MC_POST_SFX_PLAY repentogon/resources/scripts/enums_ex.lua:33 enums/ModCallbacks.md audio done id 1031
|
||||
callback ModCallbacks MC_POST_SHUFFLE_COSTUMES repentogon/resources/scripts/enums_ex.lua:409 enums/ModCallbacks.md player done id 1495
|
||||
callback ModCallbacks MC_POST_SLOT_COLLISION repentogon/resources/scripts/enums_ex.lua:215 enums/ModCallbacks.md pickup done id 1241
|
||||
callback ModCallbacks MC_POST_SLOT_CREATE_EXPLOSION_DROPS repentogon/resources/scripts/enums_ex.lua:126 enums/ModCallbacks.md pickup done id 1124
|
||||
callback ModCallbacks MC_POST_SLOT_INIT repentogon/resources/scripts/enums_ex.lua:123 enums/ModCallbacks.md pickup done id 1121
|
||||
callback ModCallbacks MC_POST_SLOT_RENDER repentogon/resources/scripts/enums_ex.lua:92 enums/ModCallbacks.md pickup done id 1090
|
||||
callback ModCallbacks MC_POST_SLOT_SET_PRIZE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:128 enums/ModCallbacks.md pickup done id 1126
|
||||
callback ModCallbacks MC_POST_SLOT_UPDATE repentogon/resources/scripts/enums_ex.lua:124 enums/ModCallbacks.md pickup done id 1122
|
||||
callback ModCallbacks MC_POST_START_AMBUSH_WAVE repentogon/resources/scripts/enums_ex.lua:402 enums/ModCallbacks.md level and room done id 1488
|
||||
callback ModCallbacks MC_POST_START_GREED_WAVE repentogon/resources/scripts/enums_ex.lua:403 enums/ModCallbacks.md level and room done id 1489
|
||||
callback ModCallbacks MC_POST_STATUS_EFFECT_APPLY repentogon/resources/scripts/enums_ex.lua:382 enums/ModCallbacks.md hud and menus done id 1466
|
||||
callback ModCallbacks MC_POST_SWAP_ROOMS repentogon/resources/scripts/enums_ex.lua:280 enums/ModCallbacks.md level and room done id 1306
|
||||
callback ModCallbacks MC_POST_TAKE_DMG repentogon/resources/scripts/enums_ex.lua:6 entities done id 1006
|
||||
callback ModCallbacks MC_POST_TEAR_COLLISION repentogon/resources/scripts/enums_ex.lua:207 enums/ModCallbacks.md tear and weapons done id 1233
|
||||
callback ModCallbacks MC_POST_TEAR_DEATH repentogon/resources/scripts/enums_ex.lua:35 enums/ModCallbacks.md tear and weapons done id 1033
|
||||
callback ModCallbacks MC_POST_TRIGGER_BED_SLEEP_EFFECT repentogon/resources/scripts/enums_ex.lua:260 enums/ModCallbacks.md misc todo id 1286
|
||||
callback ModCallbacks MC_POST_TRIGGER_COLLECTIBLE_ADDED repentogon/resources/scripts/enums_ex.lua:55 enums/ModCallbacks.md items and pools todo id 1053
|
||||
callback ModCallbacks MC_POST_TRIGGER_COLLECTIBLE_REMOVED repentogon/resources/scripts/enums_ex.lua:97 enums/ModCallbacks.md items and pools todo id 1095
|
||||
callback ModCallbacks MC_POST_TRIGGER_TRINKET_ADDED repentogon/resources/scripts/enums_ex.lua:98 enums/ModCallbacks.md items and pools todo id 1096
|
||||
callback ModCallbacks MC_POST_TRIGGER_TRINKET_REMOVED repentogon/resources/scripts/enums_ex.lua:99 enums/ModCallbacks.md items and pools todo id 1097
|
||||
callback ModCallbacks MC_POST_TRIGGER_COLLECTIBLE_ADDED repentogon/resources/scripts/enums_ex.lua:55 enums/ModCallbacks.md items and pools done id 1053
|
||||
callback ModCallbacks MC_POST_TRIGGER_COLLECTIBLE_REMOVED repentogon/resources/scripts/enums_ex.lua:97 enums/ModCallbacks.md items and pools done id 1095
|
||||
callback ModCallbacks MC_POST_TRIGGER_TRINKET_ADDED repentogon/resources/scripts/enums_ex.lua:98 enums/ModCallbacks.md items and pools done id 1096
|
||||
callback ModCallbacks MC_POST_TRIGGER_TRINKET_REMOVED repentogon/resources/scripts/enums_ex.lua:99 enums/ModCallbacks.md items and pools done id 1097
|
||||
callback ModCallbacks MC_POST_TRIGGER_WEAPON_FIRED repentogon/resources/scripts/enums_ex.lua:100 enums/ModCallbacks.md tear and weapons todo id 1098
|
||||
callback ModCallbacks MC_POST_USE_ITEM repentogon/resources/scripts/enums_ex.lua:3 enums/ModCallbacks.md items and pools todo id 1003
|
||||
callback ModCallbacks MC_POST_USE_ITEM repentogon/resources/scripts/enums_ex.lua:3 enums/ModCallbacks.md items and pools done id 1003
|
||||
callback ModCallbacks MC_POST_WEAPON_FIRE repentogon/resources/scripts/enums_ex.lua:107 enums/ModCallbacks.md tear and weapons todo id 1105
|
||||
callback ModCallbacks MC_PRE_ADD_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:4 enums/ModCallbacks.md items and pools todo id 1004
|
||||
callback ModCallbacks MC_PRE_ADD_TRINKET repentogon/resources/scripts/enums_ex.lua:15 enums/ModCallbacks.md items and pools todo id 1014
|
||||
callback ModCallbacks MC_PRE_APPLY_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:251 enums/ModCallbacks.md tear and weapons todo id 1277
|
||||
callback ModCallbacks MC_PRE_BACKDROP_CHANGE repentogon/resources/scripts/enums_ex.lua:143 enums/ModCallbacks.md level and room todo id 1141
|
||||
callback ModCallbacks MC_PRE_BACKDROP_RENDER_FLOOR repentogon/resources/scripts/enums_ex.lua:109 enums/ModCallbacks.md render and sprites todo id 1107
|
||||
callback ModCallbacks MC_PRE_BACKDROP_RENDER_WALLS repentogon/resources/scripts/enums_ex.lua:108 enums/ModCallbacks.md render and sprites todo id 1106
|
||||
callback ModCallbacks MC_PRE_BACKDROP_RENDER_WATER repentogon/resources/scripts/enums_ex.lua:110 enums/ModCallbacks.md render and sprites todo id 1108
|
||||
callback ModCallbacks MC_PRE_BED_SLEEP repentogon/resources/scripts/enums_ex.lua:262 enums/ModCallbacks.md misc todo id 1288
|
||||
callback ModCallbacks MC_PRE_ADD_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:4 enums/ModCallbacks.md items and pools done id 1004
|
||||
callback ModCallbacks MC_PRE_ADD_TRINKET repentogon/resources/scripts/enums_ex.lua:15 enums/ModCallbacks.md items and pools done id 1014
|
||||
callback ModCallbacks MC_PRE_APPLY_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:251 enums/ModCallbacks.md tear and weapons done id 1277
|
||||
callback ModCallbacks MC_PRE_BACKDROP_CHANGE repentogon/resources/scripts/enums_ex.lua:143 enums/ModCallbacks.md level and room done id 1141
|
||||
callback ModCallbacks MC_PRE_BACKDROP_RENDER_FLOOR repentogon/resources/scripts/enums_ex.lua:109 enums/ModCallbacks.md render and sprites done id 1107
|
||||
callback ModCallbacks MC_PRE_BACKDROP_RENDER_WALLS repentogon/resources/scripts/enums_ex.lua:108 enums/ModCallbacks.md render and sprites done id 1106
|
||||
callback ModCallbacks MC_PRE_BACKDROP_RENDER_WATER repentogon/resources/scripts/enums_ex.lua:110 enums/ModCallbacks.md render and sprites done id 1108
|
||||
callback ModCallbacks MC_PRE_BED_SLEEP repentogon/resources/scripts/enums_ex.lua:262 enums/ModCallbacks.md misc done id 1288
|
||||
callback ModCallbacks MC_PRE_BOMB_COLLISION enums/ModCallbacks.md tear and weapons review id 60, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_BOMB_DAMAGE repentogon/resources/scripts/enums_ex.lua:265 enums/ModCallbacks.md tear and weapons todo id 1291
|
||||
callback ModCallbacks MC_PRE_BOMB_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:169 enums/ModCallbacks.md tear and weapons todo id 1177
|
||||
callback ModCallbacks MC_PRE_BOMB_RENDER repentogon/resources/scripts/enums_ex.lua:90 enums/ModCallbacks.md tear and weapons todo id 1088
|
||||
callback ModCallbacks MC_PRE_BOMB_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:266 enums/ModCallbacks.md tear and weapons todo id 1292
|
||||
callback ModCallbacks MC_PRE_BOMB_UPDATE repentogon/resources/scripts/enums_ex.lua:155 enums/ModCallbacks.md tear and weapons todo id 1163
|
||||
callback ModCallbacks MC_PRE_BOMB_DAMAGE repentogon/resources/scripts/enums_ex.lua:265 enums/ModCallbacks.md tear and weapons done id 1291
|
||||
callback ModCallbacks MC_PRE_BOMB_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:169 enums/ModCallbacks.md tear and weapons done id 1177
|
||||
callback ModCallbacks MC_PRE_BOMB_RENDER repentogon/resources/scripts/enums_ex.lua:90 enums/ModCallbacks.md tear and weapons done id 1088
|
||||
callback ModCallbacks MC_PRE_BOMB_TEARFLAG_EFFECTS repentogon/resources/scripts/enums_ex.lua:266 enums/ModCallbacks.md tear and weapons done id 1292
|
||||
callback ModCallbacks MC_PRE_BOMB_UPDATE repentogon/resources/scripts/enums_ex.lua:155 enums/ModCallbacks.md tear and weapons done id 1163
|
||||
callback ModCallbacks MC_PRE_BOSS_SELECT repentogon/resources/scripts/enums_ex.lua:254 enums/ModCallbacks.md npc todo id 1280
|
||||
callback ModCallbacks MC_PRE_BRIMSTONE_SNEEZE repentogon/resources/scripts/enums_ex.lua:38 enums/ModCallbacks.md tear and weapons todo id 1036
|
||||
callback ModCallbacks MC_PRE_CHALLENGE_DONE repentogon/resources/scripts/enums_ex.lua:385 enums/ModCallbacks.md game todo id 1471
|
||||
callback ModCallbacks MC_PRE_CHANGE_ROOM repentogon/resources/scripts/enums_ex.lua:63 enums/ModCallbacks.md level and room todo id 1061
|
||||
callback ModCallbacks MC_PRE_COMPLETION_EVENT repentogon/resources/scripts/enums_ex.lua:51 enums/ModCallbacks.md persistent data and saves todo id 1049
|
||||
callback ModCallbacks MC_PRE_COMPLETION_MARKS_RENDER repentogon/resources/scripts/enums_ex.lua:191 enums/ModCallbacks.md persistent data and saves todo id 1216
|
||||
callback ModCallbacks MC_PRE_DEVIL_APPLY_ITEMS repentogon/resources/scripts/enums_ex.lua:132 enums/ModCallbacks.md items and pools todo id 1130
|
||||
callback ModCallbacks MC_PRE_DEVIL_APPLY_SPECIAL_ITEMS repentogon/resources/scripts/enums_ex.lua:134 enums/ModCallbacks.md items and pools todo id 1132
|
||||
callback ModCallbacks MC_PRE_DEVIL_APPLY_STAGE_PENALTY repentogon/resources/scripts/enums_ex.lua:133 enums/ModCallbacks.md level and room todo id 1131
|
||||
callback ModCallbacks MC_PRE_EFFECT_RENDER repentogon/resources/scripts/enums_ex.lua:89 enums/ModCallbacks.md render and sprites todo id 1087
|
||||
callback ModCallbacks MC_PRE_EFFECT_UPDATE repentogon/resources/scripts/enums_ex.lua:160 enums/ModCallbacks.md game todo id 1168
|
||||
callback ModCallbacks MC_PRE_ENTITY_SET_COLOR repentogon/resources/scripts/enums_ex.lua:400 enums/ModCallbacks.md render and sprites todo id 1486
|
||||
callback ModCallbacks MC_PRE_ENTITY_THROW repentogon/resources/scripts/enums_ex.lua:42 enums/ModCallbacks.md entities todo id 1040
|
||||
callback ModCallbacks MC_PRE_FAMILIAR_CAN_CHARM repentogon/resources/scripts/enums_ex.lua:387 enums/ModCallbacks.md familiar todo id 1473
|
||||
callback ModCallbacks MC_PRE_BRIMSTONE_SNEEZE repentogon/resources/scripts/enums_ex.lua:38 enums/ModCallbacks.md tear and weapons done id 1036
|
||||
callback ModCallbacks MC_PRE_CHALLENGE_DONE repentogon/resources/scripts/enums_ex.lua:385 enums/ModCallbacks.md game done id 1471
|
||||
callback ModCallbacks MC_PRE_CHANGE_ROOM repentogon/resources/scripts/enums_ex.lua:63 enums/ModCallbacks.md level and room done id 1061
|
||||
callback ModCallbacks MC_PRE_COMPLETION_EVENT repentogon/resources/scripts/enums_ex.lua:51 enums/ModCallbacks.md persistent data and saves done id 1049
|
||||
callback ModCallbacks MC_PRE_COMPLETION_MARKS_RENDER repentogon/resources/scripts/enums_ex.lua:191 enums/ModCallbacks.md persistent data and saves done id 1216
|
||||
callback ModCallbacks MC_PRE_DEVIL_APPLY_ITEMS repentogon/resources/scripts/enums_ex.lua:132 enums/ModCallbacks.md items and pools done id 1130
|
||||
callback ModCallbacks MC_PRE_DEVIL_APPLY_SPECIAL_ITEMS repentogon/resources/scripts/enums_ex.lua:134 enums/ModCallbacks.md items and pools done id 1132
|
||||
callback ModCallbacks MC_PRE_DEVIL_APPLY_STAGE_PENALTY repentogon/resources/scripts/enums_ex.lua:133 enums/ModCallbacks.md level and room done id 1131
|
||||
callback ModCallbacks MC_PRE_EFFECT_RENDER repentogon/resources/scripts/enums_ex.lua:89 enums/ModCallbacks.md render and sprites done id 1087
|
||||
callback ModCallbacks MC_PRE_EFFECT_UPDATE repentogon/resources/scripts/enums_ex.lua:160 enums/ModCallbacks.md game done id 1168
|
||||
callback ModCallbacks MC_PRE_ENTITY_SET_COLOR repentogon/resources/scripts/enums_ex.lua:400 enums/ModCallbacks.md render and sprites done id 1486
|
||||
callback ModCallbacks MC_PRE_ENTITY_THROW repentogon/resources/scripts/enums_ex.lua:42 enums/ModCallbacks.md entities done id 1040
|
||||
callback ModCallbacks MC_PRE_FAMILIAR_CAN_CHARM repentogon/resources/scripts/enums_ex.lua:387 enums/ModCallbacks.md familiar done id 1473
|
||||
callback ModCallbacks MC_PRE_FAMILIAR_COLLISION enums/ModCallbacks.md familiar review id 26, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_FAMILIAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:167 enums/ModCallbacks.md familiar todo id 1175
|
||||
callback ModCallbacks MC_PRE_FAMILIAR_RENDER repentogon/resources/scripts/enums_ex.lua:82 enums/ModCallbacks.md familiar todo id 1080
|
||||
callback ModCallbacks MC_PRE_FAMILIAR_UPDATE repentogon/resources/scripts/enums_ex.lua:154 enums/ModCallbacks.md familiar todo id 1162
|
||||
callback ModCallbacks MC_PRE_FORTUNE_DISPLAY repentogon/resources/scripts/enums_ex.lua:397 enums/ModCallbacks.md misc todo id 1483
|
||||
callback ModCallbacks MC_PRE_GAME_STATE_RESTORE repentogon/resources/scripts/enums_ex.lua:285 hud and menus todo id 1311
|
||||
callback ModCallbacks MC_PRE_GAME_STATE_SAVE repentogon/resources/scripts/enums_ex.lua:283 persistent data and saves todo id 1309
|
||||
callback ModCallbacks MC_PRE_GET_LIGHTING_ALPHA repentogon/resources/scripts/enums_ex.lua:148 enums/ModCallbacks.md render and sprites todo id 1150
|
||||
callback ModCallbacks MC_PRE_GET_RANDOM_ROOM_INDEX repentogon/resources/scripts/enums_ex.lua:264 enums/ModCallbacks.md level and room todo id 1290
|
||||
callback ModCallbacks MC_PRE_GLOWING_HOURGLASS_LOAD repentogon/resources/scripts/enums_ex.lua:277 enums/ModCallbacks.md misc todo id 1303
|
||||
callback ModCallbacks MC_PRE_GLOWING_HOURGLASS_SAVE repentogon/resources/scripts/enums_ex.lua:276 enums/ModCallbacks.md persistent data and saves todo id 1302
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_DECORATION_RENDER repentogon/resources/scripts/enums_ex.lua:360 enums/ModCallbacks.md render and sprites todo id 1444
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_DECORATION_UPDATE repentogon/resources/scripts/enums_ex.lua:317 enums/ModCallbacks.md level and room todo id 1400
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_DOOR_RENDER repentogon/resources/scripts/enums_ex.lua:362 enums/ModCallbacks.md render and sprites todo id 1446
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_DOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:319 enums/ModCallbacks.md level and room todo id 1402
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_FIRE_RENDER repentogon/resources/scripts/enums_ex.lua:364 enums/ModCallbacks.md tear and weapons todo id 1448
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_FIRE_UPDATE repentogon/resources/scripts/enums_ex.lua:321 enums/ModCallbacks.md tear and weapons todo id 1404
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_GRAVITY_UPDATE repentogon/resources/scripts/enums_ex.lua:323 enums/ModCallbacks.md level and room todo id 1406
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_LOCK_RENDER repentogon/resources/scripts/enums_ex.lua:366 enums/ModCallbacks.md render and sprites todo id 1450
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_LOCK_UPDATE repentogon/resources/scripts/enums_ex.lua:325 enums/ModCallbacks.md level and room todo id 1408
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_PIT_RENDER repentogon/resources/scripts/enums_ex.lua:370 enums/ModCallbacks.md render and sprites todo id 1454
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_PIT_UPDATE repentogon/resources/scripts/enums_ex.lua:327 enums/ModCallbacks.md level and room todo id 1410
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_POOP_RENDER repentogon/resources/scripts/enums_ex.lua:372 enums/ModCallbacks.md render and sprites todo id 1456
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_POOP_UPDATE repentogon/resources/scripts/enums_ex.lua:329 enums/ModCallbacks.md level and room todo id 1412
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_PRESSUREPLATE_RENDER repentogon/resources/scripts/enums_ex.lua:376 enums/ModCallbacks.md render and sprites todo id 1460
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_PRESSUREPLATE_UPDATE repentogon/resources/scripts/enums_ex.lua:331 enums/ModCallbacks.md level and room todo id 1414
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_ROCK_RENDER repentogon/resources/scripts/enums_ex.lua:374 enums/ModCallbacks.md render and sprites todo id 1458
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_ROCK_UPDATE repentogon/resources/scripts/enums_ex.lua:333 enums/ModCallbacks.md level and room todo id 1416
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_SPAWN repentogon/resources/scripts/enums_ex.lua:102 enums/ModCallbacks.md level and room todo id 1100
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_SPIKES_RENDER repentogon/resources/scripts/enums_ex.lua:349 enums/ModCallbacks.md render and sprites todo id 1432
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_SPIKES_UPDATE repentogon/resources/scripts/enums_ex.lua:335 enums/ModCallbacks.md level and room todo id 1418
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_STAIRCASE_RENDER repentogon/resources/scripts/enums_ex.lua:357 enums/ModCallbacks.md render and sprites todo id 1440
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_STAIRCASE_UPDATE repentogon/resources/scripts/enums_ex.lua:337 enums/ModCallbacks.md level and room todo id 1420
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_STATUE_UPDATE repentogon/resources/scripts/enums_ex.lua:339 enums/ModCallbacks.md hud and menus todo id 1422
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TELEPORTER_RENDER repentogon/resources/scripts/enums_ex.lua:368 enums/ModCallbacks.md render and sprites todo id 1452
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TELEPORTER_UPDATE repentogon/resources/scripts/enums_ex.lua:341 enums/ModCallbacks.md level and room todo id 1424
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TNT_RENDER repentogon/resources/scripts/enums_ex.lua:353 enums/ModCallbacks.md render and sprites todo id 1436
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TNT_UPDATE repentogon/resources/scripts/enums_ex.lua:347 enums/ModCallbacks.md level and room todo id 1430
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TRAPDOOR_RENDER repentogon/resources/scripts/enums_ex.lua:355 enums/ModCallbacks.md render and sprites todo id 1438
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TRAPDOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:343 enums/ModCallbacks.md level and room todo id 1426
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_WALL_RENDER repentogon/resources/scripts/enums_ex.lua:378 enums/ModCallbacks.md render and sprites todo id 1462
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_WEB_RENDER repentogon/resources/scripts/enums_ex.lua:351 enums/ModCallbacks.md render and sprites todo id 1434
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_WEB_UPDATE repentogon/resources/scripts/enums_ex.lua:345 enums/ModCallbacks.md level and room todo id 1428
|
||||
callback ModCallbacks MC_PRE_GRID_HURT repentogon/resources/scripts/enums_ex.lua:18 enums/ModCallbacks.md level and room todo id 1017
|
||||
callback ModCallbacks MC_PRE_HISTORYHUD_RENDER repentogon/resources/scripts/enums_ex.lua:29 enums/ModCallbacks.md hud and menus todo id 1027
|
||||
callback ModCallbacks MC_PRE_ITEM_OVERLAY_SHOW repentogon/resources/scripts/enums_ex.lua:78 enums/ModCallbacks.md hud and menus todo id 1076
|
||||
callback ModCallbacks MC_PRE_ITEM_TEXT_DISPLAY repentogon/resources/scripts/enums_ex.lua:398 enums/ModCallbacks.md items and pools todo id 1484
|
||||
callback ModCallbacks MC_PRE_FAMILIAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:167 enums/ModCallbacks.md familiar done id 1175
|
||||
callback ModCallbacks MC_PRE_FAMILIAR_RENDER repentogon/resources/scripts/enums_ex.lua:82 enums/ModCallbacks.md familiar done id 1080
|
||||
callback ModCallbacks MC_PRE_FAMILIAR_UPDATE repentogon/resources/scripts/enums_ex.lua:154 enums/ModCallbacks.md familiar done id 1162
|
||||
callback ModCallbacks MC_PRE_FORTUNE_DISPLAY repentogon/resources/scripts/enums_ex.lua:397 enums/ModCallbacks.md misc done id 1483
|
||||
callback ModCallbacks MC_PRE_GAME_STATE_RESTORE repentogon/resources/scripts/enums_ex.lua:285 hud and menus done id 1311
|
||||
callback ModCallbacks MC_PRE_GAME_STATE_SAVE repentogon/resources/scripts/enums_ex.lua:283 persistent data and saves done id 1309
|
||||
callback ModCallbacks MC_PRE_GET_LIGHTING_ALPHA repentogon/resources/scripts/enums_ex.lua:148 enums/ModCallbacks.md render and sprites done id 1150
|
||||
callback ModCallbacks MC_PRE_GET_RANDOM_ROOM_INDEX repentogon/resources/scripts/enums_ex.lua:264 enums/ModCallbacks.md level and room done id 1290
|
||||
callback ModCallbacks MC_PRE_GLOWING_HOURGLASS_LOAD repentogon/resources/scripts/enums_ex.lua:277 enums/ModCallbacks.md misc done id 1303
|
||||
callback ModCallbacks MC_PRE_GLOWING_HOURGLASS_SAVE repentogon/resources/scripts/enums_ex.lua:276 enums/ModCallbacks.md persistent data and saves done id 1302
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_DECORATION_RENDER repentogon/resources/scripts/enums_ex.lua:360 enums/ModCallbacks.md render and sprites done id 1444
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_DECORATION_UPDATE repentogon/resources/scripts/enums_ex.lua:317 enums/ModCallbacks.md level and room done id 1400
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_DOOR_RENDER repentogon/resources/scripts/enums_ex.lua:362 enums/ModCallbacks.md render and sprites done id 1446
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_DOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:319 enums/ModCallbacks.md level and room done id 1402
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_FIRE_RENDER repentogon/resources/scripts/enums_ex.lua:364 enums/ModCallbacks.md tear and weapons done id 1448
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_FIRE_UPDATE repentogon/resources/scripts/enums_ex.lua:321 enums/ModCallbacks.md tear and weapons done id 1404
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_GRAVITY_UPDATE repentogon/resources/scripts/enums_ex.lua:323 enums/ModCallbacks.md level and room done id 1406
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_LOCK_RENDER repentogon/resources/scripts/enums_ex.lua:366 enums/ModCallbacks.md render and sprites done id 1450
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_LOCK_UPDATE repentogon/resources/scripts/enums_ex.lua:325 enums/ModCallbacks.md level and room done id 1408
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_PIT_RENDER repentogon/resources/scripts/enums_ex.lua:370 enums/ModCallbacks.md render and sprites done id 1454
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_PIT_UPDATE repentogon/resources/scripts/enums_ex.lua:327 enums/ModCallbacks.md level and room done id 1410
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_POOP_RENDER repentogon/resources/scripts/enums_ex.lua:372 enums/ModCallbacks.md render and sprites done id 1456
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_POOP_UPDATE repentogon/resources/scripts/enums_ex.lua:329 enums/ModCallbacks.md level and room done id 1412
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_PRESSUREPLATE_RENDER repentogon/resources/scripts/enums_ex.lua:376 enums/ModCallbacks.md render and sprites done id 1460
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_PRESSUREPLATE_UPDATE repentogon/resources/scripts/enums_ex.lua:331 enums/ModCallbacks.md level and room done id 1414
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_ROCK_RENDER repentogon/resources/scripts/enums_ex.lua:374 enums/ModCallbacks.md render and sprites done id 1458
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_ROCK_UPDATE repentogon/resources/scripts/enums_ex.lua:333 enums/ModCallbacks.md level and room done id 1416
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_SPAWN repentogon/resources/scripts/enums_ex.lua:102 enums/ModCallbacks.md level and room done id 1100
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_SPIKES_RENDER repentogon/resources/scripts/enums_ex.lua:349 enums/ModCallbacks.md render and sprites done id 1432
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_SPIKES_UPDATE repentogon/resources/scripts/enums_ex.lua:335 enums/ModCallbacks.md level and room done id 1418
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_STAIRCASE_RENDER repentogon/resources/scripts/enums_ex.lua:357 enums/ModCallbacks.md render and sprites done id 1440
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_STAIRCASE_UPDATE repentogon/resources/scripts/enums_ex.lua:337 enums/ModCallbacks.md level and room done id 1420
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_STATUE_UPDATE repentogon/resources/scripts/enums_ex.lua:339 enums/ModCallbacks.md hud and menus done id 1422
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TELEPORTER_RENDER repentogon/resources/scripts/enums_ex.lua:368 enums/ModCallbacks.md render and sprites done id 1452
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TELEPORTER_UPDATE repentogon/resources/scripts/enums_ex.lua:341 enums/ModCallbacks.md level and room done id 1424
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TNT_RENDER repentogon/resources/scripts/enums_ex.lua:353 enums/ModCallbacks.md render and sprites done id 1436
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TNT_UPDATE repentogon/resources/scripts/enums_ex.lua:347 enums/ModCallbacks.md level and room done id 1430
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TRAPDOOR_RENDER repentogon/resources/scripts/enums_ex.lua:355 enums/ModCallbacks.md render and sprites done id 1438
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_TRAPDOOR_UPDATE repentogon/resources/scripts/enums_ex.lua:343 enums/ModCallbacks.md level and room done id 1426
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_WALL_RENDER repentogon/resources/scripts/enums_ex.lua:378 enums/ModCallbacks.md render and sprites done id 1462
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_WEB_RENDER repentogon/resources/scripts/enums_ex.lua:351 enums/ModCallbacks.md render and sprites done id 1434
|
||||
callback ModCallbacks MC_PRE_GRID_ENTITY_WEB_UPDATE repentogon/resources/scripts/enums_ex.lua:345 enums/ModCallbacks.md level and room done id 1428
|
||||
callback ModCallbacks MC_PRE_GRID_HURT repentogon/resources/scripts/enums_ex.lua:18 enums/ModCallbacks.md level and room done id 1017
|
||||
callback ModCallbacks MC_PRE_HISTORYHUD_RENDER repentogon/resources/scripts/enums_ex.lua:29 enums/ModCallbacks.md hud and menus done id 1027
|
||||
callback ModCallbacks MC_PRE_ITEM_OVERLAY_SHOW repentogon/resources/scripts/enums_ex.lua:78 enums/ModCallbacks.md hud and menus done id 1076
|
||||
callback ModCallbacks MC_PRE_ITEM_TEXT_DISPLAY repentogon/resources/scripts/enums_ex.lua:398 enums/ModCallbacks.md items and pools done id 1484
|
||||
callback ModCallbacks MC_PRE_KNIFE_COLLISION enums/ModCallbacks.md tear and weapons review id 53, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_KNIFE_RENDER repentogon/resources/scripts/enums_ex.lua:88 enums/ModCallbacks.md tear and weapons todo id 1086
|
||||
callback ModCallbacks MC_PRE_KNIFE_UPDATE repentogon/resources/scripts/enums_ex.lua:157 enums/ModCallbacks.md tear and weapons todo id 1165
|
||||
callback ModCallbacks MC_PRE_LASER_COLLISION repentogon/resources/scripts/enums_ex.lua:222 enums/ModCallbacks.md tear and weapons todo id 1248
|
||||
callback ModCallbacks MC_PRE_LASER_UPDATE repentogon/resources/scripts/enums_ex.lua:159 enums/ModCallbacks.md tear and weapons todo id 1167
|
||||
callback ModCallbacks MC_PRE_LEVEL_INIT repentogon/resources/scripts/enums_ex.lua:62 enums/ModCallbacks.md level and room todo id 1060
|
||||
callback ModCallbacks MC_PRE_LEVEL_PLACE_ROOM repentogon/resources/scripts/enums_ex.lua:139 enums/ModCallbacks.md level and room todo id 1137
|
||||
callback ModCallbacks MC_PRE_LEVEL_SELECT repentogon/resources/scripts/enums_ex.lua:106 enums/ModCallbacks.md level and room todo id 1104
|
||||
callback ModCallbacks MC_PRE_MEGA_SATAN_ENDING repentogon/resources/scripts/enums_ex.lua:183 enums/ModCallbacks.md misc todo id 1201
|
||||
callback ModCallbacks MC_PRE_MINIMAP_RENDER repentogon/resources/scripts/enums_ex.lua:393 hud and menus todo id 1479
|
||||
callback ModCallbacks MC_PRE_MINIMAP_UPDATE repentogon/resources/scripts/enums_ex.lua:391 hud and menus todo id 1477
|
||||
callback ModCallbacks MC_PRE_MOD_UNLOAD enums/ModCallbacks.md misc todo id 73, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_MUSIC_LAYER_TOGGLE repentogon/resources/scripts/enums_ex.lua:37 enums/ModCallbacks.md audio todo id 1035
|
||||
callback ModCallbacks MC_PRE_MUSIC_PLAY repentogon/resources/scripts/enums_ex.lua:36 enums/ModCallbacks.md audio todo id 1034
|
||||
callback ModCallbacks MC_PRE_MUSIC_PLAY_JINGLE repentogon/resources/scripts/enums_ex.lua:96 enums/ModCallbacks.md audio todo id 1094
|
||||
callback ModCallbacks MC_PRE_M_MORPH_ACTIVE repentogon/resources/scripts/enums_ex.lua:178 enums/ModCallbacks.md misc todo id 1190
|
||||
callback ModCallbacks MC_PRE_NEW_ROOM repentogon/resources/scripts/enums_ex.lua:182 enums/ModCallbacks.md level and room todo id 1200
|
||||
callback ModCallbacks MC_PRE_KNIFE_RENDER repentogon/resources/scripts/enums_ex.lua:88 enums/ModCallbacks.md tear and weapons done id 1086
|
||||
callback ModCallbacks MC_PRE_KNIFE_UPDATE repentogon/resources/scripts/enums_ex.lua:157 enums/ModCallbacks.md tear and weapons done id 1165
|
||||
callback ModCallbacks MC_PRE_LASER_COLLISION repentogon/resources/scripts/enums_ex.lua:222 enums/ModCallbacks.md tear and weapons done id 1248
|
||||
callback ModCallbacks MC_PRE_LASER_UPDATE repentogon/resources/scripts/enums_ex.lua:159 enums/ModCallbacks.md tear and weapons done id 1167
|
||||
callback ModCallbacks MC_PRE_LEVEL_INIT repentogon/resources/scripts/enums_ex.lua:62 enums/ModCallbacks.md level and room done id 1060
|
||||
callback ModCallbacks MC_PRE_LEVEL_PLACE_ROOM repentogon/resources/scripts/enums_ex.lua:139 enums/ModCallbacks.md level and room done id 1137
|
||||
callback ModCallbacks MC_PRE_LEVEL_SELECT repentogon/resources/scripts/enums_ex.lua:106 enums/ModCallbacks.md level and room done id 1104
|
||||
callback ModCallbacks MC_PRE_MEGA_SATAN_ENDING repentogon/resources/scripts/enums_ex.lua:183 enums/ModCallbacks.md misc done id 1201
|
||||
callback ModCallbacks MC_PRE_MINIMAP_RENDER repentogon/resources/scripts/enums_ex.lua:393 hud and menus done id 1479
|
||||
callback ModCallbacks MC_PRE_MINIMAP_UPDATE repentogon/resources/scripts/enums_ex.lua:391 hud and menus done id 1477
|
||||
callback ModCallbacks MC_PRE_MOD_UNLOAD enums/ModCallbacks.md misc review id 73, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_MUSIC_LAYER_TOGGLE repentogon/resources/scripts/enums_ex.lua:37 enums/ModCallbacks.md audio done id 1035
|
||||
callback ModCallbacks MC_PRE_MUSIC_PLAY repentogon/resources/scripts/enums_ex.lua:36 enums/ModCallbacks.md audio done id 1034
|
||||
callback ModCallbacks MC_PRE_MUSIC_PLAY_JINGLE repentogon/resources/scripts/enums_ex.lua:96 enums/ModCallbacks.md audio done id 1094
|
||||
callback ModCallbacks MC_PRE_M_MORPH_ACTIVE repentogon/resources/scripts/enums_ex.lua:178 enums/ModCallbacks.md misc done id 1190
|
||||
callback ModCallbacks MC_PRE_NEW_ROOM repentogon/resources/scripts/enums_ex.lua:182 enums/ModCallbacks.md level and room done id 1200
|
||||
callback ModCallbacks MC_PRE_NPC_COLLISION enums/ModCallbacks.md npc review id 30, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_NPC_GET_LOOT_LIST repentogon/resources/scripts/enums_ex.lua:300 npc todo id 1337
|
||||
callback ModCallbacks MC_PRE_NPC_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:175 enums/ModCallbacks.md npc todo id 1183
|
||||
callback ModCallbacks MC_PRE_NPC_MORPH repentogon/resources/scripts/enums_ex.lua:187 enums/ModCallbacks.md npc todo id 1212
|
||||
callback ModCallbacks MC_PRE_NPC_RENDER repentogon/resources/scripts/enums_ex.lua:83 enums/ModCallbacks.md npc todo id 1081
|
||||
callback ModCallbacks MC_PRE_NPC_SPLIT repentogon/resources/scripts/enums_ex.lua:179 enums/ModCallbacks.md npc todo id 1191
|
||||
callback ModCallbacks MC_PRE_NPC_UPDATE_GHOST_PICKUPS repentogon/resources/scripts/enums_ex.lua:301 npc todo id 1338
|
||||
callback ModCallbacks MC_PRE_NPC_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:175 enums/ModCallbacks.md npc done id 1183
|
||||
callback ModCallbacks MC_PRE_NPC_MORPH repentogon/resources/scripts/enums_ex.lua:187 enums/ModCallbacks.md npc done id 1212
|
||||
callback ModCallbacks MC_PRE_NPC_RENDER repentogon/resources/scripts/enums_ex.lua:83 enums/ModCallbacks.md npc done id 1081
|
||||
callback ModCallbacks MC_PRE_NPC_SPLIT repentogon/resources/scripts/enums_ex.lua:179 enums/ModCallbacks.md npc done id 1191
|
||||
callback ModCallbacks MC_PRE_NPC_UPDATE_GHOST_PICKUPS repentogon/resources/scripts/enums_ex.lua:301 npc done id 1338
|
||||
callback ModCallbacks MC_PRE_OPENGL_RENDER repentogon/resources/scripts/enums_ex.lua:138 render and sprites todo id 1136
|
||||
callback ModCallbacks MC_PRE_OPEN_CHEST repentogon/resources/scripts/enums_ex.lua:405 enums/ModCallbacks.md misc todo id 1491
|
||||
callback ModCallbacks MC_PRE_PAUSE_SCREEN_RENDER repentogon/resources/scripts/enums_ex.lua:193 enums/ModCallbacks.md hud and menus todo id 1218
|
||||
callback ModCallbacks MC_PRE_OPEN_CHEST repentogon/resources/scripts/enums_ex.lua:405 enums/ModCallbacks.md misc done id 1491
|
||||
callback ModCallbacks MC_PRE_PAUSE_SCREEN_RENDER repentogon/resources/scripts/enums_ex.lua:193 enums/ModCallbacks.md hud and menus done id 1218
|
||||
callback ModCallbacks MC_PRE_PICKUP_COLLISION enums/ModCallbacks.md pickup review id 38, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_PICKUP_COMPOSTED repentogon/resources/scripts/enums_ex.lua:241 enums/ModCallbacks.md pickup todo id 1267
|
||||
callback ModCallbacks MC_PRE_PICKUP_COMPOSTED repentogon/resources/scripts/enums_ex.lua:241 enums/ModCallbacks.md pickup done id 1267
|
||||
callback ModCallbacks MC_PRE_PICKUP_GET_LOOT_LIST repentogon/resources/scripts/enums_ex.lua:297 enums/ModCallbacks.md pickup todo id 1334
|
||||
callback ModCallbacks MC_PRE_PICKUP_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:171 enums/ModCallbacks.md pickup todo id 1179
|
||||
callback ModCallbacks MC_PRE_PICKUP_MORPH repentogon/resources/scripts/enums_ex.lua:188 enums/ModCallbacks.md pickup todo id 1213
|
||||
callback ModCallbacks MC_PRE_PICKUP_RENDER repentogon/resources/scripts/enums_ex.lua:85 enums/ModCallbacks.md pickup todo id 1083
|
||||
callback ModCallbacks MC_PRE_PICKUP_UPDATE repentogon/resources/scripts/enums_ex.lua:156 enums/ModCallbacks.md pickup todo id 1164
|
||||
callback ModCallbacks MC_PRE_PICKUP_UPDATE_GHOST_PICKUPS repentogon/resources/scripts/enums_ex.lua:298 enums/ModCallbacks.md pickup todo id 1335
|
||||
callback ModCallbacks MC_PRE_PICKUP_VOIDED repentogon/resources/scripts/enums_ex.lua:239 enums/ModCallbacks.md pickup todo id 1265
|
||||
callback ModCallbacks MC_PRE_PICKUP_VOIDED_ABYSS repentogon/resources/scripts/enums_ex.lua:240 enums/ModCallbacks.md pickup todo id 1266
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_ITEMS repentogon/resources/scripts/enums_ex.lua:115 enums/ModCallbacks.md items and pools todo id 1113
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_PLANETARIUM_PENALTY repentogon/resources/scripts/enums_ex.lua:113 enums/ModCallbacks.md items and pools todo id 1111
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_STAGE_PENALTY repentogon/resources/scripts/enums_ex.lua:112 enums/ModCallbacks.md level and room todo id 1110
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_TELESCOPE_LENS repentogon/resources/scripts/enums_ex.lua:116 enums/ModCallbacks.md items and pools todo id 1114
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_TREASURE_PENALTY repentogon/resources/scripts/enums_ex.lua:114 enums/ModCallbacks.md items and pools todo id 1112
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_ACTIVE_ITEM repentogon/resources/scripts/enums_ex.lua:121 enums/ModCallbacks.md player todo id 1119
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_CRAFTING_TABLE repentogon/resources/scripts/enums_ex.lua:271 enums/ModCallbacks.md player todo id 1297
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_HEARTS repentogon/resources/scripts/enums_ex.lua:120 enums/ModCallbacks.md player todo id 1118
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_INVENTORY repentogon/resources/scripts/enums_ex.lua:267 enums/ModCallbacks.md player todo id 1293
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_POOP_SPELL_QUEUE repentogon/resources/scripts/enums_ex.lua:269 enums/ModCallbacks.md player todo id 1295
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_TRINKET_RENDER repentogon/resources/scripts/enums_ex.lua:238 enums/ModCallbacks.md player todo id 1264
|
||||
callback ModCallbacks MC_PRE_PLAYER_ADD_CARD repentogon/resources/scripts/enums_ex.lua:304 enums/ModCallbacks.md player todo id 1350
|
||||
callback ModCallbacks MC_PRE_PLAYER_ADD_COSTUME repentogon/resources/scripts/enums_ex.lua:255 enums/ModCallbacks.md player todo id 1281
|
||||
callback ModCallbacks MC_PRE_PLAYER_ADD_HEARTS repentogon/resources/scripts/enums_ex.lua:10 enums/ModCallbacks.md player todo id 1009
|
||||
callback ModCallbacks MC_PRE_PLAYER_ADD_PILL repentogon/resources/scripts/enums_ex.lua:306 enums/ModCallbacks.md player todo id 1352
|
||||
callback ModCallbacks MC_PRE_PLAYER_APPLY_INNATE_COLLECTIBLE_NUM repentogon/resources/scripts/enums_ex.lua:94 player todo id 1092
|
||||
callback ModCallbacks MC_PRE_PLAYER_COLLECT_CARD repentogon/resources/scripts/enums_ex.lua:310 enums/ModCallbacks.md player todo id 1356
|
||||
callback ModCallbacks MC_PRE_PLAYER_COLLECT_PILL repentogon/resources/scripts/enums_ex.lua:312 enums/ModCallbacks.md player todo id 1358
|
||||
callback ModCallbacks MC_PRE_PICKUP_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:171 enums/ModCallbacks.md pickup done id 1179
|
||||
callback ModCallbacks MC_PRE_PICKUP_MORPH repentogon/resources/scripts/enums_ex.lua:188 enums/ModCallbacks.md pickup done id 1213
|
||||
callback ModCallbacks MC_PRE_PICKUP_RENDER repentogon/resources/scripts/enums_ex.lua:85 enums/ModCallbacks.md pickup done id 1083
|
||||
callback ModCallbacks MC_PRE_PICKUP_UPDATE repentogon/resources/scripts/enums_ex.lua:156 enums/ModCallbacks.md pickup done id 1164
|
||||
callback ModCallbacks MC_PRE_PICKUP_UPDATE_GHOST_PICKUPS repentogon/resources/scripts/enums_ex.lua:298 enums/ModCallbacks.md pickup done id 1335
|
||||
callback ModCallbacks MC_PRE_PICKUP_VOIDED repentogon/resources/scripts/enums_ex.lua:239 enums/ModCallbacks.md pickup done id 1265
|
||||
callback ModCallbacks MC_PRE_PICKUP_VOIDED_ABYSS repentogon/resources/scripts/enums_ex.lua:240 enums/ModCallbacks.md pickup done id 1266
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_ITEMS repentogon/resources/scripts/enums_ex.lua:115 enums/ModCallbacks.md items and pools done id 1113
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_PLANETARIUM_PENALTY repentogon/resources/scripts/enums_ex.lua:113 enums/ModCallbacks.md items and pools done id 1111
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_STAGE_PENALTY repentogon/resources/scripts/enums_ex.lua:112 enums/ModCallbacks.md level and room done id 1110
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_TELESCOPE_LENS repentogon/resources/scripts/enums_ex.lua:116 enums/ModCallbacks.md items and pools done id 1114
|
||||
callback ModCallbacks MC_PRE_PLANETARIUM_APPLY_TREASURE_PENALTY repentogon/resources/scripts/enums_ex.lua:114 enums/ModCallbacks.md items and pools done id 1112
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_ACTIVE_ITEM repentogon/resources/scripts/enums_ex.lua:121 enums/ModCallbacks.md player done id 1119
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_CRAFTING_TABLE repentogon/resources/scripts/enums_ex.lua:271 enums/ModCallbacks.md player done id 1297
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_HEARTS repentogon/resources/scripts/enums_ex.lua:120 enums/ModCallbacks.md player done id 1118
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_INVENTORY repentogon/resources/scripts/enums_ex.lua:267 enums/ModCallbacks.md player done id 1293
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_RENDER_POOP_SPELL_QUEUE repentogon/resources/scripts/enums_ex.lua:269 enums/ModCallbacks.md player done id 1295
|
||||
callback ModCallbacks MC_PRE_PLAYERHUD_TRINKET_RENDER repentogon/resources/scripts/enums_ex.lua:238 enums/ModCallbacks.md player done id 1264
|
||||
callback ModCallbacks MC_PRE_PLAYER_ADD_CARD repentogon/resources/scripts/enums_ex.lua:304 enums/ModCallbacks.md player done id 1350
|
||||
callback ModCallbacks MC_PRE_PLAYER_ADD_COSTUME repentogon/resources/scripts/enums_ex.lua:255 enums/ModCallbacks.md player done id 1281
|
||||
callback ModCallbacks MC_PRE_PLAYER_ADD_HEARTS repentogon/resources/scripts/enums_ex.lua:10 enums/ModCallbacks.md player done id 1009
|
||||
callback ModCallbacks MC_PRE_PLAYER_ADD_PILL repentogon/resources/scripts/enums_ex.lua:306 enums/ModCallbacks.md player done id 1352
|
||||
callback ModCallbacks MC_PRE_PLAYER_APPLY_INNATE_COLLECTIBLE_NUM repentogon/resources/scripts/enums_ex.lua:94 player done id 1092
|
||||
callback ModCallbacks MC_PRE_PLAYER_COLLECT_CARD repentogon/resources/scripts/enums_ex.lua:310 enums/ModCallbacks.md player done id 1356
|
||||
callback ModCallbacks MC_PRE_PLAYER_COLLECT_PILL repentogon/resources/scripts/enums_ex.lua:312 enums/ModCallbacks.md player done id 1358
|
||||
callback ModCallbacks MC_PRE_PLAYER_COLLISION enums/ModCallbacks.md player review id 33, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_PLAYER_GIVE_BIRTH_CAMBION repentogon/resources/scripts/enums_ex.lua:388 enums/ModCallbacks.md player todo id 1474
|
||||
callback ModCallbacks MC_PRE_PLAYER_GIVE_BIRTH_IMMACULATE repentogon/resources/scripts/enums_ex.lua:389 enums/ModCallbacks.md player todo id 1475
|
||||
callback ModCallbacks MC_PRE_PLAYER_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:163 enums/ModCallbacks.md player todo id 1171
|
||||
callback ModCallbacks MC_PRE_PLAYER_POCKET_ITEMS_SWAP repentogon/resources/scripts/enums_ex.lua:261 enums/ModCallbacks.md player todo id 1287
|
||||
callback ModCallbacks MC_PRE_PLAYER_REMOVE_COSTUME repentogon/resources/scripts/enums_ex.lua:256 enums/ModCallbacks.md player todo id 1282
|
||||
callback ModCallbacks MC_PRE_PLAYER_RENDER repentogon/resources/scripts/enums_ex.lua:84 enums/ModCallbacks.md player todo id 1082
|
||||
callback ModCallbacks MC_PRE_PLAYER_REVIVE repentogon/resources/scripts/enums_ex.lua:395 enums/ModCallbacks.md player todo id 1481
|
||||
callback ModCallbacks MC_PRE_PLAYER_TAKE_DMG repentogon/resources/scripts/enums_ex.lua:9 enums/ModCallbacks.md player todo id 1008
|
||||
callback ModCallbacks MC_PRE_PLAYER_TRIGGER_ROOM_CLEAR repentogon/resources/scripts/enums_ex.lua:71 enums/ModCallbacks.md player todo id 1069
|
||||
callback ModCallbacks MC_PRE_PLAYER_UPDATE repentogon/resources/scripts/enums_ex.lua:152 enums/ModCallbacks.md player todo id 1160
|
||||
callback ModCallbacks MC_PRE_PLAYER_USE_BOMB repentogon/resources/scripts/enums_ex.lua:195 enums/ModCallbacks.md player todo id 1220
|
||||
callback ModCallbacks MC_PRE_PLAYER_GIVE_BIRTH_CAMBION repentogon/resources/scripts/enums_ex.lua:388 enums/ModCallbacks.md player done id 1474
|
||||
callback ModCallbacks MC_PRE_PLAYER_GIVE_BIRTH_IMMACULATE repentogon/resources/scripts/enums_ex.lua:389 enums/ModCallbacks.md player done id 1475
|
||||
callback ModCallbacks MC_PRE_PLAYER_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:163 enums/ModCallbacks.md player done id 1171
|
||||
callback ModCallbacks MC_PRE_PLAYER_POCKET_ITEMS_SWAP repentogon/resources/scripts/enums_ex.lua:261 enums/ModCallbacks.md player done id 1287
|
||||
callback ModCallbacks MC_PRE_PLAYER_REMOVE_COSTUME repentogon/resources/scripts/enums_ex.lua:256 enums/ModCallbacks.md player done id 1282
|
||||
callback ModCallbacks MC_PRE_PLAYER_RENDER repentogon/resources/scripts/enums_ex.lua:84 enums/ModCallbacks.md player done id 1082
|
||||
callback ModCallbacks MC_PRE_PLAYER_REVIVE repentogon/resources/scripts/enums_ex.lua:395 enums/ModCallbacks.md player done id 1481
|
||||
callback ModCallbacks MC_PRE_PLAYER_TAKE_DMG repentogon/resources/scripts/enums_ex.lua:9 enums/ModCallbacks.md player done id 1008
|
||||
callback ModCallbacks MC_PRE_PLAYER_TRIGGER_ROOM_CLEAR repentogon/resources/scripts/enums_ex.lua:71 enums/ModCallbacks.md player done id 1069
|
||||
callback ModCallbacks MC_PRE_PLAYER_UPDATE repentogon/resources/scripts/enums_ex.lua:152 enums/ModCallbacks.md player done id 1160
|
||||
callback ModCallbacks MC_PRE_PLAYER_USE_BOMB repentogon/resources/scripts/enums_ex.lua:195 enums/ModCallbacks.md player done id 1220
|
||||
callback ModCallbacks MC_PRE_PROJECTILE_COLLISION enums/ModCallbacks.md tear and weapons review id 46, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_PROJECTILE_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:173 enums/ModCallbacks.md tear and weapons todo id 1181
|
||||
callback ModCallbacks MC_PRE_PROJECTILE_RENDER repentogon/resources/scripts/enums_ex.lua:87 enums/ModCallbacks.md tear and weapons todo id 1085
|
||||
callback ModCallbacks MC_PRE_PROJECTILE_UPDATE repentogon/resources/scripts/enums_ex.lua:158 enums/ModCallbacks.md tear and weapons todo id 1166
|
||||
callback ModCallbacks MC_PRE_RENDER repentogon/resources/scripts/enums_ex.lua:137 enums/ModCallbacks.md render and sprites todo id 1135
|
||||
callback ModCallbacks MC_PRE_RENDER_CHARACTER_SELECT_PAGE repentogon/resources/scripts/enums_ex.lua:292 enums/ModCallbacks.md render and sprites todo id 1329
|
||||
callback ModCallbacks MC_PRE_RENDER_CHARACTER_SELECT_PORTRAIT repentogon/resources/scripts/enums_ex.lua:294 enums/ModCallbacks.md render and sprites todo id 1331
|
||||
callback ModCallbacks MC_PRE_RENDER_CUSTOM_CHARACTER_MENU repentogon/resources/scripts/enums_ex.lua:296 hud and menus todo id 1333
|
||||
callback ModCallbacks MC_PRE_RENDER_ENTITY_LIGHTING repentogon/resources/scripts/enums_ex.lua:150 enums/ModCallbacks.md render and sprites todo id 1152
|
||||
callback ModCallbacks MC_PRE_RENDER_GRID_LIGHTING repentogon/resources/scripts/enums_ex.lua:149 enums/ModCallbacks.md render and sprites todo id 1151
|
||||
callback ModCallbacks MC_PRE_RENDER_PLAYER_BODY repentogon/resources/scripts/enums_ex.lua:41 enums/ModCallbacks.md player todo id 1039
|
||||
callback ModCallbacks MC_PRE_RENDER_PLAYER_HEAD repentogon/resources/scripts/enums_ex.lua:40 enums/ModCallbacks.md player todo id 1038
|
||||
callback ModCallbacks MC_PRE_REPLACE_SPRITESHEET repentogon/resources/scripts/enums_ex.lua:118 enums/ModCallbacks.md render and sprites todo id 1116
|
||||
callback ModCallbacks MC_PRE_RESTOCK_SHOP repentogon/resources/scripts/enums_ex.lua:72 enums/ModCallbacks.md items and pools todo id 1070
|
||||
callback ModCallbacks MC_PRE_ROOM_COLLISION_PASS repentogon/resources/scripts/enums_ex.lua:202 enums/ModCallbacks.md level and room todo id 1227
|
||||
callback ModCallbacks MC_PRE_ROOM_EXIT repentogon/resources/scripts/enums_ex.lua:45 enums/ModCallbacks.md level and room todo id 1043
|
||||
callback ModCallbacks MC_PRE_ROOM_GRID_ENTITY_SPAWN repentogon/resources/scripts/enums_ex.lua:180 enums/ModCallbacks.md level and room todo id 1192
|
||||
callback ModCallbacks MC_PRE_ROOM_RESTORE_STATE repentogon/resources/scripts/enums_ex.lua:279 enums/ModCallbacks.md hud and menus todo id 1305
|
||||
callback ModCallbacks MC_PRE_ROOM_TRIGGER_CLEAR repentogon/resources/scripts/enums_ex.lua:70 enums/ModCallbacks.md level and room todo id 1068
|
||||
callback ModCallbacks MC_PRE_SELECT_AMBUSH_WAVE repentogon/resources/scripts/enums_ex.lua:60 level and room todo id 1058
|
||||
callback ModCallbacks MC_PRE_SELECT_GREED_WAVE repentogon/resources/scripts/enums_ex.lua:61 level and room todo id 1059
|
||||
callback ModCallbacks MC_PRE_SFX_PLAY repentogon/resources/scripts/enums_ex.lua:32 enums/ModCallbacks.md audio todo id 1030
|
||||
callback ModCallbacks MC_PRE_SHUFFLE_COSTUMES repentogon/resources/scripts/enums_ex.lua:408 enums/ModCallbacks.md player todo id 1494
|
||||
callback ModCallbacks MC_PRE_SLOT_COLLISION repentogon/resources/scripts/enums_ex.lua:214 enums/ModCallbacks.md pickup todo id 1240
|
||||
callback ModCallbacks MC_PRE_SLOT_CREATE_EXPLOSION_DROPS repentogon/resources/scripts/enums_ex.lua:125 enums/ModCallbacks.md pickup todo id 1123
|
||||
callback ModCallbacks MC_PRE_SLOT_RENDER repentogon/resources/scripts/enums_ex.lua:91 enums/ModCallbacks.md pickup todo id 1089
|
||||
callback ModCallbacks MC_PRE_SLOT_SET_PRIZE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:127 enums/ModCallbacks.md pickup todo id 1125
|
||||
callback ModCallbacks MC_PRE_SLOT_UPDATE repentogon/resources/scripts/enums_ex.lua:161 enums/ModCallbacks.md pickup todo id 1169
|
||||
callback ModCallbacks MC_PRE_STATUS_EFFECT_APPLY repentogon/resources/scripts/enums_ex.lua:381 enums/ModCallbacks.md hud and menus todo id 1465
|
||||
callback ModCallbacks MC_PRE_PROJECTILE_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:173 enums/ModCallbacks.md tear and weapons done id 1181
|
||||
callback ModCallbacks MC_PRE_PROJECTILE_RENDER repentogon/resources/scripts/enums_ex.lua:87 enums/ModCallbacks.md tear and weapons done id 1085
|
||||
callback ModCallbacks MC_PRE_PROJECTILE_UPDATE repentogon/resources/scripts/enums_ex.lua:158 enums/ModCallbacks.md tear and weapons done id 1166
|
||||
callback ModCallbacks MC_PRE_RENDER repentogon/resources/scripts/enums_ex.lua:137 enums/ModCallbacks.md render and sprites done id 1135
|
||||
callback ModCallbacks MC_PRE_RENDER_CHARACTER_SELECT_PAGE repentogon/resources/scripts/enums_ex.lua:292 enums/ModCallbacks.md render and sprites done id 1329
|
||||
callback ModCallbacks MC_PRE_RENDER_CHARACTER_SELECT_PORTRAIT repentogon/resources/scripts/enums_ex.lua:294 enums/ModCallbacks.md render and sprites done id 1331
|
||||
callback ModCallbacks MC_PRE_RENDER_CUSTOM_CHARACTER_MENU repentogon/resources/scripts/enums_ex.lua:296 hud and menus done id 1333
|
||||
callback ModCallbacks MC_PRE_RENDER_ENTITY_LIGHTING repentogon/resources/scripts/enums_ex.lua:150 enums/ModCallbacks.md render and sprites done id 1152
|
||||
callback ModCallbacks MC_PRE_RENDER_GRID_LIGHTING repentogon/resources/scripts/enums_ex.lua:149 enums/ModCallbacks.md render and sprites done id 1151
|
||||
callback ModCallbacks MC_PRE_RENDER_PLAYER_BODY repentogon/resources/scripts/enums_ex.lua:41 enums/ModCallbacks.md player done id 1039
|
||||
callback ModCallbacks MC_PRE_RENDER_PLAYER_HEAD repentogon/resources/scripts/enums_ex.lua:40 enums/ModCallbacks.md player done id 1038
|
||||
callback ModCallbacks MC_PRE_REPLACE_SPRITESHEET repentogon/resources/scripts/enums_ex.lua:118 enums/ModCallbacks.md render and sprites done id 1116
|
||||
callback ModCallbacks MC_PRE_RESTOCK_SHOP repentogon/resources/scripts/enums_ex.lua:72 enums/ModCallbacks.md items and pools done id 1070
|
||||
callback ModCallbacks MC_PRE_ROOM_COLLISION_PASS repentogon/resources/scripts/enums_ex.lua:202 enums/ModCallbacks.md level and room done id 1227
|
||||
callback ModCallbacks MC_PRE_ROOM_EXIT repentogon/resources/scripts/enums_ex.lua:45 enums/ModCallbacks.md level and room done id 1043
|
||||
callback ModCallbacks MC_PRE_ROOM_GRID_ENTITY_SPAWN repentogon/resources/scripts/enums_ex.lua:180 enums/ModCallbacks.md level and room done id 1192
|
||||
callback ModCallbacks MC_PRE_ROOM_RESTORE_STATE repentogon/resources/scripts/enums_ex.lua:279 enums/ModCallbacks.md hud and menus done id 1305
|
||||
callback ModCallbacks MC_PRE_ROOM_TRIGGER_CLEAR repentogon/resources/scripts/enums_ex.lua:70 enums/ModCallbacks.md level and room done id 1068
|
||||
callback ModCallbacks MC_PRE_SELECT_AMBUSH_WAVE repentogon/resources/scripts/enums_ex.lua:60 level and room done id 1058
|
||||
callback ModCallbacks MC_PRE_SELECT_GREED_WAVE repentogon/resources/scripts/enums_ex.lua:61 level and room done id 1059
|
||||
callback ModCallbacks MC_PRE_SFX_PLAY repentogon/resources/scripts/enums_ex.lua:32 enums/ModCallbacks.md audio done id 1030
|
||||
callback ModCallbacks MC_PRE_SHUFFLE_COSTUMES repentogon/resources/scripts/enums_ex.lua:408 enums/ModCallbacks.md player done id 1494
|
||||
callback ModCallbacks MC_PRE_SLOT_COLLISION repentogon/resources/scripts/enums_ex.lua:214 enums/ModCallbacks.md pickup done id 1240
|
||||
callback ModCallbacks MC_PRE_SLOT_CREATE_EXPLOSION_DROPS repentogon/resources/scripts/enums_ex.lua:125 enums/ModCallbacks.md pickup done id 1123
|
||||
callback ModCallbacks MC_PRE_SLOT_RENDER repentogon/resources/scripts/enums_ex.lua:91 enums/ModCallbacks.md pickup done id 1089
|
||||
callback ModCallbacks MC_PRE_SLOT_SET_PRIZE_COLLECTIBLE repentogon/resources/scripts/enums_ex.lua:127 enums/ModCallbacks.md pickup done id 1125
|
||||
callback ModCallbacks MC_PRE_SLOT_UPDATE repentogon/resources/scripts/enums_ex.lua:161 enums/ModCallbacks.md pickup done id 1169
|
||||
callback ModCallbacks MC_PRE_STATUS_EFFECT_APPLY repentogon/resources/scripts/enums_ex.lua:381 enums/ModCallbacks.md hud and menus done id 1465
|
||||
callback ModCallbacks MC_PRE_TEAR_COLLISION enums/ModCallbacks.md tear and weapons review id 42, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_TEAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:165 enums/ModCallbacks.md tear and weapons todo id 1173
|
||||
callback ModCallbacks MC_PRE_TEAR_RENDER repentogon/resources/scripts/enums_ex.lua:86 enums/ModCallbacks.md tear and weapons todo id 1084
|
||||
callback ModCallbacks MC_PRE_TEAR_UPDATE repentogon/resources/scripts/enums_ex.lua:153 enums/ModCallbacks.md tear and weapons todo id 1161
|
||||
callback ModCallbacks MC_PRE_TRIGGER_BED_SLEEP_EFFECT repentogon/resources/scripts/enums_ex.lua:259 enums/ModCallbacks.md misc todo id 1285
|
||||
callback ModCallbacks MC_PRE_TRIGGER_PLAYER_DEATH repentogon/resources/scripts/enums_ex.lua:52 enums/ModCallbacks.md player todo id 1050
|
||||
callback ModCallbacks MC_PRE_UPDATE repentogon/resources/scripts/enums_ex.lua:28 enums/ModCallbacks.md game todo id 1026
|
||||
callback ModCallbacks MC_PRE_USE_CARD repentogon/resources/scripts/enums_ex.lua:66 enums/ModCallbacks.md items and pools todo id 1064
|
||||
callback ModCallbacks MC_PRE_TEAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:165 enums/ModCallbacks.md tear and weapons done id 1173
|
||||
callback ModCallbacks MC_PRE_TEAR_RENDER repentogon/resources/scripts/enums_ex.lua:86 enums/ModCallbacks.md tear and weapons done id 1084
|
||||
callback ModCallbacks MC_PRE_TEAR_UPDATE repentogon/resources/scripts/enums_ex.lua:153 enums/ModCallbacks.md tear and weapons done id 1161
|
||||
callback ModCallbacks MC_PRE_TRIGGER_BED_SLEEP_EFFECT repentogon/resources/scripts/enums_ex.lua:259 enums/ModCallbacks.md misc done id 1285
|
||||
callback ModCallbacks MC_PRE_TRIGGER_PLAYER_DEATH repentogon/resources/scripts/enums_ex.lua:52 enums/ModCallbacks.md player done id 1050
|
||||
callback ModCallbacks MC_PRE_UPDATE repentogon/resources/scripts/enums_ex.lua:28 enums/ModCallbacks.md game done id 1026
|
||||
callback ModCallbacks MC_PRE_USE_CARD repentogon/resources/scripts/enums_ex.lua:66 enums/ModCallbacks.md items and pools done id 1064
|
||||
callback ModCallbacks MC_PRE_USE_ITEM enums/ModCallbacks.md items and pools review id 23, vanilla callback REPENTOGON changes
|
||||
callback ModCallbacks MC_PRE_USE_PILL repentogon/resources/scripts/enums_ex.lua:67 enums/ModCallbacks.md items and pools todo id 1065
|
||||
callback ModCallbacks MC_PROJECTILE_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:174 enums/ModCallbacks.md tear and weapons todo id 1182
|
||||
callback ModCallbacks MC_SHOULD_SAVE_ENTITY repentogon/resources/scripts/enums_ex.lua:287 persistent data and saves todo id 1313
|
||||
callback ModCallbacks MC_TEAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:166 enums/ModCallbacks.md tear and weapons todo id 1174
|
||||
callback ModCallbacks MC_TRIGGER_PLAYER_DEATH_POST_CHECK_REVIVES repentogon/resources/scripts/enums_ex.lua:53 enums/ModCallbacks.md player todo id 1051
|
||||
callback ModCallbacks MC_TRY_ADD_TO_BAG_OF_CRAFTING repentogon/resources/scripts/enums_ex.lua:16 enums/ModCallbacks.md items and pools todo id 1015
|
||||
callback ModCallbacks MC_PRE_USE_PILL repentogon/resources/scripts/enums_ex.lua:67 enums/ModCallbacks.md items and pools done id 1065
|
||||
callback ModCallbacks MC_PROJECTILE_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:174 enums/ModCallbacks.md tear and weapons done id 1182
|
||||
callback ModCallbacks MC_SHOULD_SAVE_ENTITY repentogon/resources/scripts/enums_ex.lua:287 persistent data and saves done id 1313
|
||||
callback ModCallbacks MC_TEAR_GRID_COLLISION repentogon/resources/scripts/enums_ex.lua:166 enums/ModCallbacks.md tear and weapons done id 1174
|
||||
callback ModCallbacks MC_TRIGGER_PLAYER_DEATH_POST_CHECK_REVIVES repentogon/resources/scripts/enums_ex.lua:53 enums/ModCallbacks.md player done id 1051
|
||||
callback ModCallbacks MC_TRY_ADD_TO_BAG_OF_CRAFTING repentogon/resources/scripts/enums_ex.lua:16 enums/ModCallbacks.md items and pools done id 1015
|
||||
callback ModCallbacks MC_USE_PILL enums/ModCallbacks.md items and pools review id 10, vanilla callback REPENTOGON changes
|
||||
xml_attribute achievements.xml gfxback repentogon/Patches/AchievementsStuff.cpp:184 xml/achievements.md persistent data and saves todo File "achievements.xml": path of the png sprite to use as a background paper for the achievement
|
||||
xml_attribute achievements.xml hidden repentogon/Patches/XMLData.cpp:1479 xml/achievements.md persistent data and saves todo File "achievements.xml": any value other than 'false', preferably 'true', will make it not show the achievement popup on
|
||||
@@ -2767,13 +2767,13 @@ option internal SkipArchiveChecks repentogon/REPENTOGONOptions.h:67 misc done o
|
||||
option internal UnifontRenderMode repentogon/REPENTOGONOptions.h:63 console and debug done options.ini
|
||||
behaviour_patch Patches ASMPatches.cpp repentogon/Patches/ASMPatches.cpp:1 console and debug todo Applies every byte patch at startup: log and console routing, mod and save folders moved to REPENTOGON's data folder
|
||||
behaviour_patch Patches ASMPatches/ASMBagOfCrafting.cpp repentogon/Patches/ASMPatches/ASMBagOfCrafting.cpp:1 items and pools todo Bag of Crafting pickup adds: MC_TRY_ADD_TO_BAG_OF_CRAFTING and modded pickups
|
||||
behaviour_patch Patches ASMPatches/ASMCallbacks.cpp repentogon/Patches/ASMPatches/ASMCallbacks.cpp:1 misc todo Inline patches firing the callbacks a hook cannot reach (pause, HUD messages, room placement, NPC removal and many more)
|
||||
behaviour_patch Patches ASMPatches/ASMCallbacks.cpp repentogon/Patches/ASMPatches/ASMCallbacks.cpp:1 misc started Inline patches firing the callbacks a hook cannot reach (pause, HUD messages, room placement, NPC removal and many more)
|
||||
behaviour_patch Patches ASMPatches/ASMCamera.cpp repentogon/Patches/ASMPatches/ASMCamera.cpp:1 level and room todo Keeps the room's single Camera alive for Lua and restores it on destruction
|
||||
behaviour_patch Patches ASMPatches/ASMDelirium.cpp repentogon/Patches/ASMPatches/ASMDelirium.cpp:1 npc todo Delirium transformation callbacks (pre, transform, post)
|
||||
behaviour_patch Patches ASMPatches/ASMEntityKnife.cpp repentogon/Patches/ASMPatches/ASMEntityKnife.cpp:1 tear and weapons todo Melee knife hitbox initialisation
|
||||
behaviour_patch Patches ASMPatches/ASMEntityNPC.cpp repentogon/Patches/ASMPatches/ASMEntityNPC.cpp:1 npc todo NPC speed and active enemy checks driven by entity config
|
||||
behaviour_patch Patches ASMPatches/ASMFixes.cpp repentogon/Patches/ASMPatches/ASMFixes.cpp:1 misc todo Vanilla bug fixes: modded crafting quality, smelted trinkets, pill identification and effects, game state load, render target overflow, familiar pathing
|
||||
behaviour_patch Patches ASMPatches/ASMGridEntityCollision.cpp repentogon/Patches/ASMPatches/ASMGridEntityCollision.cpp:1 level and room todo Grid collision callbacks, deduplicated per frame and grid index
|
||||
behaviour_patch Patches ASMPatches/ASMGridEntityCollision.cpp repentogon/Patches/ASMPatches/ASMGridEntityCollision.cpp:1 level and room started Grid collision callbacks, deduplicated per frame and grid index
|
||||
behaviour_patch Patches ASMPatches/ASMGridEntitySpawn.cpp repentogon/Patches/ASMPatches/ASMGridEntitySpawn.cpp:1 level and room todo Routes inlined grid spawns through MC_PRE/POST_GRID_ENTITY_SPAWN
|
||||
behaviour_patch Patches ASMPatches/ASMGridEntitySpawn_Definitions.cpp repentogon/Patches/ASMPatches/ASMGridEntitySpawn_Definitions.cpp:1 level and room todo Signature table of the inlined grid spawn sites
|
||||
behaviour_patch Patches ASMPatches/ASMHud.cpp repentogon/Patches/ASMPatches/ASMHud.cpp:1 hud and menus todo HistoryHUD render and recompute callbacks, smelted item images
|
||||
@@ -2802,7 +2802,7 @@ behaviour_patch Patches EntityManager.cpp repentogon/Patches/EntityManager.cpp:1
|
||||
behaviour_patch Patches EntityPlus.cpp repentogon/Patches/EntityPlus.cpp:1 entities todo Extra per entity data: water clip, flying override, init and remove
|
||||
behaviour_patch Patches EvaluateStats.cpp repentogon/Patches/EvaluateStats.cpp:1 items and pools todo XML item stats (tears, damage, range ...) applied at the vanilla steps of EvaluateItems
|
||||
behaviour_patch Patches ExtraDebugRender.cpp repentogon/Patches/ExtraDebugRender.cpp:1 console and debug todo Draws FindInRadius and capsule queries (debug option)
|
||||
behaviour_patch Patches ExtraLives.cpp repentogon/Patches/ExtraLives.cpp:1 player todo Custom extra lives and revives, MC_PRE_TRIGGER_PLAYER_DEATH
|
||||
behaviour_patch Patches ExtraLives.cpp repentogon/Patches/ExtraLives.cpp:1 player started Custom extra lives and revives, MC_PRE_TRIGGER_PLAYER_DEATH
|
||||
behaviour_patch Patches ExtraRenderSteps.cpp repentogon/Patches/ExtraRenderSteps.cpp:1 render and sprites todo Cursor initialised and rendered for the mouse control option
|
||||
behaviour_patch Patches FamiliarTags.cpp repentogon/Patches/FamiliarTags.cpp:1 familiar todo Familiar XML tags: damageable, blocks projectiles, charmable
|
||||
behaviour_patch Patches GetCoinValue.cpp repentogon/Patches/GetCoinValue.cpp:1 pickup todo Custom coin values, MC_PICKUP_GET_COIN_VALUE
|
||||
@@ -2824,7 +2824,7 @@ behaviour_patch Patches ModsMenuStuff.cpp repentogon/Patches/ModsMenuStuff.cpp:1
|
||||
behaviour_patch Patches NullItemsAndCostumes.cpp repentogon/Patches/NullItemsAndCostumes.cpp:1 player todo Custom null items and their costumes
|
||||
behaviour_patch Patches PlayerFeatures.cpp repentogon/Patches/PlayerFeatures.cpp:1 player todo Modded character trinket handling, Greed donations, per save state
|
||||
behaviour_patch Patches PlayerTags.cpp repentogon/Patches/PlayerTags.cpp:1 player todo players.xml tags: no shake, no Metronome, no expansion pack, nightmare portraits
|
||||
behaviour_patch Patches PocketItems.cpp repentogon/Patches/PocketItems.cpp:1 player todo Pocket item adds and removals with callbacks
|
||||
behaviour_patch Patches PocketItems.cpp repentogon/Patches/PocketItems.cpp:1 player started Pocket item adds and removals with callbacks
|
||||
behaviour_patch Patches Quickstart.cpp repentogon/Patches/Quickstart.cpp:1 hud and menus todo Quickstart into the last save slot
|
||||
behaviour_patch Patches RoomConfigExtras.h repentogon/Patches/RoomConfigExtras.h:1 level and room todo Stage id mapping for Greed and alternate stages
|
||||
behaviour_patch Patches SaveImport.cpp repentogon/Patches/SaveImport.cpp:1 persistent data and saves todo Imports vanilla saves into REPENTOGON's save folder
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2509 and column 141.
|
@@ -123,6 +123,7 @@ struct AchievementOverlay_Entry;
|
||||
struct ActionGlyph;
|
||||
struct ActiveGain;
|
||||
struct ActiveItemDesc;
|
||||
struct ActiveItemRender;
|
||||
struct ActiveUse;
|
||||
struct AfterImageFrame;
|
||||
struct AfterbirthPersistentGameData;
|
||||
@@ -162,6 +163,7 @@ struct BrimstoneShot;
|
||||
struct BufferedStream;
|
||||
struct ButterBeanFart;
|
||||
struct CLIENT_ID;
|
||||
struct CallbackRun;
|
||||
struct Camera;
|
||||
struct CameraBounds;
|
||||
struct Capsule;
|
||||
@@ -171,9 +173,12 @@ struct ChainLightning;
|
||||
struct ChallengeParam;
|
||||
struct ChallengeParams;
|
||||
struct ChampionLook;
|
||||
struct CharacterPage;
|
||||
struct Checksum;
|
||||
struct ClubSwing;
|
||||
struct CoPlayerState;
|
||||
struct CollectibleAdd;
|
||||
struct CollisionCallbacks;
|
||||
struct Color;
|
||||
struct ColorMod;
|
||||
struct ColorModState;
|
||||
@@ -203,6 +208,7 @@ struct CutsceneEntry;
|
||||
struct CutscenePart;
|
||||
struct DailyChallenge;
|
||||
struct DamageEvent;
|
||||
struct DamageHit;
|
||||
struct DamageInfo;
|
||||
struct Data;
|
||||
struct DateTime;
|
||||
@@ -312,6 +318,7 @@ struct GlowingHourglassState;
|
||||
struct GlyphDraw;
|
||||
struct GlyphQuad;
|
||||
struct GraphicsWindow;
|
||||
struct GridCollisionCallbacks;
|
||||
struct GridDestroy;
|
||||
struct GridEntity;
|
||||
struct GridEntityDesc;
|
||||
@@ -351,12 +358,16 @@ struct HWND__;
|
||||
struct HallucinationOverlay;
|
||||
struct Harness;
|
||||
struct HeartGain;
|
||||
struct HeartsAdd;
|
||||
struct History;
|
||||
struct HistoryHUD;
|
||||
struct HistoryHUDItem;
|
||||
struct HistoryHUDPlayer;
|
||||
struct HistoryItem;
|
||||
struct HomingLaser;
|
||||
struct HudActiveDraw;
|
||||
struct HudElementScope;
|
||||
struct HudHeartsDraw;
|
||||
struct IconResource;
|
||||
struct ImageBase;
|
||||
struct ImagePng;
|
||||
@@ -400,6 +411,7 @@ struct KAGE_ReferenceCount_EntitySaveState;
|
||||
struct KAGE_ReferenceCount_ImageBase;
|
||||
struct KColor;
|
||||
struct KerningPair;
|
||||
struct KeyConfigRow;
|
||||
struct KeyConfigs;
|
||||
struct KilledNpc;
|
||||
struct KnifeHit;
|
||||
@@ -500,6 +512,7 @@ struct NetplayTextPopup;
|
||||
struct NetworkManager;
|
||||
struct NightmareScene;
|
||||
struct NpcHelper;
|
||||
struct NpcMorph;
|
||||
struct NullFrame;
|
||||
struct OnlineChat;
|
||||
struct OnlineChatMessage;
|
||||
@@ -507,6 +520,8 @@ struct OnlineEmotes;
|
||||
struct OnlineStatsScreen;
|
||||
struct OnlineUserStats;
|
||||
struct OptionsConfig;
|
||||
struct Overlay;
|
||||
struct OverlaySuggestion;
|
||||
struct PMD;
|
||||
struct ParticleSpawn;
|
||||
struct PassiveShot;
|
||||
@@ -521,6 +536,8 @@ struct PersistentGameDataWriter;
|
||||
struct PersistentGameData_Bestiary;
|
||||
struct PickupChoice;
|
||||
struct PickupGhostData;
|
||||
struct PickupMorph;
|
||||
struct PickupMorphed;
|
||||
struct PillEffect;
|
||||
struct Platform;
|
||||
struct PlayerCostumeMap;
|
||||
@@ -574,6 +591,7 @@ struct ReferenceCountBase;
|
||||
struct RenderBatch;
|
||||
struct RenderConfig;
|
||||
struct RenderTarget;
|
||||
struct RepentogonOptions;
|
||||
struct RerollEntry;
|
||||
struct RevivePlayerMenu;
|
||||
struct RichText;
|
||||
@@ -653,6 +671,8 @@ struct StringTable;
|
||||
struct StringTableCategory;
|
||||
struct SubtitleCue;
|
||||
struct TargetSearch;
|
||||
struct TearFlagHit;
|
||||
struct TearHitQuery;
|
||||
struct TearParams;
|
||||
struct TearSplash;
|
||||
struct TechLaserShot;
|
||||
@@ -665,6 +685,7 @@ struct TexturePtr;
|
||||
struct Thread;
|
||||
struct TrailFrame;
|
||||
struct TrailPoint;
|
||||
struct TrinketAdd;
|
||||
struct TrinketPoolItem;
|
||||
struct TypeDescriptor;
|
||||
struct UmbilicalBabyData;
|
||||
|
||||
@@ -442,10 +442,12 @@ def class_emit(cls, stack=()):
|
||||
|
||||
srcDir = os.path.join(os.path.dirname(os.path.abspath(outDir)), 'src')
|
||||
NAMESPACE_BLOCK = re.compile(r'^namespace ([\w:]+)\s*\{(.*?)^\}$', re.M | re.S) # a src/ namespace closes with a lone } at column 0
|
||||
TEMPLATE_CLASS = re.compile(r'^\s*template\s*<[^\n]*>\s*\n\s*(?:struct|class) \w+', re.M) # src/'s own templates, no game class
|
||||
def curated_classes_load(): # src/ defines these itself: top-level classes, and A::B::Name for those in a namespace A::B block
|
||||
found = set()
|
||||
for root, _, names_ in os.walk(srcDir):
|
||||
for text in [open(os.path.join(root, n), errors='replace').read() for n in names_ if n.endswith('.h')]:
|
||||
for text in [TEMPLATE_CLASS.sub('', open(os.path.join(root, n), errors='replace').read())
|
||||
for n in names_ if n.endswith('.h')]:
|
||||
for namespace, body in NAMESPACE_BLOCK.findall(text):
|
||||
found |= {f'{namespace}::{m}' for m in re.findall(r'^\s*(?:struct|class) (\w+)\b[^;]*$', body, re.M)}
|
||||
found |= set(re.findall(r'^(?:struct|class) (\w+)\b[^;]*$', NAMESPACE_BLOCK.sub('', text), re.M))
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
#include <cstring>
|
||||
#include <filesystem>
|
||||
#include <unordered_map>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/render.h"
|
||||
#endif
|
||||
|
||||
// 00a15640 A value's place between inMin and inMax carried between outMin and outMax, logging an empty range.
|
||||
float lerp_range(float value, const LerpRange& range)
|
||||
@@ -1353,6 +1356,9 @@ void ANM2::LoadGraphics()
|
||||
// 0040bf30 Points a layer at another spritesheet for the next LoadGraphics, false when the layer or path stays.
|
||||
bool ANM2::ReplaceSpritesheet(int layerId, std::string_view path)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<bool> isReplaced = spritesheet_replace_hook(*this, layerId, path)) return *isReplaced;
|
||||
#endif
|
||||
if (layerId < 0 || layerId >= (int)layerStates.size() || layerStates[layerId].spriteSheetPath == path) return false;
|
||||
|
||||
layerStates[layerId].spriteSheetPath = path;
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
#include "level/stage_transition.h"
|
||||
#include "stb_image.h"
|
||||
#include <array>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr std::string_view VERSUS_ANM2 = "gfx/ui/boss/versusscreen.anm2";
|
||||
constexpr std::string_view VERSUS_DOGMA_ANM2 = "gfx/ui/boss/versusscreen_dogma.anm2";
|
||||
@@ -258,4 +261,7 @@ void RoomTransition::StartBossIntro(uint32_t bossId1, uint32_t bossId2)
|
||||
}
|
||||
versus.Play(isDoubleTrouble ? "DoubleTrouble" : "Scene", PLAY_FORCED);
|
||||
mode = TRANSITION_OUT;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostBossIntroShow", MC_POST_BOSS_INTRO_SHOW, bossId1, bossId2);
|
||||
#endif
|
||||
}
|
||||
@@ -15,6 +15,9 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/collision.h"
|
||||
#endif
|
||||
|
||||
// What crushes rocks on contact: The Nail, Leo (worn or rolled by Zodiac), Thunder Thighs, Stompy and Mega Mush.
|
||||
// A transformation counts once the player holds this many of its items.
|
||||
@@ -327,8 +330,12 @@ void Entity::PlayerCollideWithGrid(GridCollisionMode mode)
|
||||
|
||||
bool isWall = collision == COLLISION_WALL || (collision == COLLISION_SOLID && grid && grid->type == GRID_DOOR);
|
||||
bool isBlocked = collision != COLLISION_NONE && collision != COLLISION_WALL_EXCEPT_PLAYER;
|
||||
if ((entityGridCollisionClass == GRIDCOLL_WALLS && isWall) ||
|
||||
(entityGridCollisionClass == GRIDCOLL_GROUND && isBlocked))
|
||||
bool isMet = (entityGridCollisionClass == GRIDCOLL_WALLS && isWall) ||
|
||||
(entityGridCollisionClass == GRIDCOLL_GROUND && isBlocked);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
isMet = isMet && (isSimulated || !entity_grid_collision_is_ignored(*player, gridIndex));
|
||||
#endif
|
||||
if (isMet)
|
||||
{
|
||||
normal.x += point.x;
|
||||
normal.y += point.y;
|
||||
@@ -413,6 +420,9 @@ static void shot_grid_collide(Entity& shot, Room& room)
|
||||
|
||||
GridEntity* grid = room.GetGridEntity(gridIndex);
|
||||
if (!grid || grid->type == GRID_PIT) return;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (entity_grid_collision_is_ignored(shot, gridIndex)) return;
|
||||
#endif
|
||||
shot.isCollidesWithGrid = true;
|
||||
shot.gridCollisionVelocity = shot.velocity;
|
||||
}
|
||||
@@ -466,7 +476,11 @@ static Vector blocked_points_sum(Entity& entity, Room& room, int gridClass, bool
|
||||
int gridIndex = room.GetGridIndex(vector_make(entity.pos.x + point.x, entity.pos.y + point.y));
|
||||
uint32_t collision = room.GetGridCollision(gridIndex);
|
||||
GridEntity* grid = room.GetGridEntity(gridIndex);
|
||||
if (is_cell_blocked(gridClass, collision, grid))
|
||||
bool isBlocked = is_cell_blocked(gridClass, collision, grid);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
isBlocked = isBlocked && !entity_grid_collision_is_ignored(entity, gridIndex);
|
||||
#endif
|
||||
if (isBlocked)
|
||||
{
|
||||
sum.x += point.x;
|
||||
sum.y += point.y;
|
||||
|
||||
@@ -26,6 +26,10 @@
|
||||
#include <array>
|
||||
#include <bit>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/entities.h"
|
||||
#endif
|
||||
|
||||
constexpr float HALF_F = 0.5f;
|
||||
|
||||
@@ -349,7 +353,11 @@ bool Entity::TakeDamage(float damage, uint64_t damageFlags, const EntityRef& sou
|
||||
if (HasEntityFlags(FLAG_WEAKNESS)) damage += damage;
|
||||
if (maxHitPoints <= 0) return false;
|
||||
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!entity_damage_pre(*this, {source, damage, nullptr, countdown, damageFlags})) return false;
|
||||
#else
|
||||
if (!lua_engine_get().EntityTakeDamage(this, damage, damageFlags, source, countdown)) return false;
|
||||
#endif
|
||||
damageEvents.push_back({.source = source, .damage = damage, .damageFlags = damageFlags});
|
||||
pendingDamageFlags |= damageFlags;
|
||||
pendingDamage += damage;
|
||||
@@ -357,6 +365,9 @@ bool Entity::TakeDamage(float damage, uint64_t damageFlags, const EntityRef& sou
|
||||
// The online stats screen also tallies the damage, which netplay being offline leaves out.
|
||||
Entity* attacker = source.entity ? source.entity->GetPlayerAncestor() : nullptr;
|
||||
if (attacker && is_enemy_type(type)) static_cast<Entity_Player*>(attacker)->versus.damageDealt += (uint32_t)damage;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
entity_damage_post(*this, {source, damage, nullptr, countdown, damageFlags});
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -375,7 +386,11 @@ void Entity::Kill(const EntityRef& source)
|
||||
explosion_effects({.position = pos, .source = killer, .damage = BLACK_POWDER_DAMAGE});
|
||||
}
|
||||
if (!IsBoss() && type != ENTITY_FAMILIAR) BloodExplode();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
entity_kill_post(*this, source);
|
||||
#else
|
||||
lua_engine_get().PostEntityKill(this);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Part of 006b45c0: the burst's sound, by what its config says it is made of.
|
||||
@@ -1047,7 +1062,19 @@ static bool tear_flies_on(Entity_Tear& tear, Entity& collider)
|
||||
// familiars, friends, rockets, other tears) and once per entity unless it pierces, it deals its damage with its hit
|
||||
// flags, knocks flies along and applies its flags' effects, then dies there unless it flies on. An explosive tear
|
||||
// bursts on any hit. Whether the collision is ignored.
|
||||
// REPENTOGON's collision callbacks run around it.
|
||||
bool Entity_Tear::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollisionCallbacks callbacks = {"PreTearCollision", MC_PRE_TEAR_COLLISION, MC_POST_TEAR_COLLISION, (int)variant};
|
||||
return collision_callbacks_run(*this, collider, isLow, callbacks, &Entity_Tear::collision_react);
|
||||
#else
|
||||
return collision_react(collider, isLow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// HandleCollision's own code.
|
||||
bool Entity_Tear::collision_react(Entity* collider, bool isLow)
|
||||
{
|
||||
LuaResult lua = lua_engine_get().PreTearCollision(this, collider, isLow);
|
||||
if (lua != LUA_RESULT_NIL) return lua == LUA_RESULT_TRUE;
|
||||
@@ -1311,7 +1338,19 @@ static void breath_of_life_burst(Entity_Player& player, Entity& collider)
|
||||
// 0078e1f0 Touches another entity, after a mod's MC_PRE_PLAYER_COLLISION: mid-suplex it passes enemies and shots,
|
||||
// it hurts a vulnerable enemy by its items' contact damage, poisons with The Virus or Serpent's Kiss, and a thrown
|
||||
// Tainted Forgotten slows on enemies. Tainted Forgotten's soul picks the body up. Whether the collision is ignored, which a pony's dash makes it.
|
||||
// REPENTOGON's collision callbacks run around it.
|
||||
bool Entity_Player::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollisionCallbacks callbacks = {"PrePlayerCollision", MC_PRE_PLAYER_COLLISION, MC_POST_PLAYER_COLLISION, variant};
|
||||
return collision_callbacks_run(*this, collider, isLow, callbacks, &Entity_Player::collision_react);
|
||||
#else
|
||||
return collision_react(collider, isLow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// HandleCollision's own code.
|
||||
bool Entity_Player::collision_react(Entity* collider, bool isLow)
|
||||
{
|
||||
LuaResult lua = lua_engine_get().PrePlayerCollide(this, collider, isLow);
|
||||
if (lua == LUA_RESULT_TRUE) return true;
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
#include "game/sfx_manager.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// A beam of light from above (Crack the Sky, Isaac's and the Holy Eye's beams): a spotlight that strikes on its Hit
|
||||
// event, then hurts what stands in it every third frame its beam shows. Subtype 1 is the player's, which takes subtype
|
||||
@@ -323,9 +326,13 @@ constexpr int SIREN_STATE_IDLE = 216;
|
||||
constexpr int FAMILIAR_VARIANT_LAST_PLAIN = 900;
|
||||
|
||||
// FUN_0060dae0 Whether the Siren may charm a familiar: not the ones that never follow her, the subtype 0 ones only
|
||||
// as such, Incubus only away from Lilith, and two only in some states.
|
||||
// as such, Incubus only away from Lilith, and two only in some states. A mod's MC_PRE_FAMILIAR_CAN_CHARM may refuse.
|
||||
bool is_familiar_charmable(Entity_Familiar& familiar)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PreFamiliarCanCharm", MC_PRE_FAMILIAR_CAN_CHARM, familiar.variant};
|
||||
if (!boolean_run(run, true, &familiar)) return false;
|
||||
#endif
|
||||
int variant = familiar.variant;
|
||||
if (variant > FAMILIAR_VARIANT_LAST_PLAIN) return true;
|
||||
if (std::find(SIREN_IMMUNE_FAMILIARS.begin(), SIREN_IMMUNE_FAMILIARS.end(), variant) !=
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
#include <map>
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The creep variants the players leave (holy water trail, black, red, white, holy water, green, Lemon Mishap, Lemon
|
||||
// Party, 204, Black Powder, milk, Black Powder's pentagram).
|
||||
@@ -299,6 +302,9 @@ void Entity_Effect::Init(int entityType, int entityVariant, int entitySubType, u
|
||||
// while following it, then runs its variant and counts its timeout down to its death.
|
||||
void Entity_Effect::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreEffectUpdate", MC_PRE_EFFECT_UPDATE, (int)variant}, false, this)) return Entity::Update();
|
||||
#endif
|
||||
speedMultiplier = g_game->room->GetTimeScale(this);
|
||||
if (variant == EFFECT_HUSH_LASER || variant == EFFECT_HUSH_LASER_UP)
|
||||
{
|
||||
@@ -364,8 +370,16 @@ void Entity_Effect::Interpolate()
|
||||
}
|
||||
|
||||
// 00607620 Draws the effect at its place on screen through its variant, or its sprite. A light only lights the room.
|
||||
void Entity_Effect::Render(const Vector& offset)
|
||||
void Entity_Effect::Render(const Vector& renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun pre = {"MC_PRE_EFFECT_RENDER", MC_PRE_EFFECT_RENDER, (int)variant};
|
||||
std::optional<Vector> moved = render_pre_run(pre, this, renderOffset);
|
||||
if (!moved) return;
|
||||
const Vector& offset = *moved;
|
||||
#else
|
||||
const Vector& offset = renderOffset;
|
||||
#endif
|
||||
if (variant == EFFECT_LIGHT || !isVisible) return;
|
||||
|
||||
Vector screen = render_position_get(vector_make(pos.x + posOffset.x, pos.y + posOffset.y), RENDER_SNAPPED);
|
||||
|
||||
+17
-1
@@ -20,6 +20,10 @@
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
#include <format>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/entities.h"
|
||||
#endif
|
||||
|
||||
// classes.h declares the original's Lua imports, and its luaL_newstate differs from Lua's only in its return type.
|
||||
#define luaL_newstate lua_newstate_auxiliary
|
||||
@@ -321,9 +325,18 @@ Entity* Entity::GetLastSpawner()
|
||||
return last;
|
||||
}
|
||||
|
||||
// 006a89f0 The segment that holds the status effects of a body sharing them, or itself.
|
||||
// 006a89f0 The segment that holds the status effects of a body sharing them, or itself. A mod may name another.
|
||||
Entity* Entity::GetStatusEffectTarget()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
LuaEngine& engine = lua_engine_get();
|
||||
if (callback_run(engine, {"GetStatusEffectTarget", MC_GET_STATUS_EFFECT_TARGET, type}, this))
|
||||
{
|
||||
Entity* target = (Entity*)lua_object_test(engine.state, -1, LUA_CLASS_ENTITY);
|
||||
lua_pop(engine.state, 1);
|
||||
if (target) return target;
|
||||
}
|
||||
#endif
|
||||
return DoesEntityShareStatus() ? GetLastParent() : this;
|
||||
}
|
||||
|
||||
@@ -1211,6 +1224,9 @@ bool Entity::RenderShadowLayer(const Vector& offset)
|
||||
// the rest of its body.
|
||||
void Entity::SetColor(const ColorMod& newColor, int duration, int priority, bool isFadeout, bool isShared)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (entity_color_hook(*this, {newColor, duration, priority, duration, isFadeout, isShared})) return;
|
||||
#endif
|
||||
if (duration < 1)
|
||||
{
|
||||
color = newColor;
|
||||
|
||||
+12
-1
@@ -23,6 +23,10 @@
|
||||
#include "level/room.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/level.h"
|
||||
#endif
|
||||
|
||||
// The seed of a pedestal's Flip item comes from its own with this shift.
|
||||
constexpr uint32_t FLIP_SEED_SHIFT_INDEX = 39;
|
||||
@@ -763,9 +767,13 @@ void room_trigger_output_cell_add(Room& room, int group, int column, int row)
|
||||
constexpr std::array<int, 11> PERSISTENT_ENTITIES = {
|
||||
ENTITY_STONEHEAD, 202, 203, 218, 235, 236, 804, 809, 852, 877, 893};
|
||||
|
||||
// 007ed2a0 Room::IsPersistentRoomEntity: whether a cleared room still spawns the entity.
|
||||
// 007ed2a0 Room::IsPersistentRoomEntity: whether a cleared room still spawns the entity. A mod may answer.
|
||||
bool room_entity_is_persistent(int type, int variant)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"IsPersistentRoomEntity", MC_IS_PERSISTENT_ROOM_ENTITY, std::nullopt};
|
||||
if (std::optional<bool> isPersistent = callback_boolean_get(run, type, variant)) return *isPersistent;
|
||||
#endif
|
||||
if (type == ENTITY_POKY) return variant != 0;
|
||||
return type == ENTITY_MINECART ||
|
||||
std::find(PERSISTENT_ENTITIES.begin(), PERSISTENT_ENTITIES.end(), type) != PERSISTENT_ENTITIES.end();
|
||||
@@ -939,6 +947,9 @@ static bool grid_entry_spawn(Room& room, RoomEntry& entry, int gridIndex, uint32
|
||||
if (grid.variant >= 0) variant = grid.variant;
|
||||
}
|
||||
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!room_grid_spawn_pre(gridType, variant, varData, gridIndex, seed)) return false;
|
||||
#endif
|
||||
GridEntity* grid = CreateGridEntity(gridType, gridIndex);
|
||||
if (!grid) return false;
|
||||
room.gridEntities[gridIndex] = grid;
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
#include "level/room_grid.h"
|
||||
#include "entity/weapon/weapon.h"
|
||||
#include <algorithm>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The enemies a contact familiar swats outright: the flies (a Pooter only of its first kinds).
|
||||
constexpr int SWATTED_TYPES[] = {13, 18, 80, 222, 256, 296, 281, 868};
|
||||
@@ -623,7 +626,20 @@ static bool dip_touch(Entity_Familiar& dip, Entity& enemy, float damageMultiplie
|
||||
// Baby lets players by, the spiders curse, Sissy Longlegs charms, a dashing charger breaks fireplaces and poop, a
|
||||
// spinning orbital hits, Skatole and Beelzebub keep the flies off the player, a familiar with contact damage hurts
|
||||
// enemies (once per hit list) and a blocking one stops shots. Returns whether the touch is ignored.
|
||||
// REPENTOGON's collision callbacks run around it.
|
||||
bool Entity_Familiar::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollisionCallbacks callbacks = {"PreFamiliarCollision", MC_PRE_FAMILIAR_COLLISION, MC_POST_FAMILIAR_COLLISION,
|
||||
variant};
|
||||
return collision_callbacks_run(*this, collider, isLow, callbacks, &Entity_Familiar::collision_react);
|
||||
#else
|
||||
return collision_react(collider, isLow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// HandleCollision's own code.
|
||||
bool Entity_Familiar::collision_react(Entity* collider, bool isLow)
|
||||
{
|
||||
if (familiar_versus())
|
||||
{
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
#include "game/sfx_manager.h"
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The familiars that join the following line, and the ones that trail the player's path instead (Init 0060de70).
|
||||
constexpr int FOLLOWER_VARIANTS[] = {1, 2, 4, 5, 6, 7, 9, 10, 11, 20, 21, 22, 23, 40, 41, 3,
|
||||
@@ -558,9 +561,12 @@ bool Entity_Familiar::update_appearing()
|
||||
|
||||
// 0061da10 A familiar's frame: its size, the first frames' fixes (the delayed ones start on the player, a fourth
|
||||
// familiar in the innermost orbit pushes an orbiting fly out), the appearing poof, then its variant's behaviour and the
|
||||
// shared tail.
|
||||
// shared tail. A mod's MC_PRE_FAMILIAR_UPDATE may leave only Entity's update.
|
||||
void Entity_Familiar::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreFamiliarUpdate", MC_PRE_FAMILIAR_UPDATE, variant}, false, this)) return Entity::Update();
|
||||
#endif
|
||||
if (variant != FORGOTTEN_BODY)
|
||||
{
|
||||
float scale = variant == ABYSS_LOCUST ? locust_scale_get(*this) : 1;
|
||||
@@ -1057,9 +1063,18 @@ void Entity_Familiar::Interpolate()
|
||||
|
||||
// 00624e10 Draws a familiar with its charge bar. Isaac's body draws its parts, a detached head its player's head, Gello
|
||||
// its cord first, Samson's Chains and Gemini hang their links, a locust its shot sprites and an item wisp its item's
|
||||
// icon. Tainted Lazarus's hologram draws them all faint and flickering.
|
||||
void Entity_Familiar::Render(const Vector& offset)
|
||||
// icon. Tainted Lazarus's hologram draws them all faint and flickering. A mod's MC_PRE_FAMILIAR_RENDER may skip it or
|
||||
// move it.
|
||||
void Entity_Familiar::Render(const Vector& renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<Vector> moved = render_pre_run({"PreFamiliarRender", MC_PRE_FAMILIAR_RENDER, variant}, this,
|
||||
renderOffset);
|
||||
if (!moved) return;
|
||||
const Vector& offset = *moved;
|
||||
#else
|
||||
const Vector& offset = renderOffset;
|
||||
#endif
|
||||
if (IsLilithBirthrightIncubus())
|
||||
{
|
||||
Entity* whip = get_incubus_umbilical_whip();
|
||||
|
||||
@@ -475,6 +475,10 @@ struct Entity_Familiar : Entity
|
||||
|
||||
private:
|
||||
void blood_puppy_restore(float bodyHealth);
|
||||
Entity_Laser* brimstone_fire(const Vector& aimDirection, BrimstoneLook look);
|
||||
bool collision_react(Entity* collider, bool isLow);
|
||||
Entity_Laser* robo_laser_fire(const Vector& direction);
|
||||
Entity_Tear* tear_fire(const Vector& aimDirection, FireMode mode);
|
||||
bool collision_block(Entity& collider, bool isIgnored);
|
||||
bool collision_contact(Entity& collider, float damageMultiplier, float damage);
|
||||
void collision_hurt(Entity& collider, float damageMultiplier, float dealt);
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
#include "level/room.h"
|
||||
#include "level/room_grid.h"
|
||||
#include <algorithm>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// How far behind its leader a follower keeps, closer for Milk and on Child's Leash, and how hard it catches up.
|
||||
constexpr float FOLLOW_DISTANCE = 20;
|
||||
@@ -157,9 +160,13 @@ static bool is_wide_wisp(Entity_Familiar& familiar)
|
||||
}
|
||||
|
||||
// 00612970 Its rank in the following line: the shooters first, then Mongo Baby and its peers, the Lils, Incubus, Milk
|
||||
// and King Baby at the very front. Others do not follow.
|
||||
// and King Baby at the very front. Others do not follow. A mod may answer.
|
||||
int Entity_Familiar::GetFollowerPriority()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"GetFollowerPriority", MC_GET_FOLLOWER_PRIORITY, variant};
|
||||
if (std::optional<int> priority = callback_integer_get(run, this)) return *priority;
|
||||
#endif
|
||||
if (familiar_listed(PRIORITY_1_VARIANTS, variant)) return 1;
|
||||
if (familiar_listed(PRIORITY_2_VARIANTS, variant)) return 2;
|
||||
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
#include "entity/npc/ai.h"
|
||||
#include "level/room.h"
|
||||
#include <algorithm>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The items and trinkets the familiars' shots read.
|
||||
|
||||
@@ -148,7 +151,8 @@ int familiar_lullaby_delay(Entity_Familiar& familiar, int fireDelay)
|
||||
|
||||
// 0060dc40 How strong its attacks are: doubled by BFFS! (not for blue flies and spiders) or by Hive Mind (flies and
|
||||
// spiders), a quarter more per Child's Leash, three quarters for Tainted Bethany, a quarter for Tainted Lazarus's other
|
||||
// form while it is behind.
|
||||
// form while it is behind. A positive number from a mod's MC_EVALUATE_FAMILIAR_MULTIPLIER replaces it. REPENTOGON
|
||||
// keeps that per familiar until a familiarmultiplier custom cache, the rebuild asks each time.
|
||||
float Entity_Familiar::GetMultiplier()
|
||||
{
|
||||
uint64_t tags = config->tags;
|
||||
@@ -167,6 +171,16 @@ float Entity_Familiar::GetMultiplier()
|
||||
if (player->isExists && isLazarusB && twin && twin != player && twin->playerIndex != -1 &&
|
||||
twin->playerIndex < player->playerIndex)
|
||||
multiplier *= 0.25f;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
LuaEngine& engine = lua_engine_get();
|
||||
CallbackRun run = {"EvaluateFamiliarMultiplier", MC_EVALUATE_FAMILIAR_MULTIPLIER, variant};
|
||||
if (callback_run(engine, run, this, multiplier, player))
|
||||
{
|
||||
float evaluated = lua_isnumber(engine.state, -1) ? (float)lua_tonumber(engine.state, -1) : 0;
|
||||
lua_pop(engine.state, 1);
|
||||
if (evaluated > 0) multiplier = evaluated;
|
||||
}
|
||||
#endif
|
||||
return multiplier;
|
||||
}
|
||||
|
||||
@@ -556,8 +570,19 @@ static Entity_Tear* intruder_shots_fire(Entity_Familiar& intruder, FamiliarShot&
|
||||
|
||||
// 00639750 Fires a familiar's tear: at ten speed, with the player's motion unless aimed at a mark (Intruder only the
|
||||
// part not against its aim), its damage and size scaled by BFFS!, and the variant's flags and look. Harlequin Baby
|
||||
// fires two, Intruder four and the wisps their own way.
|
||||
// fires two, Intruder four and the wisps their own way. MC_POST_FAMILIAR_FIRE_PROJECTILE follows a tear fired.
|
||||
Entity_Tear* Entity_Familiar::FireProjectile(const Vector& aimDirection, FireMode mode)
|
||||
{
|
||||
Entity_Tear* tear = tear_fire(aimDirection, mode);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PostFamiliarFireProjectile", MC_POST_FAMILIAR_FIRE_PROJECTILE, variant};
|
||||
if (tear) callback_notify(lua_engine_get(), run, tear);
|
||||
#endif
|
||||
return tear;
|
||||
}
|
||||
|
||||
// FireProjectile's own code.
|
||||
Entity_Tear* Entity_Familiar::tear_fire(const Vector& aimDirection, FireMode mode)
|
||||
{
|
||||
FamiliarShot shot;
|
||||
shot.velocity = vector_scale(aimDirection, SHOT_SPEED);
|
||||
@@ -740,7 +765,19 @@ void Entity_Familiar::shot_owner_convert(Entity* shot)
|
||||
// 00613c20 Robo-Baby's laser (a wisp's too): a short thin beam from its eye, hitting once and staying where it was
|
||||
// fired, three and a half damage times BFFS!, drawn behind it when aimed up or left. Lil Delirium tints it, a hologram
|
||||
// fades it, Baby-Bender bends it and the Siren turns it on the player. None for a dead player.
|
||||
// MC_POST_FAMILIAR_FIRE_TECH_LASER follows (REPENTOGON's Entity_Familiar::FireTechLaser).
|
||||
Entity_Laser* Entity_Familiar::fire_robo_baby_laser(const Vector& direction)
|
||||
{
|
||||
Entity_Laser* laser = robo_laser_fire(direction);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PostFamiliarFireTechLaser", MC_POST_FAMILIAR_FIRE_TECH_LASER, variant};
|
||||
callback_notify(lua_engine_get(), run, laser);
|
||||
#endif
|
||||
return laser;
|
||||
}
|
||||
|
||||
// fire_robo_baby_laser's own code.
|
||||
Entity_Laser* Entity_Familiar::robo_laser_fire(const Vector& direction)
|
||||
{
|
||||
if (player->isDead) return nullptr;
|
||||
|
||||
@@ -880,7 +917,19 @@ bool Entity_Familiar::apply_baby_bender(Entity_Laser& laser)
|
||||
// 00638c10 Fires a familiar's Brimstone beam along a direction (none for a dead player): a short thin beam from its
|
||||
// mouth, a third of Brimstone's damage times BFFS!, drawn behind it when aimed up. Its own beam is tinted for Lil
|
||||
// Delirium, bent by Baby-Bender, turned on the player by the Siren, linked to it and shown on its head.
|
||||
// MC_POST_FAMILIAR_FIRE_BRIMSTONE follows.
|
||||
Entity_Laser* Entity_Familiar::FireBrimstone(const Vector& aimDirection, BrimstoneLook look)
|
||||
{
|
||||
Entity_Laser* laser = brimstone_fire(aimDirection, look);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PostFamiliarFireBrimstone", MC_POST_FAMILIAR_FIRE_BRIMSTONE, variant};
|
||||
callback_notify(lua_engine_get(), run, laser);
|
||||
#endif
|
||||
return laser;
|
||||
}
|
||||
|
||||
// FireBrimstone's own code.
|
||||
Entity_Laser* Entity_Familiar::brimstone_fire(const Vector& aimDirection, BrimstoneLook look)
|
||||
{
|
||||
if (player->isDead) return nullptr;
|
||||
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/items.h"
|
||||
#endif
|
||||
|
||||
constexpr int WISP_SHEET_WIDE = 128;
|
||||
constexpr int WISP_HEAD_FRAMES = 12;
|
||||
@@ -185,7 +188,7 @@ int Entity_Familiar::GetRandomWisp(RNG* rng)
|
||||
|
||||
// 00436330 Sets a wisp up: an item wisp takes Lemegeton's (or Book of Virtues' Lemegeton) entry, Eden's Soul and
|
||||
// Mystery Gift wisps become a random wisp, the wisps with their own behaviour get ready, then its entry's health,
|
||||
// sheets and colours. The item wisps are counted as held.
|
||||
// sheets and colours. The item wisps are counted as held, and MC_POST_TRIGGER_COLLECTIBLE_ADDED runs for a new one.
|
||||
void Entity_Familiar::WispInit()
|
||||
{
|
||||
int item = subtype;
|
||||
@@ -214,6 +217,10 @@ void Entity_Familiar::WispInit()
|
||||
|
||||
if (variant == ITEM_WISP) player->RecomputeWispCollectibles(this);
|
||||
g_game->UpdateVisibility();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!isFamiliarsRestoring && variant == ITEM_WISP && player && ItemConfig::IsValidCollectible(subtype))
|
||||
collectible_added_post(*player, subtype, false, true);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 0043d7f0 Turns a wisp into another kind, keeping its health below the new kind's.
|
||||
@@ -603,6 +610,9 @@ void Entity_Player::RecomputeWispCollectibles(Entity_Familiar* joining)
|
||||
for (int id : removedIds)
|
||||
{
|
||||
ItemConfig_Item* item = items.GetCollectible(id);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
collectibleRemoval = REMOVAL_KIND_WISP;
|
||||
#endif
|
||||
TriggerCollectibleRemoved(id);
|
||||
if (item && item->isAddCostumeOnPickup && !HasCollectible(id)) RemoveCostume(item);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
#include <cmath>
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr const char* SHADOW_PNG = "gfx/shadow.png";
|
||||
|
||||
@@ -405,6 +408,10 @@ void EntityList::Update(UpdateMode mode)
|
||||
boss_bar_update(tally);
|
||||
enemyDamageInflicted = tally.damageInflicted;
|
||||
bool isBakedAway = surfaces_bake(renderEL);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (mode == UPDATE_NORMAL)
|
||||
callback_notify(lua_engine_get(), {"PreRoomCollisionPass", MC_PRE_ROOM_COLLISION_PASS, std::nullopt});
|
||||
#endif
|
||||
if (tally.isAnyRemoved || isBakedAway) removed_drop();
|
||||
if (mode == UPDATE_NORMAL) rebuild_sublists();
|
||||
sort_by_render_z();
|
||||
|
||||
+1
-1
@@ -167,6 +167,7 @@ struct EntityList
|
||||
void Update(UpdateMode mode);
|
||||
void rebuild_sublists();
|
||||
void sort_by_render_z();
|
||||
void removed_drop();
|
||||
void render_up_to(uint32_t maxDepth, const Vector& offset);
|
||||
void invalidate_type_cache(int type, int variant, int subType);
|
||||
int CountEntities(Entity* spawner, int type, int variant, int subType);
|
||||
@@ -177,6 +178,5 @@ private:
|
||||
void entities_update(UpdateMode mode, UpdateTally& tally);
|
||||
void players_update(UpdateMode mode);
|
||||
void boss_bar_update(const UpdateTally& tally);
|
||||
void removed_drop();
|
||||
void twins_push_apart();
|
||||
};
|
||||
@@ -11,6 +11,9 @@
|
||||
#include "game/sfx_manager.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr int SHRINK_PULSE_FRAMES = 60;
|
||||
|
||||
@@ -505,6 +508,10 @@ static void dark_red_champion_update(Entity_NPC& npc)
|
||||
}
|
||||
npc.pathfinder.Reset();
|
||||
npc.ResetColor();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun regen = {"PostNPCDarkRedChampionRegen", MC_POST_NPC_DARK_RED_CHAMPION_REGEN, (int)npc.type};
|
||||
callback_notify(lua_engine_get(), regen, &npc);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
#include <algorithm>
|
||||
#include <optional>
|
||||
#include <span>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The variants and states some contacts depend on.
|
||||
constexpr int FIREPLACE_WHITE = 4;
|
||||
@@ -943,7 +946,19 @@ static void contact_impact(Entity_NPC& npc, Entity& other)
|
||||
// 006cd410 What it does on touching another entity, and whether that contact is ignored. The special contacts of
|
||||
// bosses and odd enemies come first, then the generic ones: a shrunk enemy is squished, friends and shots pass, a
|
||||
// touched player is hurt, kin pass each other, and a charmed enemy bumps others.
|
||||
// REPENTOGON's collision callbacks run around it.
|
||||
bool Entity_NPC::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollisionCallbacks callbacks = {"PreNPCCollision", MC_PRE_NPC_COLLISION, MC_POST_NPC_COLLISION, (int)type};
|
||||
return collision_callbacks_run(*this, collider, isLow, callbacks, &Entity_NPC::collision_react);
|
||||
#else
|
||||
return collision_react(collider, isLow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// HandleCollision's own code.
|
||||
bool Entity_NPC::collision_react(Entity* collider, bool isLow)
|
||||
{
|
||||
LuaResult lua = lua_engine_get().PreNPCCollision(this, collider, isLow);
|
||||
if (lua == LUA_RESULT_TRUE) return true;
|
||||
|
||||
+25
-4
@@ -36,6 +36,10 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <filesystem>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/npc.h"
|
||||
#endif
|
||||
|
||||
// The frames of a controlled NPC's charge bar, empty to full.
|
||||
constexpr int CHARGE_BAR_FRAMES = 100;
|
||||
@@ -1124,6 +1128,9 @@ bool Entity_NPC::Redirect(int* entityType, int* entityVariant)
|
||||
// kept only where the new one can be one. An enemy the run erased leaves in a poof.
|
||||
void Entity_NPC::Morph(int entityType, int entityVariant, int entitySubType, int championId)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (npc_morph_hook(*this, {entityType, entityVariant, entitySubType, championId})) return;
|
||||
#endif
|
||||
bool isSame = entityType == type && entityVariant == variant && entitySubType == subtype &&
|
||||
(championId < 0 || championId == championColorIdx);
|
||||
if (isSame) return;
|
||||
@@ -2432,6 +2439,9 @@ static Entity* dople_player_pick(Entity_NPC& npc)
|
||||
// the rest the nearest target player (Game::GetNearestTargetPlayer), else the first player.
|
||||
Entity* Entity_NPC::GetPlayerTarget()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<Entity*> picked = npc_target_hook(*this)) return *picked;
|
||||
#endif
|
||||
if (type == ENTITY_DOPLE) return dople_player_pick(*this);
|
||||
|
||||
bool isRetargeting = IsFrame(TARGET_REFRESH_FRAMES, (int)index) || !target;
|
||||
@@ -3032,7 +3042,7 @@ void Entity_NPC::hold_set(int countdown, const Vector& position)
|
||||
// configs. In a run a mod may answer first through MC_INPUT_ACTION. Netplay's remote devices are offline.
|
||||
float input_action_value_get(ButtonAction action, int controllerIndex, Entity* entity)
|
||||
{
|
||||
if (g_manager->state == MANAGER_STATE_GAME && g_luaEngine)
|
||||
if (is_input_hook_asked())
|
||||
if (std::optional<float> modValue = lua_engine_get().InputActionValue(entity, action)) return *modValue;
|
||||
|
||||
KAGE::Input::Manager& input = KAGE::Input::manager;
|
||||
@@ -3629,7 +3639,11 @@ bool Entity_NPC::split(float damage, const EntityRef& source, bool isPlaySound)
|
||||
if (isDead || !isExists) return false;
|
||||
|
||||
if (isPlaySound) npc_sound_play(SOUND_MEATY_DEATHS, 1, 2, 1);
|
||||
bool isHurtOnly = scale < SPLIT_LEAST_SCALE || split_is_unsplittable(*this);
|
||||
bool isBlacklisted = split_is_unsplittable(*this);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
isBlacklisted = boolean_run({"PreNPCSplit", MC_PRE_NPC_SPLIT, (int)type}, isBlacklisted, this, isBlacklisted);
|
||||
#endif
|
||||
bool isHurtOnly = scale < SPLIT_LEAST_SCALE || isBlacklisted;
|
||||
bool isChain = (type == ENTITY_VISAGE && variant == VISAGE_CHAIN) || (type == ENTITY_SCOURGE && variant == SCOURGE_CHAIN);
|
||||
if (isHurtOnly) TakeDamage(damage, 0, source, SPLIT_HURT_COUNTDOWN);
|
||||
else if (type == ENTITY_FALLEN && variant == 0 && spawnerType != ENTITY_FALLEN)
|
||||
@@ -3653,10 +3667,17 @@ bool Entity_NPC::split(float damage, const EntityRef& source, bool isPlaySound)
|
||||
// ghosts. Otherwise, or with nothing to drop, the ghosts shown before go.
|
||||
void Entity_NPC::UpdatePickupGhosts()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isShown = npc_ghosts_is_shown(*this);
|
||||
#else
|
||||
bool isLootHolder = (type == ENTITY_FIREPLACE && health > 1) || (type == ENTITY_SHOPKEEPER && !isDead);
|
||||
if (isLootHolder && g_game->playerManager.FirstCollectibleOwner(COLLECTIBLE_GUPPYS_EYE, LAZARUS_SHARE_CHECK))
|
||||
bool isShown = isLootHolder && g_game->playerManager.FirstCollectibleOwner(COLLECTIBLE_GUPPYS_EYE, LAZARUS_SHARE_CHECK);
|
||||
#endif
|
||||
if (isShown)
|
||||
{
|
||||
LootList loot = type == ENTITY_FIREPLACE ? fireplace_get_loot(false) : LootList{shopkeeper_loot_get(*this, false)};
|
||||
LootList loot = type == ENTITY_FIREPLACE ? fireplace_get_loot(false)
|
||||
: type == ENTITY_SHOPKEEPER ? LootList{shopkeeper_loot_get(*this, false)}
|
||||
: LootList{};
|
||||
if (!loot.entries.empty())
|
||||
{
|
||||
pickupGhostsEntity = Entity_Effect::CreateLootPreview(
|
||||
|
||||
@@ -285,6 +285,7 @@ struct Entity_NPC : Entity
|
||||
bool TryThrow(const EntityRef& source, const Vector& direction, float force) override;
|
||||
Vector GetForwardVector() override;
|
||||
bool HandleCollision(Entity* collider, bool isLow) override;
|
||||
bool collision_react(Entity* collider, bool isLow);
|
||||
void ResetColor() override;
|
||||
void LoadEntityConfig() override;
|
||||
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
#include <cmath>
|
||||
#include <format>
|
||||
#include <map>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr float NPC_SCREEN_SCALE = 0.65f;
|
||||
constexpr int SPAWN_BAR_DELAY = 2;
|
||||
@@ -383,8 +386,15 @@ static bool npc_is_health_bar_shown(Entity_NPC& npc)
|
||||
// 006d2e50 Draws it: hidden in the wrong pass or tinted, on its minecart, with a special body for some bosses, the
|
||||
// size pulse, the Lamb's afterimages, and the links in front, then what it holds, its status effect, a health bar
|
||||
// and its controller's charge bar.
|
||||
void Entity_NPC::Render(const Vector& offset)
|
||||
void Entity_NPC::Render(const Vector& renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<Vector> moved = render_pre_run({"PreNPCRender", MC_PRE_NPC_RENDER, (int)type}, this, renderOffset);
|
||||
if (!moved) return;
|
||||
const Vector& offset = *moved;
|
||||
#else
|
||||
const Vector& offset = renderOffset;
|
||||
#endif
|
||||
if (is_type(*this, ENTITY_MINECART, 0) && child) return;
|
||||
|
||||
RenderMode renderMode = g_game->room->entityList.renderMode;
|
||||
|
||||
@@ -400,7 +400,7 @@ static UltraGreedRoom ultra_greed_room_read()
|
||||
int gapers = 0;
|
||||
|
||||
for (Entity* coin : entity_query(ENTITY_PICKUP, PICKUP_COIN))
|
||||
if (auto* pickup = dynamic_cast<Entity_Pickup*>(coin)) room.coinWorth += pickup->GetCoinValue();
|
||||
if (auto* pickup = dynamic_cast<Entity_Pickup*>(coin)) room.coinWorth += pickup->coin_worth();
|
||||
coins = (int)entity_query(ENTITY_ULTRA_COIN, -1).size();
|
||||
gapers = (int)entity_query(ENTITY_GREED_GAPER, -1).size();
|
||||
room.keepers = (int)entity_query(ENTITY_KEEPER, -1).size();
|
||||
@@ -1101,7 +1101,7 @@ static Vector ultra_greed_walk_goal(Entity_NPC& npc, bool& isCoinGoal)
|
||||
{
|
||||
auto* pickup = dynamic_cast<Entity_Pickup*>(coin);
|
||||
if (!pickup) continue;
|
||||
float score = vector_length_squared(vector_sub(npc.pos, coin->pos)) / (float)pickup->GetCoinValue();
|
||||
float score = vector_length_squared(vector_sub(npc.pos, coin->pos)) / (float)pickup->coin_worth();
|
||||
if (score >= best || pickup->entityCollisionClass == ENTCOLL_NONE || pickup->isDead) continue;
|
||||
isCoinGoal = true;
|
||||
goal = coin->pos;
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The shift index of the RNG every outcome draw seeds (5, 9, 7), and the one a loot's spot angle comes from.
|
||||
constexpr int OUTCOME_SHIFT_INDEX = 35;
|
||||
@@ -655,8 +658,16 @@ static void chest_vanish(Entity_Pickup& chest)
|
||||
// 006e6e40 Opens the chest for a player (the nearest main one when none): it plays Open with its sounds and a faint poof,
|
||||
// gives its loot and stays open. An eternal chest that gives nothing closes again. An item turns the chest into its
|
||||
// pedestal, and a pickup or enemy coming out pushes a close player away. Whether a closed chest opened.
|
||||
// A mod may keep it shut.
|
||||
bool Entity_Pickup::TryOpenChest(Entity_Player* player)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isOpenChest = IsChest(variant) && subtype == 0;
|
||||
if (!isOpenChest && !boolean_run({"PreOpenChest", MC_PRE_OPEN_CHEST, variant}, true, this, player)) return false;
|
||||
ScopeExit post{[=, this] {
|
||||
if (!isOpenChest) callback_notify(lua_engine_get(), {"PostOpenChest", MC_POST_OPEN_CHEST, variant}, this, player);
|
||||
}};
|
||||
#endif
|
||||
if (!player) player = main_player_nearest(pos);
|
||||
if (!player) player = g_game->GetPlayer(0);
|
||||
if (subtype == 0) return false;
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
#include "engine/render_passes.h"
|
||||
#include "level/room.h"
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr int SLEEP_SOUL_HEARTS = 6;
|
||||
constexpr int EVENT_COUNTER_SLEEPS = 202;
|
||||
@@ -66,11 +69,15 @@ static void overlay_sound_play(int sound, int frameDelay, float pitch)
|
||||
}
|
||||
|
||||
// Sleeping's healing: each player but Tainted Soul fills its red hearts, or takes three soul hearts without heart
|
||||
// containers, with a power up sound unless finishing. The game counts the sleep.
|
||||
// containers, with a power up sound unless finishing. The game counts the sleep. A mod may skip a player.
|
||||
static void sleep_heal(OverlayUpdate mode)
|
||||
{
|
||||
for (Entity_Player* player : g_game->playerManager.playerList)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreTriggerBedSleepEffect", MC_PRE_TRIGGER_BED_SLEEP_EFFECT, std::nullopt}, false, player))
|
||||
continue;
|
||||
#endif
|
||||
if (player->playerType == PLAYER_THESOUL_B)
|
||||
continue;
|
||||
|
||||
@@ -128,8 +135,23 @@ static void sleep_nightmare_update(ANM2& overlay, OverlayUpdate mode)
|
||||
|
||||
// 009ad210 Shows a giant book: its .anm2 with the entry's spritesheet and recolored layers, playing its animation, at
|
||||
// once or after a delay. An entry without one (Mega Mush's) leaves the sprite empty.
|
||||
// A mod may keep it hidden or show another.
|
||||
void ItemOverlay::Show(int overlayId, int showDelay, Entity_Player* shown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
LuaEngine& engine = lua_engine_get();
|
||||
if (callback_run(engine, {"PreItemOverlayShow", MC_PRE_ITEM_OVERLAY_SHOW, overlayId}, overlayId, showDelay, shown))
|
||||
{
|
||||
bool isCancelled = lua_isboolean(engine.state, -1) && lua_toboolean(engine.state, -1);
|
||||
if (lua_isnumber(engine.state, -1)) overlayId = (int)lua_tonumber(engine.state, -1);
|
||||
lua_pop(engine.state, 1);
|
||||
if (isCancelled) return;
|
||||
}
|
||||
ScopeExit post{[&] {
|
||||
CallbackRun run = {"PostItemOverlayShow", MC_POST_ITEM_OVERLAY_SHOW, overlayId};
|
||||
callback_notify(engine, run, overlayId, showDelay, shown);
|
||||
}};
|
||||
#endif
|
||||
if ((unsigned)overlayId >= GIANTBOOK_ENTRY_COUNT)
|
||||
return;
|
||||
|
||||
@@ -163,6 +185,12 @@ void ItemOverlay::Show(int overlayId, int showDelay, Entity_Player* shown)
|
||||
// and the nightmare of the bed in Home. Finishing skips the animations to their end and the sounds.
|
||||
void ItemOverlay::Update(OverlayUpdate mode)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
ScopeExit post{[&] {
|
||||
CallbackRun run = {"PostItemOverlayUpdate", MC_POST_ITEM_OVERLAY_UPDATE, overlayID};
|
||||
callback_notify(lua_engine_get(), run, overlayID, mode == OVERLAY_UPDATE_FINISH);
|
||||
}};
|
||||
#endif
|
||||
if (state == ITEM_OVERLAY_WAITING)
|
||||
{
|
||||
if (--delay < 1)
|
||||
@@ -237,4 +265,8 @@ void ItemOverlay::Render()
|
||||
}
|
||||
}
|
||||
graphics.shader_default_set();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (sprite.isLoaded || overlayID == GIANTBOOK_MEGA_MUSH)
|
||||
callback_notify(lua_engine_get(), {"PostItemOverlayRender", MC_POST_ITEM_OVERLAY_RENDER, overlayID}, overlayID);
|
||||
#endif
|
||||
}
|
||||
@@ -14,6 +14,10 @@
|
||||
#include <algorithm>
|
||||
#include <optional>
|
||||
#include <random>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/items.h"
|
||||
#endif
|
||||
|
||||
// An outcome of a weighted draw and its weight, as WeightedOutcomePicker holds them.
|
||||
struct WeightedOutcome
|
||||
@@ -885,9 +889,19 @@ static int effect_swap(std::span<const std::pair<int, int>> pairs, int effect)
|
||||
|
||||
// 00734a80 The effect a pill color has for a player: PHD (Virgo, Lucky Foot) turns bad pills good unless False PHD
|
||||
// cancels it, and False PHD alone turns good pills bad. A pill the player cannot use falls back on a safe one. Lua's
|
||||
// MC_GET_PILL_EFFECT may override it.
|
||||
// MC_GET_PILL_EFFECT may override it, without vanilla parity after it all and seeing the player.
|
||||
// The original reads past the colors for a color above gold. Here that is no effect.
|
||||
int ItemPool::GetPillEffect(uint32_t pillColor, Entity_Player* player)
|
||||
{
|
||||
int effect = pill_effect_pick(pillColor, player);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!repentogonOptions.isVanillaParity) return pill_effect_post(effect, pillColor, player);
|
||||
#endif
|
||||
return effect;
|
||||
}
|
||||
|
||||
// GetPillEffect's own code.
|
||||
int ItemPool::pill_effect_pick(uint32_t pillColor, Entity_Player* player)
|
||||
{
|
||||
int color = (int)(pillColor & PILL_COLOR_MASK);
|
||||
int effect = color < PILL_COLOR_SLOTS ? pillEffects[color] : PILLEFFECT_NULL;
|
||||
@@ -915,8 +929,20 @@ int ItemPool::GetPillEffect(uint32_t pillColor, Entity_Player* player)
|
||||
return overridden != -1 ? overridden : effect;
|
||||
}
|
||||
|
||||
// 00736ba0 The color with a pill effect, given to a random color first when none has it.
|
||||
// 00736ba0 The color with a pill effect, given to a random color first when none has it. MC_POST_FORCE_ADD_PILL_EFFECT
|
||||
// follows.
|
||||
int ItemPool::ForceAddPillEffect(int pillEffect)
|
||||
{
|
||||
int color = pill_effect_force(pillEffect);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PostForceAddPillEffect", MC_POST_FORCE_ADD_PILL_EFFECT, std::nullopt};
|
||||
callback_notify(lua_engine_get(), run, pillEffect, color);
|
||||
#endif
|
||||
return color;
|
||||
}
|
||||
|
||||
// ForceAddPillEffect's own code.
|
||||
int ItemPool::pill_effect_force(int pillEffect)
|
||||
{
|
||||
for (int color = 1; color <= PILL_COLORS; color++)
|
||||
if (pillEffects[color] == pillEffect) return color;
|
||||
|
||||
@@ -215,7 +215,9 @@ public:
|
||||
|
||||
static int GetPill(uint32_t drawSeed);
|
||||
int GetPillEffect(uint32_t pillColor, Entity_Player* player);
|
||||
int pill_effect_pick(uint32_t pillColor, Entity_Player* player);
|
||||
int ForceAddPillEffect(int pillEffect);
|
||||
int pill_effect_force(int pillEffect);
|
||||
void IdentifyPill(uint32_t pillColor);
|
||||
bool IsPillIdentified(uint32_t pillColor);
|
||||
int on_pill_used(int pillColor, uint32_t useSeed, uint32_t& rngState);
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <span>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/items.h"
|
||||
#endif
|
||||
|
||||
constexpr int MORPH_RNG_SHIFT = 7;
|
||||
|
||||
@@ -54,10 +57,15 @@ int Entity_Pickup::sacrifice_item_pick()
|
||||
// index, flags and timers kept, its price kept or dropped, an active's initial charge, and its pedestal. Entities
|
||||
// pointing at it forget it. A devil deal keeps a sacrifice item, a priced item rerolled to nothing gets a new ware of
|
||||
// its shop slot at its price, a Mega Chest's halves stay paired, and Flip's other item stays while the pickup keeps its
|
||||
// kind.
|
||||
// kind. Mods' MC_PRE_PICKUP_MORPH may cancel or change it, and MC_POST_PICKUP_MORPH follows.
|
||||
void Entity_Pickup::Morph(int entityType, int entityVariant, int entitySubType, bool isKeepPrice, bool isKeepSeed,
|
||||
bool isIgnoreModifiers)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<PickupMorphed> morphed =
|
||||
pickup_morph_pre(*this, {entityType, entityVariant, entitySubType, isKeepPrice, isKeepSeed, isIgnoreModifiers});
|
||||
if (!morphed) return;
|
||||
#endif
|
||||
if (!isKeepSeed)
|
||||
{
|
||||
RNG rng = rng_make(initSeed, MORPH_RNG_SHIFT);
|
||||
@@ -153,4 +161,7 @@ void Entity_Pickup::Morph(int entityType, int entityVariant, int entitySubType,
|
||||
first->megaChestCollectible[1] = this;
|
||||
}
|
||||
if (flipOther && flipOther->type == type && flipOther->variant == variant) flipSaveState = flipOther;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
pickup_morph_post(*morphed);
|
||||
#endif
|
||||
}
|
||||
@@ -31,6 +31,10 @@
|
||||
#include <initializer_list>
|
||||
#include <span>
|
||||
#include <vector>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/items.h"
|
||||
#endif
|
||||
|
||||
// The chest variants (chest, locked, red, bomb, eternal, spiked, mimic, mom's, old, wooden, mega, haunted).
|
||||
constexpr std::array<int, 12> CHESTS = {PICKUP_CHEST, PICKUP_LOCKEDCHEST, PICKUP_REDCHEST, PICKUP_BOMBCHEST,
|
||||
@@ -858,6 +862,10 @@ void Entity_Pickup::Init(int entityType, int entityVariant, int entitySubType, u
|
||||
choice.subType = COLLECTIBLE_BROKEN_SHOVEL_1;
|
||||
charge = g_manager->itemConfig.GetCollectible(COLLECTIBLE_BROKEN_SHOVEL_1)->maxCharges;
|
||||
}
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!repentogonOptions.isVanillaParity) pickup_selection_post(*this, choice, {entitySubType, entityVariant, seed});
|
||||
else
|
||||
#endif
|
||||
lua_engine_get().PostPickupSelection(this, choice.variant, choice.subType);
|
||||
|
||||
bool isPoopBomb = choice.variant == PICKUP_BOMB && g_game->playerManager.are_all_players_tainted_blue_baby() &&
|
||||
@@ -1004,11 +1012,16 @@ void Entity_Pickup::UpdateSprite(bool isIgnoreBlind)
|
||||
}
|
||||
|
||||
// 006e17c0 Shows a closed chest's or a sack's contents to a holder of Guppy's Eye, while it is not timing out, and
|
||||
// otherwise removes the preview.
|
||||
// otherwise removes the preview. A mod's MC_PRE_PICKUP_UPDATE_GHOST_PICKUPS may decide whether it shows.
|
||||
void Entity_Pickup::UpdateLootPreview()
|
||||
{
|
||||
bool isLoot = (IsChest(variant) && subtype != 0) || (variant == PICKUP_GRAB_BAG && !isDead);
|
||||
if (anyone_has_collectible(COLLECTIBLE_GUPPYS_EYE) && isLoot && timeout < 1)
|
||||
bool isShown = anyone_has_collectible(COLLECTIBLE_GUPPYS_EYE) && isLoot && timeout < 1;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PrePickupUpdateGhostPickups", MC_PRE_PICKUP_UPDATE_GHOST_PICKUPS, variant};
|
||||
isShown = callback_boolean_get(run, this).value_or(isShown);
|
||||
#endif
|
||||
if (isShown)
|
||||
{
|
||||
LootList loot = GetChestLoot(POOL_DRAW_PEEK, game_nearest_player(pos));
|
||||
auto* ghost = static_cast<Entity_Effect*>(pickupGhost.get());
|
||||
@@ -1026,9 +1039,17 @@ void Entity_Pickup::Interpolate()
|
||||
}
|
||||
|
||||
// 006e69b0 Draws the pickup and its price, unless it is waiting to drop. The second item of a Mega Chest's pair is
|
||||
// drawn by the first.
|
||||
void Entity_Pickup::Render(const Vector& offset)
|
||||
// drawn by the first. A mod's MC_PRE_PICKUP_RENDER may skip it or move it.
|
||||
void Entity_Pickup::Render(const Vector& renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<Vector> moved = render_pre_run({"PrePickupRender", MC_PRE_PICKUP_RENDER, variant}, this,
|
||||
renderOffset);
|
||||
if (!moved) return;
|
||||
const Vector& offset = *moved;
|
||||
#else
|
||||
const Vector& offset = renderOffset;
|
||||
#endif
|
||||
if (!isExists || !isVisible || dropDelay >= 1) return;
|
||||
|
||||
if (variant == PICKUP_COLLECTIBLE && megaChestCollectible[0]) return;
|
||||
@@ -1164,9 +1185,13 @@ static void rotten_heart_drip(Entity_Pickup& heart)
|
||||
// 006e3940 Runs the pickup for a frame: a thrown chest's flight, Keeper's hearts turning into flies, Sack Head's
|
||||
// sacks, troll bombs going off, holding its place where it must, a scared heart's flight, its motion and friction,
|
||||
// its appear animation and drop sound, the glitch it may appear with, its timeouts and the crawl space's gravity.
|
||||
// Haunted, mega and mimic chests open or wake, rotten hearts drip, and the seeds slide and hide pickups.
|
||||
// Haunted, mega and mimic chests open or wake, rotten hearts drip, and the seeds slide and hide pickups. A mod's
|
||||
// MC_PRE_PICKUP_UPDATE may leave only Entity's update.
|
||||
void Entity_Pickup::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PrePickupUpdate", MC_PRE_PICKUP_UPDATE, variant}, false, this)) return Entity::Update();
|
||||
#endif
|
||||
if (dropDelay > 0)
|
||||
{
|
||||
if (entityCollisionClass == ENTCOLL_NONE)
|
||||
@@ -1818,7 +1843,7 @@ static bool throwable_bomb_lift(Entity_Pickup& pickup, Entity_Player& player)
|
||||
}
|
||||
|
||||
// Part of 006e8ae0: a bed sends the players to sleep once, when one of them could use red hearts. Mom's bed always
|
||||
// does, reviving the co-op ghosts, and at Home it brings the nightmare.
|
||||
// does, reviving the co-op ghosts, and at Home it brings the nightmare. A mod may leave a player out of the check.
|
||||
static void bed_touch(Entity_Pickup& bed, Entity_Player& player)
|
||||
{
|
||||
constexpr int BED_MOM = 10;
|
||||
@@ -1829,6 +1854,9 @@ static void bed_touch(Entity_Pickup& bed, Entity_Player& player)
|
||||
for (Entity_Player* other : g_game->playerManager.playerList)
|
||||
{
|
||||
if (isUsed) break;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreBedSleep", MC_PRE_BED_SLEEP, bed.subtype}, false, other, &bed)) continue;
|
||||
#endif
|
||||
HealthType health = other->GetHealthType();
|
||||
int hearts = health == HEALTH_SOUL || health == HEALTH_NO_HEALTH ? other->maxHearts
|
||||
: other->maxHearts + other->boneHearts * 2;
|
||||
@@ -1895,8 +1923,19 @@ static void store_credit_spend(Entity_Player& player, Entity_Pickup* dropped)
|
||||
// kinds. Whether the collision is solid: a priced or collected pickup and players' bombs pass through.
|
||||
// A priced pickup is bought with the player's coins or health, and chests open (entity_pickup_chest.cpp). Taking an
|
||||
// item, opening a chest or a sack starts a challenge room's fight, and a bed sends the players to sleep. A free ware
|
||||
// spends a Store Credit.
|
||||
// spends a Store Credit. REPENTOGON's collision callbacks run around it.
|
||||
bool Entity_Pickup::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollisionCallbacks callbacks = {"PrePickupCollision", MC_PRE_PICKUP_COLLISION, MC_POST_PICKUP_COLLISION, variant};
|
||||
return collision_callbacks_run(*this, collider, isLow, callbacks, &Entity_Pickup::collision_react);
|
||||
#else
|
||||
return collision_react(collider, isLow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// HandleCollision's own code.
|
||||
bool Entity_Pickup::collision_react(Entity* collider, bool isLow)
|
||||
{
|
||||
if (variant == PICKUP_COLLECTIBLE && megaChestCollectible[0] && g_forceCollideDepth == 0) return true;
|
||||
Entity* megaPartner = variant == PICKUP_COLLECTIBLE ? megaChestCollectible[1].get() : nullptr;
|
||||
@@ -2659,8 +2698,18 @@ void Entity_Pickup::PlayPickupSound()
|
||||
if (sound) pickup_sound_play(sound);
|
||||
}
|
||||
|
||||
// 006e8380 How many coins a coin is worth, 0 for anything else.
|
||||
// 006e8380 How many coins a coin is worth, 0 for anything else. A mod's MC_PICKUP_GET_COIN_VALUE may set a coin's.
|
||||
int Entity_Pickup::GetCoinValue()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PickupGetCoinValue", MC_PICKUP_GET_COIN_VALUE, subtype};
|
||||
if (variant == PICKUP_COIN) return callback_integer_run(lua_engine_get(), run, coin_worth(), this);
|
||||
#endif
|
||||
return coin_worth();
|
||||
}
|
||||
|
||||
// GetCoinValue without mods, as Ultra Greed's search for coins reads it.
|
||||
int Entity_Pickup::coin_worth()
|
||||
{
|
||||
return variant == PICKUP_COIN && subtype >= COIN_PENNY && subtype <= COIN_GOLDEN ? COIN_VALUES[subtype] : 0;
|
||||
}
|
||||
|
||||
@@ -230,6 +230,7 @@ struct Entity_Pickup : Entity
|
||||
void PlayDropSound();
|
||||
void PlayPickupSound();
|
||||
int GetCoinValue();
|
||||
int coin_worth();
|
||||
bool CanPickupShopItem(Entity_Player& player);
|
||||
void TriggerShopPurchase(Entity_Player& player, int spentMoney);
|
||||
uint8_t empty_pedestal();
|
||||
@@ -248,6 +249,7 @@ struct Entity_Pickup : Entity
|
||||
static void load_collectible_gfx(ANM2& itemSprite, int layerId, int collectibleId, uint32_t seed, bool isBlind);
|
||||
|
||||
private:
|
||||
bool collision_react(Entity* collider, bool isLow);
|
||||
void appear_start();
|
||||
bool keeper_flies_update();
|
||||
void target_position_update();
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
#include "level/room_special.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr int COLLECTIBLE_KEEPERS_SACK = 716;
|
||||
constexpr int ACHIEVEMENT_SHOP_SPENDING = 582;
|
||||
@@ -334,9 +337,12 @@ static bool deal_health_pay(Entity_Player& player, int price)
|
||||
|
||||
// 006e84d0 Pays for a bought ware (Entity_Pickup::TriggerShopPurchase): coins less the Coupon wisps, which burn, or
|
||||
// the deal's health, which counts as devil damage. A player without health takes the other deals away. A ware bought
|
||||
// with Restock or in Greed mode restocks its shop slot.
|
||||
// with Restock or in Greed mode restocks its shop slot. MC_POST_PICKUP_SHOP_PURCHASE follows.
|
||||
void Entity_Pickup::TriggerShopPurchase(Entity_Player& player, int spentMoney)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
int askedMoney = spentMoney;
|
||||
#endif
|
||||
if (spentMoney == 0) spentMoney = price;
|
||||
if (spentMoney != 0)
|
||||
{
|
||||
@@ -366,6 +372,10 @@ void Entity_Pickup::TriggerShopPurchase(Entity_Player& player, int spentMoney)
|
||||
g_game->playerManager.FirstCollectibleOwner(COLLECTIBLE_RESTOCK, LAZARUS_SHARE_CHECK) || g_game->IsGreedMode();
|
||||
if (variant != PICKUP_COLLECTIBLE && spentMoney != 0 && isRestocked && room.roomType == ROOM_SHOP)
|
||||
room_restock_trigger(room, room.GetGridIndex(pos), shopItemId);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PostPickupShopPurchase", MC_POST_PICKUP_SHOP_PURCHASE, variant};
|
||||
callback_notify(lua_engine_get(), run, this, &player, askedMoney);
|
||||
#endif
|
||||
}
|
||||
|
||||
// A player without health taking a devil deal: the room's other deals vanish in a poof, and on the Dark Room's start
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
#include "level/room_special.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/items.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
// The run's state flags of a broken or jammed donation machine, and of one blown up.
|
||||
// The tainted character Home's closet holds for each regular character.
|
||||
@@ -284,9 +289,14 @@ static Vector throw_velocity_get(const Vector& from, RNG* rng)
|
||||
|
||||
// 00815ae0 (Room::ShopRestockFull) Restocks a shop or black market: forgets the bought-out slots, chooses its wares
|
||||
// again, takes away every ware still for sale and spawns each shop spot of the room's layout anew in a poof, pushing
|
||||
// any pickup lying there aside. Elsewhere the first player rolls the room's pedestals with the D6.
|
||||
// any pickup lying there aside. Elsewhere the first player rolls the room's pedestals with the D6. Mods'
|
||||
// MC_PRE_RESTOCK_SHOP may cancel it, and MC_POST_RESTOCK_SHOP follows.
|
||||
void room_shop_restock_full()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!shop_restock_pre(RESTOCK_FULL)) return;
|
||||
ScopeExit post{[] { shop_restock_post(RESTOCK_FULL); }};
|
||||
#endif
|
||||
Room& room = *g_game->room;
|
||||
if (room.roomType != ROOM_SHOP && room.roomType != ROOM_BLACK_MARKET)
|
||||
{
|
||||
@@ -540,6 +550,9 @@ void Entity_Slot::Init(int entityType, int entityVariant, int entitySubType, uin
|
||||
}
|
||||
entityGridCollisionClass = GRIDCOLL_NONE;
|
||||
timeout = 0;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"PostSlotInit", MC_POST_SLOT_INIT, entityVariant}, (Entity*)this);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 00665630 Shows the coins the Revive Machine still asks for on its two digit layers.
|
||||
@@ -560,19 +573,42 @@ void Entity_Slot::counter_show(int count)
|
||||
sprite.SetLayerFrame(3, count % DIGIT_BASE);
|
||||
}
|
||||
|
||||
// 00665370 Draws the slot, and a shell game's prize while it plays.
|
||||
void Entity_Slot::Render(const Vector& offset)
|
||||
// 00665370 Draws the slot, and a shell game's prize while it plays. Mods' MC_PRE_SLOT_RENDER may skip it or move it,
|
||||
// and MC_POST_SLOT_RENDER follows.
|
||||
void Entity_Slot::Render(const Vector& renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<Vector> moved = render_pre_run({"PreSlotRender", MC_PRE_SLOT_RENDER, variant}, this, renderOffset);
|
||||
if (!moved) return;
|
||||
const Vector& offset = *moved;
|
||||
#else
|
||||
const Vector& offset = renderOffset;
|
||||
#endif
|
||||
Entity::Render(offset);
|
||||
bool isShellGame = variant == SLOT_SHELL_GAME || variant == SLOT_HELL_GAME;
|
||||
if (isShellGame && prizeAnm2.animState.animData && prizeAnm2.animState.isPlaying)
|
||||
prizeAnm2.Render(SpriteDraw{renderPosition, {}, {}});
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"PostSlotRender", MC_POST_SLOT_RENDER, variant}, (Entity*)this, offset);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 00665500 Sets the collectible a slot pays out, shown on the Hell Game's prize layer or the Crane Game's glass (a
|
||||
// question mark under Curse of the Blind).
|
||||
// question mark under Curse of the Blind). Mods' MC_PRE_SLOT_SET_PRIZE_COLLECTIBLE may cancel or change it, and
|
||||
// MC_POST_SLOT_SET_PRIZE_COLLECTIBLE follows.
|
||||
void Entity_Slot::SetPrizeType(int collectibleId)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
LuaEngine& engine = lua_engine_get();
|
||||
if (callback_run(engine, {"PreSlotSetPrize", MC_PRE_SLOT_SET_PRIZE_COLLECTIBLE, variant}, (Entity*)this,
|
||||
collectibleId))
|
||||
{
|
||||
bool isCancelled = lua_isboolean(engine.state, -1) && !lua_toboolean(engine.state, -1);
|
||||
if (lua_isnumber(engine.state, -1)) collectibleId = (int)lua_tonumber(engine.state, -1);
|
||||
lua_pop(engine.state, 1);
|
||||
if (isCancelled) return;
|
||||
}
|
||||
#endif
|
||||
prizeCollectible = collectibleId;
|
||||
bool isBlind = g_game->GetCurses() & CURSE_OF_BLIND;
|
||||
if (variant == SLOT_HELL_GAME)
|
||||
@@ -585,6 +621,10 @@ void Entity_Slot::SetPrizeType(int collectibleId)
|
||||
Entity_Pickup::load_collectible_gfx(sprite, CRANE_GAME_PRIZE_LAYER, prizeCollectible, dropRNG._seed, isBlind);
|
||||
sprite.LoadGraphics();
|
||||
}
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(engine, {"PostSlotSetPrize", MC_POST_SLOT_SET_PRIZE_COLLECTIBLE, variant}, (Entity*)this,
|
||||
collectibleId);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 006657a0 (an overload Ghidra names Entity_Slot::HandleCollision) Throws pickups out of the slot, each at a velocity
|
||||
@@ -1697,7 +1737,20 @@ void Entity_Slot::closet_effects_update()
|
||||
// 0065d950 Runs a slot each frame: its appearance, its spot, a Rotten Beggar's first splat, a Bomb Bum's Troll Bombs,
|
||||
// the slot machine's roll once its spin ends, the Crane Game and Confessional prizes, and the payout once a payment's
|
||||
// animation is done. A shell game shuffles with a sound, and touches count while a player keeps touching it.
|
||||
// Mods' MC_PRE_SLOT_UPDATE may leave only Entity's update, and MC_POST_SLOT_UPDATE follows the slot's own.
|
||||
void Entity_Slot::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreSlotUpdate", MC_PRE_SLOT_UPDATE, variant}, false, (Entity*)this)) return Entity::Update();
|
||||
update_frame();
|
||||
callback_notify(lua_engine_get(), {"PostSlotUpdate", MC_POST_SLOT_UPDATE, variant}, (Entity*)this);
|
||||
#else
|
||||
update_frame();
|
||||
#endif
|
||||
}
|
||||
|
||||
// Update's own code.
|
||||
void Entity_Slot::update_frame()
|
||||
{
|
||||
if (variant == SLOT_CRANE_GAME && state != SLOT_STATE_BROKEN && prizeCollectible == 0)
|
||||
SetPrizeType(g_game->itemPool.GetCollectible(POOL_CRANE_GAME, dropRNG._seed, 0, COLLECTIBLE_BUDDY_IN_A_BOX, 0));
|
||||
@@ -2079,6 +2132,10 @@ static void beths_essence_wisp_add(Entity_Player& player, const Vector& position
|
||||
// behind the pair when it is to swap with another pair. The costumes are then rebuilt.
|
||||
static void costumes_shuffle(Entity_Player& player, uint32_t seed)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (costumes_shuffle_is_cancelled(player, seed)) return;
|
||||
ScopeExit shufflePost = {[&] { costumes_shuffle_post(player, seed); }};
|
||||
#endif
|
||||
constexpr uint32_t DRESSER_SHUFFLE_SHIFT = 19;
|
||||
std::vector<CostumeSpriteDesc>& costumes = player.costumeSpriteDescs;
|
||||
int count = (int)costumes.size();
|
||||
@@ -2138,8 +2195,19 @@ void Entity_Slot::dresser_open(Entity_Player& player)
|
||||
|
||||
// 006627e0 A player touching an idle slot pays it, which makes it the slot's target, may give Beth's Essence a wisp
|
||||
// for a beggar, and starts the slot's payment. A player touching Mom's dresser opens it. Touches are counted while a
|
||||
// player keeps touching. Enemies and bombs pass through a slot.
|
||||
bool Entity_Slot::HandleCollision(Entity* collider, bool)
|
||||
// player keeps touching. Enemies and bombs pass through a slot. REPENTOGON's collision callbacks run around it.
|
||||
bool Entity_Slot::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollisionCallbacks callbacks = {"PreSlotCollision", MC_PRE_SLOT_COLLISION, MC_POST_SLOT_COLLISION, variant, false};
|
||||
return collision_callbacks_run(*this, collider, isLow, callbacks, &Entity_Slot::collision_react);
|
||||
#else
|
||||
return collision_react(collider, isLow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// HandleCollision's own code.
|
||||
bool Entity_Slot::collision_react(Entity* collider, bool)
|
||||
{
|
||||
bool isPlayer = collider->type == ENTITY_PLAYER;
|
||||
if (variant == SLOT_MOMS_DRESSER && isPlayer && collider->variant == PLAYER_VARIANT_PLAYER &&
|
||||
@@ -2306,7 +2374,20 @@ bool Entity_Slot::TakeDamage(float, uint64_t damageFlags, const EntityRef& sourc
|
||||
// heart from a Rotten Beggar, coins from a restock machine, coins or hearts from the blood donation machine, Mom's
|
||||
// dresser's clothes or a rare item, a Revive Machine's hearts or bomb in a boss room, and from the rest a trinket or
|
||||
// pill, a rare chest, or coins, hearts, keys and bombs (Lucky Toe giving one more, drop trinkets a matching pickup).
|
||||
// Mods' MC_PRE_SLOT_CREATE_EXPLOSION_DROPS may cancel them, and MC_POST_SLOT_CREATE_EXPLOSION_DROPS follows.
|
||||
void Entity_Slot::spawn_break_drops()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!boolean_run({"PreSlotDrops", MC_PRE_SLOT_CREATE_EXPLOSION_DROPS, variant}, true, (Entity*)this)) return;
|
||||
break_drops_create();
|
||||
callback_notify(lua_engine_get(), {"PostSlotDrops", MC_POST_SLOT_CREATE_EXPLOSION_DROPS, variant}, (Entity*)this);
|
||||
#else
|
||||
break_drops_create();
|
||||
#endif
|
||||
}
|
||||
|
||||
// spawn_break_drops's own code.
|
||||
void Entity_Slot::break_drops_create()
|
||||
{
|
||||
RNG* daemonsTail = nullptr;
|
||||
g_game->playerManager.RandomTrinketOwner(TRINKET_DAEMONS_TAIL, initSeed, &daemonsTail);
|
||||
|
||||
@@ -79,6 +79,9 @@ struct Entity_Slot : Entity
|
||||
void SetPrizeType(int prizeType);
|
||||
|
||||
private:
|
||||
bool collision_react(Entity* collider, bool isLow);
|
||||
void update_frame();
|
||||
void break_drops_create();
|
||||
void counter_show(int count);
|
||||
void revive_counter_show();
|
||||
void drops_spawn(const SlotDrop& drop);
|
||||
|
||||
@@ -41,6 +41,11 @@
|
||||
#include <cmath>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/items.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr int ACHIEVEMENT_HALO = 27;
|
||||
constexpr int ACTIVE_PICKUP_HOLD_FRAMES = 30;
|
||||
@@ -224,10 +229,10 @@ static bool is_action_met(ButtonAction action, int controllerIndex, ActionTest t
|
||||
return false;
|
||||
}
|
||||
|
||||
// A mod's answer to an action test through MC_INPUT_ACTION, asked only in a run.
|
||||
// A mod's answer to an action test through MC_INPUT_ACTION, asked only in a run (anywhere with REPENTOGON).
|
||||
static std::optional<bool> action_hook_run(Entity* entity, int hook, ButtonAction action)
|
||||
{
|
||||
if (g_manager->state != MANAGER_STATE_GAME || !g_luaEngine) return std::nullopt;
|
||||
if (!is_input_hook_asked()) return std::nullopt;
|
||||
return lua_engine_get().InputAction(entity, hook, action);
|
||||
}
|
||||
|
||||
@@ -354,6 +359,9 @@ bool Entity_Player::HasTimedItem()
|
||||
// Necromancer's Necronomicon.
|
||||
int Entity_Player::GetCollectibleMaxCharge(int collectibleId, int varData)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<int> charge = active_max_charge_hook(*this, collectibleId, varData)) return *charge;
|
||||
#endif
|
||||
constexpr int VARDATA_CHARGED[] = {263, 286, 348, 510};
|
||||
constexpr int D_INFINITY = 489;
|
||||
constexpr int SUMPTORIUM = 713;
|
||||
@@ -403,6 +411,9 @@ int Entity_Player::GetActiveMaxCharge(int slot)
|
||||
// 00791380 The charges an active slot needs before it can be used: one for the items that spend what they have.
|
||||
int Entity_Player::GetActiveMinUsableCharge(int slot)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<int> charge = active_min_charge_hook(*this, slot)) return *charge;
|
||||
#endif
|
||||
if (slot == ACTIVE_SLOT_POCKET2) return 0;
|
||||
if (slot == ACTIVE_SLOT_POCKET && activeItems[slot].item == COLLECTIBLE_RED_KEY &&
|
||||
g_game->challenge == CHALLENGE_RED_REDEMPTION)
|
||||
@@ -497,6 +508,10 @@ void Entity_Player::SetActiveCharge(int charge, int slot)
|
||||
// A filled Broken Glass Cannon mends. The charge added, negative when taken.
|
||||
int Entity_Player::AddActiveCharge(int charge, int slot, bool isFlashHud, bool isOvercharge, bool isForce)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
max_charge_cache_begin();
|
||||
ScopeExit cacheEnd = {max_charge_cache_end};
|
||||
#endif
|
||||
if (slot < 0)
|
||||
{
|
||||
int added = 0;
|
||||
@@ -752,9 +767,12 @@ static void esau_jr_swap(Entity_Player& player, uint32_t slot)
|
||||
|
||||
// 007ac7e0 Spends an active slot's charge after a use, its battery charge becoming the charge. Bethany pays what was
|
||||
// missing in soul or blood charges, 9 Volt gives one back. Esau Jr. swaps with its stored player (making one first),
|
||||
// Flip moves the item, the rest is the after use.
|
||||
// Flip moves the item, the rest is the after use. MC_POST_DISCHARGE_ACTIVE_ITEM follows.
|
||||
void Entity_Player::DischargeActiveItem(uint32_t slot, bool isRemoved)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
ScopeExit dischargedPost = {[=, this] { active_discharge_post(*this, slot, isRemoved); }};
|
||||
#endif
|
||||
if (slot >= (uint32_t)ACTIVE_SLOT_COUNT || activeItems[slot].item == 0) return;
|
||||
|
||||
ActiveItemDesc& active = activeItems[slot];
|
||||
@@ -831,7 +849,7 @@ static void trinket_active_use(Entity_Player& player, int item)
|
||||
}
|
||||
|
||||
// M!: the spent active turns into another, weighed toward the low qualities (a glitched one with TMTRAINER), with more
|
||||
// copies sometimes fully charged.
|
||||
// copies sometimes fully charged. A mod may pick the new active or keep the old one.
|
||||
static void m_trinket_swap(Entity_Player& player)
|
||||
{
|
||||
constexpr int QUALITY_WEIGHTS[] = {5, 4, 3, 2, 1};
|
||||
@@ -850,6 +868,16 @@ static void m_trinket_swap(Entity_Player& player)
|
||||
swapped = picker.PickOutcome(rng_make(rng.Next(), DEFAULT_SHIFT_INDEX));
|
||||
}
|
||||
if (swapped == 0) return;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
LuaEngine& engine = lua_engine_get();
|
||||
if (callback_run(engine, {"PreMMorphActive", MC_PRE_M_MORPH_ACTIVE, std::nullopt}, &player, swapped))
|
||||
{
|
||||
if (is_result_false(engine.state)) swapped = 0;
|
||||
else if (lua_isinteger(engine.state, -1)) swapped = (int)lua_tointeger(engine.state, -1);
|
||||
lua_pop(engine.state, 1);
|
||||
}
|
||||
if (swapped == 0) return;
|
||||
#endif
|
||||
|
||||
int copies = player.GetTrinketMultiplier(TRINKET_M);
|
||||
player.RemoveCollectible(player.activeItems[ACTIVE_SLOT_PRIMARY].item, false, ACTIVE_SLOT_PRIMARY, true);
|
||||
@@ -1999,15 +2027,28 @@ static void item_effect_run(ItemUse& use)
|
||||
|
||||
// 005b39d0 Uses an active item: co-op babies copy the main player's first use since a discharge, the item is raised
|
||||
// with its sound, its own effect runs, mods see the use, its room effect and costume go on and the stats are reread.
|
||||
// What its slot does next: discharge unless an item state holds the item, and remove it if a mod asks.
|
||||
// What its slot does next: discharge unless an item state holds the item, and remove it if a mod asks. REPENTOGON's
|
||||
// MC_PRE_USE_ITEM may also keep the charge, and its MC_POST_USE_ITEM follows a use that was not prevented.
|
||||
UseResult Entity_Player::UseActiveItem(const ActiveUse& request)
|
||||
{
|
||||
UseResult result;
|
||||
if (request.item == 0 || request.slot >= ACTIVE_SLOT_COUNT) return result;
|
||||
if (request.item == 0 || request.slot >= ACTIVE_SLOT_COUNT) return {};
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<UseResult> prevented = active_use_pre(*this, request)) return *prevented;
|
||||
UseResult result = active_item_use(request);
|
||||
active_use_post(*this, request, result);
|
||||
return result;
|
||||
#else
|
||||
LuaItemUse preUse = {.player = this, .rng = &GetCollectibleRNG(request.item), .activeSlot = request.slot,
|
||||
.collectibleType = request.item, .customVarData = request.varData, .useFlags = request.flags};
|
||||
if (lua_engine_get().PreUseItem(preUse)) return result;
|
||||
if (lua_engine_get().PreUseItem(preUse)) return {};
|
||||
return active_item_use(request);
|
||||
#endif
|
||||
}
|
||||
|
||||
// UseActiveItem's own code once the mods let the use happen.
|
||||
UseResult Entity_Player::active_item_use(const ActiveUse& request)
|
||||
{
|
||||
UseResult result;
|
||||
if (variant == PLAYER_VARIANT_PLAYER && !isActiveUsed)
|
||||
for (Entity_Player* each : g_game->playerManager.playerList)
|
||||
if (each->variant == PLAYER_VARIANT_COOP_BABY) each->UseActiveItem({.item = request.item});
|
||||
@@ -2776,6 +2817,10 @@ void Entity_Player::update_suplex()
|
||||
// keeps is never set.
|
||||
void Entity_Player::ControlActiveItem(int slot)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
max_charge_cache_begin();
|
||||
ScopeExit cacheEnd = {max_charge_cache_end};
|
||||
#endif
|
||||
if (variant == PLAYER_VARIANT_COOP_BABY || isCoopGhost || IsHologram() || playerType == PLAYER_THESOUL_B) return;
|
||||
ButtonAction action = slot != ACTIVE_SLOT_PRIMARY ? ACTION_PILL_CARD : twin_button_action(*this, TWIN_BUTTON_ITEM);
|
||||
ItemButton button = {.isPressed = input_is_action_pressed(action, controllerIndex, this),
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
#include <deque>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The achievement a character entry carries when nothing unlocks it at all.
|
||||
constexpr int PLAYER_NEVER_UNLOCKED = -2;
|
||||
@@ -175,7 +178,8 @@ static void void_item_absorb(Entity_Player& player, RNG& rng, const VoidedPassiv
|
||||
}
|
||||
|
||||
// The Void: every active it ate fires again (Breath of Life as a blink of invincibility), then it eats the item held
|
||||
// up and every free pedestal item (a co-op choice is put back rolled from the boss pool). Apollyon's Birthright may
|
||||
// up and every free pedestal item (a co-op choice is put back rolled from the boss pool), unless a mod's
|
||||
// MC_PRE_PICKUP_VOIDED spares it. Apollyon's Birthright may
|
||||
// first throw out a passive it ate. Book of Virtues adds a wisp per eaten active, and eating starts a challenge room.
|
||||
static void void_use(ItemUse& use)
|
||||
{
|
||||
@@ -188,7 +192,10 @@ static void void_use(ItemUse& use)
|
||||
{
|
||||
if (entity->type != ENTITY_PICKUP || entity->isDead) continue;
|
||||
auto* pickup = static_cast<Entity_Pickup*>(entity);
|
||||
if (pickup->CanReroll() && pickup->variant == PICKUP_COLLECTIBLE && !pickup->IsShopItem())
|
||||
if (!pickup->CanReroll() || pickup->variant != PICKUP_COLLECTIBLE || pickup->IsShopItem()) continue;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!boolean_run({"PrePickupVoided", MC_PRE_PICKUP_VOIDED, pickup->variant}, true, pickup, false)) continue;
|
||||
#endif
|
||||
pedestals.push_back(pickup);
|
||||
}
|
||||
QueueItemData queued = player.queuedItem;
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
#include "level/room_grid.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr int ALABASTER_BOX_DELAY = 30;
|
||||
constexpr int ALABASTER_EXTRA_WISPS = 4;
|
||||
@@ -845,7 +848,8 @@ static void magic_skin_use(ItemUse& use)
|
||||
}
|
||||
|
||||
// Compost: every blue fly and spider doubled (a random one of the two when there are none), and every free pickup of
|
||||
// the room turned into one. Book of Virtues' wisp counts the pickups composted.
|
||||
// the room turned into one, unless a mod's MC_PRE_PICKUP_COMPOSTED spares it. Book of Virtues' wisp counts the pickups
|
||||
// composted.
|
||||
static void compost_use(ItemUse& use)
|
||||
{
|
||||
Entity_Player& player = use.player;
|
||||
@@ -876,6 +880,9 @@ static void compost_use(ItemUse& use)
|
||||
? static_cast<Entity_Pickup*>(entities[i])
|
||||
: nullptr;
|
||||
if (!pickup || pickup->IsShopItem() || !pickup->CanReroll()) continue;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!boolean_run({"PrePickupComposted", MC_PRE_PICKUP_COMPOSTED, pickup->variant}, true, pickup)) continue;
|
||||
#endif
|
||||
pickup->Remove();
|
||||
composted++;
|
||||
if (rng.RandomInt(2) == 0) player.AddBlueSpider(pickup->pos);
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
// The items a player's bombs ask about (Lua's CollectibleType and TrinketType).
|
||||
constexpr int COLLECTIBLE_BOBBY_BOMB = 125;
|
||||
@@ -295,6 +299,9 @@ void Entity_Player::update_bomb_input()
|
||||
bool isGiga = numGigaBombs > 0;
|
||||
if (numBombs < 1 && !isFree && HasCollectible(COLLECTIBLE_BLOOD_BOMBS)) isFree = blood_bomb_pay(*this);
|
||||
if (numBombs < 1 && !isFree) return;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (player_bomb_use_is_cancelled(*this)) return;
|
||||
#endif
|
||||
|
||||
bombPlaceDelay = HasCollectible(COLLECTIBLE_FAST_BOMBS) ? BOMB_DELAY_FAST : BOMB_DELAY;
|
||||
DeathmatchManager& versus = g_game->deathmatchManager;
|
||||
@@ -340,6 +347,9 @@ void Entity_Player::update_bomb_input()
|
||||
}
|
||||
}
|
||||
bomb.Update();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
player_bomb_post_use(*this, bomb);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -415,5 +425,8 @@ Entity_Bomb* Entity_Player::FireBomb(Vector position, Vector throwVelocity, Enti
|
||||
laser.spawnerEntity = this;
|
||||
}
|
||||
if (bomb.IsRocket()) bomb.Update();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostFireBomb", MC_POST_FIRE_BOMB, &bomb);
|
||||
#endif
|
||||
return &bomb;
|
||||
}
|
||||
@@ -28,6 +28,9 @@
|
||||
#include <bit>
|
||||
#include <span>
|
||||
#include <string>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The room transition's flags Tarot Cloth's Hermit and Stars set.
|
||||
enum CardTransitionFlag : uint32_t
|
||||
@@ -1297,7 +1300,7 @@ static void black_rune_stats_raise(Entity_Player& player)
|
||||
|
||||
// Black Rune: the item held up and every free pedestal item are eaten for stat ups (a co-op pedestal choice is put back
|
||||
// rerolled from the boss pool), every other free pickup turns into a blue fly, the Necronomicon hurts the room and a
|
||||
// challenge room's waves start if anything was eaten.
|
||||
// challenge room's waves start if anything was eaten. A mod's MC_PRE_PICKUP_VOIDED may spare a pickup.
|
||||
static PocketUseEnd black_rune_use(PocketUse& use)
|
||||
{
|
||||
Entity_Player& player = use.player;
|
||||
@@ -1317,6 +1320,9 @@ static PocketUseEnd black_rune_use(PocketUse& use)
|
||||
{
|
||||
auto* pickup = entity->type == ENTITY_PICKUP ? static_cast<Entity_Pickup*>(entity) : nullptr;
|
||||
if (!pickup || pickup->IsShopItem() || pickup->isDead || !pickup->CanReroll()) continue;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!boolean_run({"PrePickupVoided", MC_PRE_PICKUP_VOIDED, pickup->variant}, true, pickup, true)) continue;
|
||||
#endif
|
||||
if (pickup->variant == PICKUP_COLLECTIBLE && pickup->subtype != 0 && pickup->timeout < 1)
|
||||
{
|
||||
isEaten = true;
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <ranges>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr uint64_t DEAD_BIRD_VERSUS_MS = 30001;
|
||||
constexpr int DEAD_BIRD_VERSUS_FRAMES = 450;
|
||||
@@ -625,6 +628,10 @@ void Entity_Player::RemoveSkinCostume()
|
||||
// Tainted Forgotten is dropped by its soul and gets its weapons back. The extra layer shows again.
|
||||
void Entity_Player::Revive()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (player_revive_is_cancelled(*this)) return;
|
||||
ScopeExit revivePost = {[this] { player_revive_post(*this); }};
|
||||
#endif
|
||||
if (!isDead) return;
|
||||
|
||||
isDead = false;
|
||||
@@ -1298,6 +1305,9 @@ void cambion_conception_hit(Entity_Player& player)
|
||||
int sound = SOUND_CAMBION_CONCEPTION;
|
||||
seed_fart_sound_override(&sound);
|
||||
g_manager->sfxManager.Play(sound);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (player_birth_is_cancelled(player, flag, BIRTH_CAMBION)) break;
|
||||
#endif
|
||||
player.conceptionFamiliarFlags |= flag;
|
||||
player.cacheFlags |= CACHE_FAMILIARS;
|
||||
player.EvaluateItems();
|
||||
|
||||
@@ -17,6 +17,11 @@
|
||||
#include "level/room_grid.h"
|
||||
#include <algorithm>
|
||||
#include <numeric>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/items.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
// The collectibles and null items losing an item names (Lua's CollectibleType and NullItemID).
|
||||
enum RemovalItem : int
|
||||
@@ -140,11 +145,16 @@ static void pocket_excess_drop(Entity_Player& player)
|
||||
|
||||
uint32_t seed = Random();
|
||||
Vector spot = room_free_pickup_position_find({.position = player.pos, .step = REMOVED_DROP_STEP});
|
||||
g_game->Spawn({.position = spot, .spawner = &player, .subType = pocket.id, .type = ENTITY_PICKUP,
|
||||
.variant = pocket.type == POCKET_CARD ? PICKUP_TAROTCARD : PICKUP_PILL, .seed = seed});
|
||||
int variant = pocket.type == POCKET_CARD ? PICKUP_TAROTCARD : PICKUP_PILL;
|
||||
[[maybe_unused]] Entity* dropped = g_game->Spawn({.position = spot, .spawner = &player, .subType = pocket.id,
|
||||
.type = ENTITY_PICKUP, .variant = variant, .seed = seed});
|
||||
[[maybe_unused]] PocketItem lost = pocket;
|
||||
std::move(player.pocketItems.begin() + slot + 1, player.pocketItems.end(), player.pocketItems.begin() + slot);
|
||||
player.pocketItems.back() = {};
|
||||
excess--;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
pocket_post_drop(player, lost.type, lost.id, slot, dropped);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,9 +217,13 @@ static void collectible_last_removed(Entity_Player& player, int collectibleId)
|
||||
|
||||
// 0078ff90 What losing a collectible undoes: Leo's and Magic Mushroom's count towards their form, Dead Cat's lives, and
|
||||
// Heartbreak's broken hearts. With the last copy gone, the item's own loss runs (see collectible_last_removed), and an
|
||||
// effect that clears on removal ends. Netplay's stats are offline.
|
||||
// effect that clears on removal ends. Netplay's stats are offline. MC_POST_TRIGGER_COLLECTIBLE_REMOVED follows.
|
||||
void Entity_Player::TriggerCollectibleRemoved(int collectibleId)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollectibleRemoval removal = std::exchange(collectibleRemoval, REMOVAL_KIND_FORM);
|
||||
ScopeExit removedPost = {[=, this] { collectible_removed_post(*this, collectibleId, removal); }};
|
||||
#endif
|
||||
if (collectibleId == REMOVAL_MAGIC_MUSHROOM || collectibleId == REMOVAL_LEO)
|
||||
IncrementPlayerFormCounter(PLAYER_FORM_STOMPY, -1);
|
||||
else if (collectibleId == REMOVAL_DEAD_CAT)
|
||||
@@ -499,8 +513,11 @@ static void null_effect_end(Entity_Player& player, int nullItem)
|
||||
// trinket's effect takes its costume off (Faded Polaroid's fading colour too). A collectible's doubled costumes come
|
||||
// off, Mega Mush shrinks back, its costume comes off unless the item keeps it, and its own end runs (see
|
||||
// collectible_effect_end).
|
||||
void Entity_Player::trigger_collectible_effect_removed(ItemConfig_Item* item, int)
|
||||
void Entity_Player::trigger_collectible_effect_removed(ItemConfig_Item* item, [[maybe_unused]] int count)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
ScopeExit removedPost = {[&] { player_effect_post_remove(*this, item, count); }};
|
||||
#endif
|
||||
if (item->type == ITEM_NULL) return null_effect_end(*this, item->id);
|
||||
if (item->type == ITEM_TRINKET)
|
||||
{
|
||||
@@ -569,6 +586,9 @@ void Entity_Player::RemoveCollectible(int type, bool isIgnoreModifiers, int acti
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
collectibleRemoval = isRemoveFromForm ? REMOVAL_KIND_FORM : REMOVAL_KIND_KEEP_FORM;
|
||||
#endif
|
||||
TriggerCollectibleRemoved(type);
|
||||
doubled_costume_remove(*this, type);
|
||||
if (type >= 0 && collectibleCounts[type] < 1)
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
#include "engine/seeds.h"
|
||||
#include <algorithm>
|
||||
#include <optional>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/items.h"
|
||||
#endif
|
||||
|
||||
// The pickups the bag holds (REPENTOGON's BagOfCraftingPickup), in recipes.xml's symbol order.
|
||||
enum BagPickup : uint8_t
|
||||
@@ -212,7 +215,8 @@ static std::optional<std::array<uint8_t, 2>> bag_ingredients_get(int variant, in
|
||||
|
||||
// 007d5170 Takes a pickup the bag's swing touched into Tainted Cain's bag: its one or two bag pickups push out the
|
||||
// oldest when full, it poofs (black when Book of Belial turned a red heart black), dies into its "Collect" animation
|
||||
// and is paid for, and a full bag works out what it crafts. Whether the bag took it.
|
||||
// and is paid for, and a full bag works out what it crafts. Whether the bag took it. Mods'
|
||||
// MC_TRY_ADD_TO_BAG_OF_CRAFTING may change its ingredients, and MC_POST_ADD_TO_BAG_OF_CRAFTING follows.
|
||||
bool Entity_Player::bag_of_crafting_collect(Entity_Pickup* pickup)
|
||||
{
|
||||
int variant = pickup->variant;
|
||||
@@ -228,10 +232,16 @@ bool Entity_Player::bag_of_crafting_collect(Entity_Pickup* pickup)
|
||||
isBlackened = true;
|
||||
}
|
||||
std::optional<std::array<uint8_t, 2>> ingredients = bag_ingredients_get(variant, subType);
|
||||
if (!ingredients) return false;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<BagIngredients> added = bag_ingredients_hook(*this, *pickup, ingredients);
|
||||
if (!added) return false;
|
||||
#else
|
||||
std::optional<std::array<uint8_t, 2>>& added = ingredients;
|
||||
if (!added) return false;
|
||||
#endif
|
||||
|
||||
size_t count = std::ranges::find(bagOfCraftingContent, BAG_NONE) - bagOfCraftingContent.begin();
|
||||
for (uint8_t ingredient : *ingredients)
|
||||
for (uint8_t ingredient : *added)
|
||||
{
|
||||
if (ingredient == BAG_NONE) continue;
|
||||
if (count >= BAG_OF_CRAFTING_SIZE)
|
||||
@@ -265,6 +275,9 @@ bool Entity_Player::bag_of_crafting_collect(Entity_Pickup* pickup)
|
||||
bagOfCraftingOutput = output.output;
|
||||
bagOfCraftingPool = output.pool;
|
||||
g_game->hud.InvalidateCraftingItem(this);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bag_add_post(*this, *pickup);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,10 @@
|
||||
#include "level/room_grid.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/entities.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
#include <format>
|
||||
|
||||
constexpr int COLLECTIBLE_BINKY = 438;
|
||||
@@ -941,6 +945,11 @@ static void astral_projection_start(Entity_Player& player)
|
||||
// grunt and the Hit animation, starts the invincibility frames, and kills the player out of hearts. True when it hurt.
|
||||
bool Entity_Player::TakeDamage(float damage, uint64_t damageFlags, const EntityRef& source, int damageCountdown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<bool> isHurt = player_damage_hook(*this, {source, damage, nullptr, damageCountdown, damageFlags}))
|
||||
return *isHurt;
|
||||
if (player_damage_is_cancelled(*this, damage, damageFlags, source, damageCountdown)) return false;
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
Entity_Player* twin = twin_get();
|
||||
|
||||
@@ -1010,7 +1019,12 @@ bool Entity_Player::TakeDamage(float damage, uint64_t damageFlags, const EntityR
|
||||
AddEntityFlags(FLAG_NO_DAMAGE_BLINK);
|
||||
return false;
|
||||
}
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!entity_damage_pre(*this, {source, damage, &amount, damageCountdown, damageFlags})) return false;
|
||||
isPenalized = !(damageFlags & DAMAGE_UNPENALIZED);
|
||||
#else
|
||||
if (!lua_engine_get().EntityTakeDamage(this, (float)amount, damageFlags, source, damageCountdown)) return false;
|
||||
#endif
|
||||
if (try_end_astral_projection()) return false;
|
||||
if (playerType == PLAYER_JACOB_B && source.type == ENTITY_DARK_ESAU)
|
||||
{
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
#include <algorithm>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
|
||||
constexpr float DEATH_FRICTION = 0.6f;
|
||||
@@ -570,8 +574,12 @@ static void soul_of_lazarus_revive(Entity_Player& holder, std::vector<Entity_Pla
|
||||
auto card = std::ranges::find_if(holder.pocketItems, isCard);
|
||||
if (card != holder.pocketItems.end())
|
||||
{
|
||||
[[maybe_unused]] int slot = (int)(card - holder.pocketItems.begin());
|
||||
std::shift_left(card, holder.pocketItems.end(), 1);
|
||||
holder.pocketItems.back() = {0, POCKET_CARD};
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
pocket_post_remove(holder, POCKET_CARD, CARD_SOUL_LAZARUS, slot);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
for (Entity_Player* player : players)
|
||||
@@ -720,6 +728,10 @@ static void revived_players_settle(std::vector<Entity_Player*>& players, int old
|
||||
// Missing Poster says so in a Sacrifice Room, where dying with it unlocks the Lost.
|
||||
bool Entity_Player::TriggerDeath(bool isCheckOnly)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!isCheckOnly)
|
||||
if (std::optional<bool> isRevived = player_death_pre_trigger(*this)) return *isRevived;
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
|
||||
if (variant == PLAYER_VARIANT_COOP_BABY)
|
||||
@@ -740,6 +752,9 @@ bool Entity_Player::TriggerDeath(bool isCheckOnly)
|
||||
Revival revival = revival_find(*this, players);
|
||||
if (isCheckOnly) return revival.kind == REVIVAL_POSTER_LOCKED ? isSacrificeRoom : revival.kind != REVIVAL_NONE;
|
||||
revival_apply(revival, players);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (revival.kind == REVIVAL_NONE || revival.kind == REVIVAL_POSTER_LOCKED) player_death_post_check_revives(*this);
|
||||
#endif
|
||||
|
||||
for (Entity_Player* player : players)
|
||||
{
|
||||
@@ -961,6 +976,9 @@ void Entity_Player::death_update()
|
||||
// the longest walked, the after-images go, and a soul player of the Forgotten or Jacob leaves.
|
||||
void Entity_Player::room_exit(bool isKeepHolyMantle)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"PreRoomExit", MC_PRE_ROOM_EXIT, std::nullopt}, this, isKeepHolyMantle);
|
||||
#endif
|
||||
ItemConfig& items = g_manager->itemConfig;
|
||||
Game& game = *g_game;
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <span>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/stats.h"
|
||||
#endif
|
||||
|
||||
// The stat evaluation's constants: the tears formula, the base stats and the clamps that end it.
|
||||
constexpr float TEARS_CURVE_SCALE = 1.3f;
|
||||
@@ -259,6 +262,9 @@ static void fire_delay_evaluate(Entity_Player& p, const StatBonuses& bonus)
|
||||
if (effects.HasCollectibleEffect(COLLECTIBLE_MEGA_MUSH)) tears = tears - 1.9f;
|
||||
if (p.HasPlayerForm(PLAYER_FORM_CONJOINED)) tears = tears - 0.3f;
|
||||
if (p.coopBabyBuffTimers[COOP_BUFF_TEARS] > 0) tears = tears + 1;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
tears = stat_evaluate(p, tears, STAT_STAGE_TEARS_UP);
|
||||
#endif
|
||||
|
||||
float curve = std::sqrt(std::max(tears * TEARS_CURVE_SCALE + 1, 0.0f));
|
||||
float delay = std::max(TEARS_DELAY_BASE - curve * TEARS_DELAY_STEP - std::min(tears, 0.0f) * TEARS_DELAY_STEP,
|
||||
@@ -297,6 +303,9 @@ static void fire_delay_evaluate(Entity_Player& p, const StatBonuses& bonus)
|
||||
rate = glitched_stat_get(p, GLITCHED_TEARS) + rate;
|
||||
if (p.grantedCollectibleCountdown > 0) rate = rate + 1.5f;
|
||||
if (TemporaryEffect* camo = effects.GetNullEffect(NULLITEM_CAMO_BOOST)) rate = rate + (float)camo->count * 0.25f;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
rate = stat_evaluate(p, rate, STAT_STAGE_FLAT_TEARS);
|
||||
#endif
|
||||
|
||||
if (!has(245))
|
||||
{
|
||||
@@ -461,6 +470,9 @@ static void damage_evaluate(Entity_Player& p, const StatBonuses& bonus)
|
||||
damage = (float)effects.GetNullEffectNum(NULLITEM_WAVY_CAP_1) * 0.2f + (float)e(COLLECTIBLE_WAVY_CAP) * 0.2f + damage;
|
||||
if (ChallengeParam* challenge = g_game->challenge != 0 ? &g_manager->GetChallengeParams(g_game->challenge) : nullptr)
|
||||
damage = challenge->addDamage + damage;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
damage = stat_evaluate(p, damage, STAT_STAGE_DAMAGE_UP);
|
||||
#endif
|
||||
if (has(120) || effects.HasCollectibleEffect(120)) damage = damage * 0.9f - 0.4f;
|
||||
if (effects.HasCollectibleEffect(COLLECTIBLE_THE_NAIL))
|
||||
damage = (float)(e(COLLECTIBLE_THE_NAIL) + e(COLLECTIBLE_THE_NAIL)) + damage;
|
||||
@@ -494,6 +506,9 @@ static void damage_evaluate(Entity_Player& p, const StatBonuses& bonus)
|
||||
: damage + 5;
|
||||
damage = damage * character_damage_scale_get(p);
|
||||
if (p.variant == PLAYER_VARIANT_COOP_BABY && p.babySkin == BABY_BONE) damage = damage * 1.5f;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
damage = stat_evaluate(p, damage, STAT_STAGE_PRE_FLAT_DAMAGE);
|
||||
#endif
|
||||
damage = damage + character_damage_get(p);
|
||||
if (effects.HasNullEffect(NULLITEM_ESAU_JR)) damage = damage + 2;
|
||||
if (effects.HasCollectibleEffect(COLLECTIBLE_MEGA_MUSH)) damage = damage * 4;
|
||||
@@ -508,6 +523,9 @@ static void damage_evaluate(Entity_Player& p, const StatBonuses& bonus)
|
||||
if (has(513)) damage = damage + 0.1f;
|
||||
if (effects.HasNullEffect(NULLITEM_HUGE_GROWTH)) damage = damage + 7;
|
||||
if (p.HasWeaponType(WEAPON_BONE) && has(114)) damage = damage + 4;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
damage = stat_evaluate(p, damage, STAT_STAGE_FLAT_DAMAGE);
|
||||
#endif
|
||||
if (has(COLLECTIBLE_CROWN_OF_LIGHT) && effects.HasCollectibleEffect(COLLECTIBLE_CROWN_OF_LIGHT))
|
||||
damage = damage + damage;
|
||||
if (has(182)) damage = damage * 2.3f + 1;
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
#include "level/room_transition.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr int FORGOTTEN_SWAP_COOLDOWN = 15;
|
||||
constexpr int FORGOTTEN_SWAP_HOLD_COOLDOWN = 10;
|
||||
@@ -363,6 +366,10 @@ PocketItem& Entity_Player::GetPocketItem(int slot)
|
||||
// 007a4850 Removes the card or pill in a slot (-1 for the first), never a pocket active.
|
||||
void Entity_Player::RemovePocketItem(int slot)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
PocketItem removed = GetPocketItem(slot);
|
||||
ScopeExit removePost = {[this, removed, slot] { pocket_post_remove(*this, removed.type, removed.id, slot); }};
|
||||
#endif
|
||||
slot = pocket_slot_resolve(*this, slot);
|
||||
if (slot >= POCKET_SLOT_COUNT || pocketItems[slot].id == 0 || pocketItems[slot].type == POCKET_ACTIVE) return;
|
||||
pocket_slot_clear(*this, slot);
|
||||
@@ -375,12 +382,15 @@ void Entity_Player::DropPocketItem(int slot, Vector position)
|
||||
slot = pocket_slot_resolve(*this, slot);
|
||||
if (slot >= POCKET_SLOT_COUNT || pocketItems[slot].id == 0 || pocketItems[slot].type == POCKET_ACTIVE) return;
|
||||
|
||||
PocketItem& held = pocketItems[slot];
|
||||
PocketItem held = pocketItems[slot];
|
||||
int variant = held.type == POCKET_CARD ? PICKUP_TAROTCARD : PICKUP_PILL;
|
||||
Entity* pickup = g_game->Spawn({.position = position, .spawner = this, .subType = held.id, .type = ENTITY_PICKUP,
|
||||
.variant = variant, .seed = Random()});
|
||||
if (pickup) static_cast<Entity_Pickup*>(pickup)->collisionCooldown = DROPPED_POCKET_COOLDOWN;
|
||||
pocket_slot_clear(*this, slot);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
pocket_post_drop(*this, held.type, held.id, slot, pickup);
|
||||
#endif
|
||||
}
|
||||
|
||||
// The drop button's turn of the pockets: each filled pocket moves one slot forward and the first goes last.
|
||||
@@ -482,7 +492,11 @@ void Entity_Player::pockets_rotate()
|
||||
if (forgottenSwapFormCooldown > 0) forgottenSwapFormCooldown--;
|
||||
if (input_is_action_triggered(ACTION_DROP, controllerIndex, this))
|
||||
{
|
||||
if (!SwapForgottenForm(false, false))
|
||||
bool isSwapped = !SwapForgottenForm(false, false);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
isSwapped = isSwapped && !pocket_swap_is_cancelled(*this);
|
||||
#endif
|
||||
if (isSwapped)
|
||||
{
|
||||
pocket_items_rotate(*this);
|
||||
if (itemState == 0) active_items_rotate(*this);
|
||||
|
||||
@@ -35,6 +35,9 @@
|
||||
#include <SDL3/SDL_mouse.h>
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr int DUCT_TAPE_MODES = 4;
|
||||
constexpr float BODY_TURN_RATE = 0.3f;
|
||||
@@ -1955,8 +1958,12 @@ static void hud_bubble_render(PlayerHUD& hud, Vector at)
|
||||
// in front or behind, then its overlays (the co-op indicator, charge bars, status effect and the Void's hallucination
|
||||
// of its past walk) in the room's pass. A player following a target shows only a marker. Netplay's shadows and colors
|
||||
// are offline. The dashes' after-images draw first, fading.
|
||||
void Entity_Player::Render(const Vector& offset)
|
||||
void Entity_Player::Render(const Vector& drawOffset)
|
||||
{
|
||||
Vector offset = drawOffset;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!render_pre_run({"PrePlayerRender", MC_PRE_PLAYER_RENDER, variant}, this, offset)) return;
|
||||
#endif
|
||||
if (target)
|
||||
{
|
||||
FontSettings settings;
|
||||
@@ -2180,8 +2187,13 @@ void Entity_Player::render_back(const Vector& position)
|
||||
|
||||
// 0078dde0 Draws the body layers, the costumes' where they cover them, and the blood gush of a headless player, raised
|
||||
// over Jupiter's and Mega Mush's bodies. Flying costumes cover the body only while flying.
|
||||
void Entity_Player::RenderBody(const Vector& position)
|
||||
void Entity_Player::RenderBody(const Vector& drawPosition)
|
||||
{
|
||||
Vector position = drawPosition;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!player_part_pre_render(*this, position, RENDER_PART_BODY)) return;
|
||||
ScopeExit bodyPost = {[&] { player_part_post_render(*this, position, RENDER_PART_BODY); }};
|
||||
#endif
|
||||
if (!isVisible || IsFullSpriteRendering()) return;
|
||||
|
||||
bool isBodyRendered = false;
|
||||
@@ -2218,8 +2230,13 @@ void Entity_Player::RenderBody(const Vector& position)
|
||||
|
||||
// 0078dff0 Draws the head layers, the costumes' where they cover them, and the crowns of Dark Prince's Crown and Crown
|
||||
// of Light.
|
||||
void Entity_Player::RenderHead(const Vector& position)
|
||||
void Entity_Player::RenderHead(const Vector& drawPosition)
|
||||
{
|
||||
Vector position = drawPosition;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!player_part_pre_render(*this, position, RENDER_PART_HEAD)) return;
|
||||
ScopeExit headPost = {[&] { player_part_post_render(*this, position, RENDER_PART_HEAD); }};
|
||||
#endif
|
||||
if (!isVisible || IsFullSpriteRendering()) return;
|
||||
|
||||
for (int layer = PLAYER_LAYER_HEAD; layer < PLAYER_LAYER_TOP0; layer++)
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
#include "game/sfx_manager.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr int CONSUMABLE_MAX = 99;
|
||||
constexpr int DEEP_POCKETS_COIN_MAX = 999;
|
||||
@@ -62,8 +65,8 @@ Entity_Player* Entity_Player::health_owner()
|
||||
return player;
|
||||
}
|
||||
|
||||
// 007cafe0 How the character counts its health.
|
||||
HealthType Entity_Player::GetHealthType()
|
||||
// How a character counts its health.
|
||||
static HealthType character_health_type(int playerType)
|
||||
{
|
||||
switch (playerType)
|
||||
{
|
||||
@@ -89,11 +92,24 @@ HealthType Entity_Player::GetHealthType()
|
||||
}
|
||||
}
|
||||
|
||||
// 007cafe0 How the character counts its health, which REPENTOGON's mods may change.
|
||||
HealthType Entity_Player::GetHealthType()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
return (HealthType)player_health_type_evaluate(*this, character_health_type(playerType));
|
||||
#else
|
||||
return character_health_type(playerType);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 007cae60 The most half hearts the player can hold: 24, 12 for The Forgotten and The Soul and co-op babies, more with
|
||||
// Magdalene's Birthright, Keeper's coin hearts from Greed's Gullet, less two per broken heart. With isKeeperBypass the
|
||||
// broken hearts and Keeper's own limits are ignored. Forgotten's and Esau's soul forms hold less.
|
||||
int Entity_Player::GetHeartLimit(bool isKeeperBypass)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<int> limit = heart_limit_hook(*this, isKeeperBypass)) return *limit;
|
||||
#endif
|
||||
if (g_game->deathmatchManager.is_active()) return HEART_LIMIT_DEATHMATCH;
|
||||
if (variant == PLAYER_VARIANT_PLAYER)
|
||||
{
|
||||
@@ -146,6 +162,10 @@ int Entity_Player::GetGreedsGulletHearts()
|
||||
// bone hearts. Past the limit the extra is lost, and soul and red hearts are clamped to what is left.
|
||||
void Entity_Player::AddMaxHearts(int amount, bool isIgnoreKeeper)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
amount = hearts_pre_add(*this, {ADD_HEALTH_MAX, amount, isIgnoreKeeper});
|
||||
ScopeExit heartsPost = {[&, amount] { hearts_post_add(*this, {ADD_HEALTH_MAX, amount, isIgnoreKeeper}); }};
|
||||
#endif
|
||||
Entity_Player& owner = *health_owner();
|
||||
HealthType health = owner.GetHealthType();
|
||||
|
||||
@@ -194,6 +214,10 @@ void Entity_Player::AddMaxHearts(int amount, bool isIgnoreKeeper)
|
||||
// nothing unless isUnknown is set.
|
||||
void Entity_Player::AddHearts(int hearts, bool isUnknown, bool isUnknown2)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
hearts = hearts_pre_add(*this, {ADD_HEALTH_RED, hearts});
|
||||
ScopeExit heartsPost = {[&, hearts] { hearts_post_add(*this, {ADD_HEALTH_RED, hearts}); }};
|
||||
#endif
|
||||
Entity_Player* owner = this;
|
||||
while (true)
|
||||
{
|
||||
@@ -245,6 +269,10 @@ void Entity_Player::red_hearts_add(int hearts, bool isUnknown2)
|
||||
// charge, and characters without health a single soul heart when given any.
|
||||
void Entity_Player::AddSoulHearts(int amount, bool isUnknown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
amount = hearts_pre_add(*this, {ADD_HEALTH_SOUL, amount});
|
||||
ScopeExit heartsPost = {[&, amount] { hearts_post_add(*this, {ADD_HEALTH_SOUL, amount}); }};
|
||||
#endif
|
||||
Entity_Player* owner = this;
|
||||
Game& game = *g_game;
|
||||
|
||||
@@ -377,6 +405,10 @@ void Entity_Player::SetFullHearts()
|
||||
// soul hearts black from the last one back instead. Golden hearts left without a heart to sit on break.
|
||||
void Entity_Player::AddBlackHearts(int amount)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
amount = hearts_pre_add(*this, {ADD_HEALTH_BLACK, amount});
|
||||
ScopeExit heartsPost = {[&, amount] { hearts_post_add(*this, {ADD_HEALTH_BLACK, amount}); }};
|
||||
#endif
|
||||
Entity_Player* owner = health_owner();
|
||||
while (owner->GetHealthType() != HEALTH_NO_HEALTH && owner->playerType == PLAYER_THEFORGOTTEN)
|
||||
{
|
||||
@@ -451,6 +483,10 @@ void Entity_Player::black_hearts_add(int amount)
|
||||
// Heartbreak's damage follows the count.
|
||||
void Entity_Player::AddBrokenHearts(int amount)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
amount = hearts_pre_add(*this, {ADD_HEALTH_BROKEN, amount});
|
||||
ScopeExit heartsPost = {[&, amount] { hearts_post_add(*this, {ADD_HEALTH_BROKEN, amount}); }};
|
||||
#endif
|
||||
Entity_Player& owner = *health_owner();
|
||||
|
||||
owner.brokenHearts = std::min(std::max(0, owner.brokenHearts + amount), owner.GetHeartLimit(true) / 2);
|
||||
@@ -979,6 +1015,10 @@ void Entity_Player::eternal_heart_overlay_show()
|
||||
// revives instead, and characters without red health take none. The deathmatch adds a container at once.
|
||||
void Entity_Player::AddEternalHearts(int amount)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
amount = hearts_pre_add(*this, {ADD_HEALTH_ETERNAL, amount});
|
||||
ScopeExit heartsPost = {[&, amount] { hearts_post_add(*this, {ADD_HEALTH_ETERNAL, amount}); }};
|
||||
#endif
|
||||
if (isCoopGhost) return RevivePlayerGhost();
|
||||
HealthType health = GetHealthType();
|
||||
if (health == HEALTH_COIN || health == HEALTH_NO_HEALTH) return;
|
||||
@@ -1025,6 +1065,9 @@ void Entity_Player::AddImmaculateConceptionCounter(int amount)
|
||||
uint32_t familiar = CONCEPTION_FAMILIAR_FLAGS[(roll % familiars + offset) % familiars];
|
||||
if (conceptionFamiliarFlags & familiar) continue;
|
||||
sound_play(SOUND_IMMACULATE_CONCEPTION);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (player_birth_is_cancelled(*this, familiar, BIRTH_IMMACULATE)) break;
|
||||
#endif
|
||||
conceptionFamiliarFlags |= familiar;
|
||||
cacheFlags |= CACHE_FAMILIARS;
|
||||
EvaluateItems();
|
||||
@@ -1043,6 +1086,10 @@ void Entity_Player::AddImmaculateConceptionCounter(int amount)
|
||||
// break one at once. Tainted Forgotten's soul gives them to its twin.
|
||||
void Entity_Player::AddGoldenHearts(int amount, bool isSkipBreak)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
amount = hearts_pre_add(*this, {ADD_HEALTH_GOLDEN, amount});
|
||||
ScopeExit heartsPost = {[&, amount] { hearts_post_add(*this, {ADD_HEALTH_GOLDEN, amount}); }};
|
||||
#endif
|
||||
Entity_Player& owner = *health_owner();
|
||||
if (&owner != this) isSkipBreak = false;
|
||||
if (owner.playerType == PLAYER_THELOST || owner.playerType == PLAYER_THELOST_B ||
|
||||
@@ -1080,6 +1127,10 @@ bool Entity_Player::CanPickGoldenHearts()
|
||||
// the soul hearts. Keeper gets flies, The Soul gives them to its body, characters without health take none.
|
||||
void Entity_Player::AddBoneHearts(int amount)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
amount = hearts_pre_add(*this, {ADD_HEALTH_BONE, amount});
|
||||
ScopeExit heartsPost = {[&, amount] { hearts_post_add(*this, {ADD_HEALTH_BONE, amount}); }};
|
||||
#endif
|
||||
Entity_Player* owner = this;
|
||||
while (true)
|
||||
{
|
||||
@@ -1141,6 +1192,10 @@ bool Entity_Player::CanPickBoneHearts()
|
||||
// and Keeper gets flies. The Have a Heart challenge heals nothing unless isUnknown is set.
|
||||
void Entity_Player::AddRottenHearts(int amount, bool isUnknown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
amount = hearts_pre_add(*this, {ADD_HEALTH_ROTTEN, amount});
|
||||
ScopeExit heartsPost = {[&, amount] { hearts_post_add(*this, {ADD_HEALTH_ROTTEN, amount}); }};
|
||||
#endif
|
||||
Entity_Player* owner = this;
|
||||
while (true)
|
||||
{
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
#include "entity/npc/ai.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/entities.h"
|
||||
#endif
|
||||
|
||||
constexpr float THROW_HEIGHT = 7;
|
||||
constexpr float THROWN_BOMB_OFFSET_Y = -24;
|
||||
@@ -111,6 +114,9 @@ static Entity_Tear* lifted_grid_throw(Entity_Player& player, Entity_Effect& lift
|
||||
// hands, a lifted grid entity becomes a tear, a small rocket vanishes. Returns what was let go, or the grid's tear.
|
||||
Entity* Entity_Player::ThrowHeldEntity(Vector throwVelocity)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<Entity*> thrown = entity_throw_hook(*this, throwVelocity)) return *thrown;
|
||||
#endif
|
||||
Entity* held = heldEntity;
|
||||
|
||||
if (!held) return nullptr;
|
||||
|
||||
+53
-10
@@ -19,6 +19,10 @@
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <map>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/player.h"
|
||||
#include <cstring>
|
||||
#endif
|
||||
|
||||
constexpr const char* HEARTS_PNG = "gfx/ui/ui_hearts.png";
|
||||
constexpr const char* HEARTS_SMALL_PNG = "gfx/ui/ui_hearts_small.png";
|
||||
@@ -733,6 +737,12 @@ void PlayerHUD::UpdateHearts(std::span<PlayerHUDHeart> slots, Entity_Player& sho
|
||||
// versus match a health bar. outExtent is how far the hearts reach.
|
||||
void PlayerHUD::RenderHearts(Vector& outExtent, ANM2& sprite, PlayerHudLayout layout, float heartScale, Vector at)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
HudHeartsDraw heartsDraw = {outExtent, sprite, at, layout, heartScale};
|
||||
bool isFollowed = player && !player->isCoopGhost;
|
||||
if (isFollowed && hud_hearts_pre_render(*this, heartsDraw)) return;
|
||||
ScopeExit heartsPost = {[&] { if (isFollowed) hud_hearts_post_render(*this, heartsDraw); }};
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
if (game.currentRoomIdx == ROOM_DEATHMATCH_IDX)
|
||||
{
|
||||
@@ -1055,6 +1065,10 @@ static void glitched_icon_draw(int id, const SourceQuad& source, const KAGE::Gra
|
||||
static void active_item_draw(const PlayerHUDActiveItem& active, const SourceQuad& source,
|
||||
const KAGE::Graphics::ColorQuad& quad, const ColorMod& color)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isOutline = std::memcmp(&color, &ICON_OUTLINE, sizeof(ColorMod)) == 0;
|
||||
if (activeItemRender.isItemHidden || (activeItemRender.isOutlineHidden && isOutline)) return;
|
||||
#endif
|
||||
KAGE::Graphics::manager.shader_default_set();
|
||||
if (active.id < 0) return glitched_icon_draw(active.id, source, quad, color);
|
||||
if (!active.itemImage) return;
|
||||
@@ -1161,8 +1175,17 @@ static void bar_fill_draw(const ChargeBar& bar, float fill, ColorMod color)
|
||||
// overlay on even frames. Hold shows the poop it holds.
|
||||
void PlayerHUD::RenderActiveItem(int activeSlot, Vector at, PlayerHudLayout layout, float itemScale, float alpha)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
max_charge_cache_begin();
|
||||
ScopeExit cacheEnd = {max_charge_cache_end};
|
||||
#endif
|
||||
if (!player || player->isCoopGhost)
|
||||
return;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
HudActiveDraw activeDraw = {at, activeSlot, layout, alpha, itemScale};
|
||||
if (hud_active_item_pre_render(*this, activeDraw)) return;
|
||||
ScopeExit activePost = {[&] { hud_active_item_post_render(*this, activeDraw); }};
|
||||
#endif
|
||||
|
||||
KAGE::Graphics::Manager& graphics = KAGE::Graphics::manager;
|
||||
Entity_Player& shown = *player;
|
||||
@@ -1191,6 +1214,9 @@ void PlayerHUD::RenderActiveItem(int activeSlot, Vector at, PlayerHudLayout layo
|
||||
shown.GetTotalActiveCharge(activeSlot) >= shown.GetActiveMinUsableCharge(activeSlot) &&
|
||||
alpha >= 1;
|
||||
active_icon_frame_set(icon, shown, activeSlot, charge);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (activeItemRender.isCropped) icon.frame = vector_make(activeItemRender.cropX, activeItemRender.cropY);
|
||||
#endif
|
||||
if (item == COLLECTIBLE_HOLD && shown.activeItems[activeSlot].varData != 0)
|
||||
{
|
||||
ANM2& poops = hud->poopSpellsSprite;
|
||||
@@ -1232,7 +1258,11 @@ void PlayerHUD::RenderActiveItem(int activeSlot, Vector at, PlayerHudLayout layo
|
||||
icon_pass_draw(active, icon, iconSize, main);
|
||||
}
|
||||
|
||||
if (charge.max < 1)
|
||||
bool isBarHidden = charge.max < 1;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
isBarHidden = isBarHidden || activeItemRender.isChargeBarHidden;
|
||||
#endif
|
||||
if (isBarHidden)
|
||||
{
|
||||
graphics.shader_default_set();
|
||||
return;
|
||||
@@ -1294,13 +1324,11 @@ void PlayerHUD::RenderActiveItem(int activeSlot, Vector at, PlayerHudLayout layo
|
||||
graphics.shader_default_set();
|
||||
}
|
||||
|
||||
// (0084bab0) Draws a trinket's icon at a position and size in a color: its 32 pixel frame, which for Monkey Paw is the
|
||||
// one of the paw's fingers left.
|
||||
void PlayerHUD::trinket_draw(const PlayerHUDTrinket& trinket, Vector at, const ColorMod& color, float trinketScale)
|
||||
// (0084bab0) Draws a trinket's icon at a position and size in a color, from its 32 pixel frame at crop.
|
||||
void PlayerHUD::trinket_draw(const PlayerHUDTrinket& trinket, Vector at, const ColorMod& color, float trinketScale,
|
||||
Vector crop)
|
||||
{
|
||||
float frameX = trinket.id == TRINKET_MONKEY_PAW ? (float)(MONKEY_PAW_FRAMES - player->monkeyPawCounter) * TRINKET_SIZE
|
||||
: 0;
|
||||
SourceQuad source = KAGE::Graphics::source_quad_rect(vector_make(frameX, 0), vector_make(TRINKET_SIZE, TRINKET_SIZE));
|
||||
SourceQuad source = KAGE::Graphics::source_quad_rect(crop, vector_make(TRINKET_SIZE, TRINKET_SIZE));
|
||||
Vector size = vector_make(trinketScale * TRINKET_SIZE, trinketScale * TRINKET_SIZE);
|
||||
KAGE::Graphics::ColorQuad quad = KAGE::Graphics::color_quad_rect(at, size, kcolor_rgba(1, 1, 1, 1));
|
||||
|
||||
@@ -1310,11 +1338,18 @@ void PlayerHUD::trinket_draw(const PlayerHUDTrinket& trinket, Vector at, const C
|
||||
|
||||
// 00846ff0 Draws a trinket slot's icon over its shadow, shaken with the screen and, when small, centered on its drawn
|
||||
// pixels: the error trinket reddened, a golden trinket shimmering in the gold shader, a Modeling Clay copy in clay.
|
||||
// The original leaves the shaders it picks current. Here they are popped after.
|
||||
// Monkey Paw shows the frame of the fingers it has left. The original leaves the shaders it picks current. Here they
|
||||
// are popped after.
|
||||
void PlayerHUD::RenderTrinket(int trinketSlot, Vector at, float trinketScale, bool isSmall)
|
||||
{
|
||||
const PlayerHUDTrinket& trinket = trinkets[trinketSlot];
|
||||
if (trinket.id == 0 || !trinket.image) return;
|
||||
float frameX = trinket.id == TRINKET_MONKEY_PAW ? (float)(MONKEY_PAW_FRAMES - player->monkeyPawCounter) * TRINKET_SIZE
|
||||
: 0;
|
||||
Vector crop = vector_make(frameX, 0);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!hud_trinket_pre_render(*this, trinketSlot, at, trinketScale, crop)) return;
|
||||
#endif
|
||||
|
||||
KAGE::Graphics::Manager& graphics = KAGE::Graphics::manager;
|
||||
Vector shake = g_game->screenShakeOffset;
|
||||
@@ -1324,7 +1359,7 @@ void PlayerHUD::RenderTrinket(int trinketSlot, Vector at, float trinketScale, bo
|
||||
|
||||
int pushed = graphics.shader_push(COLOR_OFFSET_SHADER) ? 1 : 0;
|
||||
trinket_draw(trinket, vector_make(trinketScale + trinketScale + position.x, trinketScale + trinketScale + position.y),
|
||||
TRINKET_SHADOW, trinketScale);
|
||||
TRINKET_SHADOW, trinketScale, crop);
|
||||
|
||||
ColorMod color = COLOR_DEFAULT;
|
||||
uint32_t held = player->trinkets[trinketSlot];
|
||||
@@ -1337,7 +1372,7 @@ void PlayerHUD::RenderTrinket(int trinketSlot, Vector at, float trinketScale, bo
|
||||
}
|
||||
else if (trinket.clayItem != 0)
|
||||
for (int i = 0; i < 4; i++) color._colorize[i] = CLAY_COLORIZE[i];
|
||||
trinket_draw(trinket, position, color, trinketScale);
|
||||
trinket_draw(trinket, position, color, trinketScale, crop);
|
||||
for (; pushed > 0; pushed--) graphics.shader_pop();
|
||||
}
|
||||
|
||||
@@ -1544,6 +1579,10 @@ static void inventory_icon_draw(const PlayerHUDIcon& icon, const KAGE::Graphics:
|
||||
// one the next item replaces.
|
||||
void PlayerHUD::render_inventory(Vector at, float inventoryScale)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
HudElementScope elementScope(*this, HUD_ELEMENT_INVENTORY, at, inventoryScale);
|
||||
if (!elementScope.isDrawn) return;
|
||||
#endif
|
||||
ANM2& sprite = hud->inventorySprite;
|
||||
int slots = player->GetMaxInventorySize();
|
||||
int columns = slots / 2;
|
||||
@@ -1654,6 +1693,10 @@ void PlayerHUD::render_card_table(Vector at, float tableScale)
|
||||
// challenge it draws the card table instead.
|
||||
void PlayerHUD::RenderCraftingTable(Vector at, float tableScale)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
HudElementScope elementScope(*this, HUD_ELEMENT_CRAFTING_TABLE, at, tableScale);
|
||||
if (!elementScope.isDrawn) return;
|
||||
#endif
|
||||
ANM2& sprite = hud->craftingTableSprite;
|
||||
sprite.scale = vector_make(tableScale, tableScale);
|
||||
if (g_game->challenge == CHALLENGE_CANTRIPPED)
|
||||
|
||||
@@ -138,7 +138,8 @@ private:
|
||||
void trinkets_update(bool& isChanged);
|
||||
void pockets_update();
|
||||
void inventory_update();
|
||||
void trinket_draw(const PlayerHUDTrinket& trinket, Vector at, const ColorMod& color, float trinketScale);
|
||||
void trinket_draw(const PlayerHUDTrinket& trinket, Vector at, const ColorMod& color, float trinketScale,
|
||||
Vector crop);
|
||||
void card_icon_render(const PlayerHUDIcon& icon, Vector at, float size, float shadowShift);
|
||||
void render_card_table(Vector at, float tableScale);
|
||||
};
|
||||
|
||||
@@ -18,6 +18,11 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <span>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/items.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr int ROOM_TRINKET_ROLL_SHIFT = 13;
|
||||
constexpr float PICKUP_SPAWN_STEP = 40;
|
||||
@@ -212,6 +217,9 @@ int Entity_Player::extra_collectible_count(int collectibleId)
|
||||
// The original reads a missing collectible's tags for co-op ghosts. Here a missing one counts as no quest item.
|
||||
int Entity_Player::GetCollectibleNum(int collectibleId, ItemCheck check)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<int> count = collectible_num_hook(*this, collectibleId, check == ITEM_CHECK_OWNED)) return *count;
|
||||
#endif
|
||||
if (collectibleId < 0 || collectibleId >= (int)collectibleCounts.size()) return 0;
|
||||
if (variant == PLAYER_VARIANT_COOP_BABY)
|
||||
if (Entity_Player* owner = GetMainPlayer()) return owner->GetCollectibleNum(collectibleId, check);
|
||||
@@ -528,6 +536,9 @@ int Entity_Player::GetZodiacEffect()
|
||||
// effects (entity_player_trinkets.cpp) in their places. A shield broken in the last room is taken away first.
|
||||
void Entity_Player::TriggerNewRoom_TemporaryEffects()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
ScopeExit effectsPost = {[this] { player_room_effects_post_trigger(*this); }};
|
||||
#endif
|
||||
constexpr int CAMO_UNDIES = 497;
|
||||
ItemConfig& items = g_manager->itemConfig;
|
||||
ItemConfig_Item* mantle = items.GetCollectible(COLLECTIBLE_HOLY_MANTLE);
|
||||
@@ -1584,9 +1595,16 @@ static void collectible_late_effect_apply(Entity_Player& p, const CollectibleGai
|
||||
// own pickup effect runs, its cache flags are evaluated, transformations count it, and its costume goes on. An active
|
||||
// takes its slot, and Book of Virtues an empty first one. The history keeps the pool the item came from. Nothing is
|
||||
// given while Forget Me Now takes the floor away. Online, an item the versus rules allow joins the next match's pool.
|
||||
// Procedural items stop the game.
|
||||
// Procedural items stop the game. Mods' MC_PRE_ADD_COLLECTIBLE may cancel or change it, and
|
||||
// MC_POST_TRIGGER_COLLECTIBLE_ADDED and MC_POST_ADD_COLLECTIBLE follow.
|
||||
void Entity_Player::AddCollectible(int type, int charge, bool isFirstTime, int activeSlot, int varData, int poolType)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!collectible_add_pre(*this, {type, charge, isFirstTime, activeSlot, varData})) return;
|
||||
ScopeExit addPost = {[=, this]() mutable {
|
||||
collectible_add_post(*this, {type, charge, isFirstTime, activeSlot, varData});
|
||||
}};
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
ItemConfig_Item* item = g_manager->itemConfig.GetCollectible(type);
|
||||
if (!item) return log_printf(LOG_INFO, "[warn] no config for collectible %d.\n", type);
|
||||
@@ -1722,6 +1740,10 @@ static ItemConfig_Item* costume_item_get(Entity_Player& player, ItemConfig_Item*
|
||||
void Entity_Player::AddCostume(ItemConfig_Item* item, bool isItemStateOnly)
|
||||
{
|
||||
if (variant == PLAYER_VARIANT_COOP_BABY || !item || isCoopGhost) return;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (costume_pre_add(*this, item, isItemStateOnly)) return;
|
||||
ScopeExit costumePost = {[&, item] { costume_post_add(*this, item, isItemStateOnly); }};
|
||||
#endif
|
||||
|
||||
item = costume_item_get(*this, item);
|
||||
if (!item) return;
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
#include <algorithm>
|
||||
#include <deque>
|
||||
#include <filesystem>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr float PLAYER_START_TEAR_HEIGHT = -23.75f;
|
||||
constexpr float PLAYER_START_TEAR_FALLING_SPEED = 0.2f;
|
||||
@@ -567,6 +570,9 @@ void Entity_Player::links_reset()
|
||||
// rolls, the challenge and the seeds add. Eden rolls its health, a pickup and its stat offsets from the init seed.
|
||||
void Entity_Player::InitPreLevelInitStats()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
player_level_stats_pre_init(*this);
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
EntityConfig_Player* playerConfig = g_manager->entityConfig.GetPlayer(playerType);
|
||||
RNG rng = rng_make(initSeed, PRE_LEVEL_RNG_SHIFT);
|
||||
@@ -806,6 +812,9 @@ void Entity_Player::starting_trinket_add(int id)
|
||||
// and starts the twins and companions. Straw Man's player only evaluates. Netplay's per-player save data is offline.
|
||||
void Entity_Player::InitPostLevelInitStats()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
ScopeExit statsPost = {[this] { player_level_stats_post_init(*this); }};
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
EntityConfig_Player* playerConfig = g_manager->entityConfig.GetPlayer(playerType);
|
||||
RNG rng = rng_make(initSeed, PRE_LEVEL_RNG_SHIFT);
|
||||
@@ -960,6 +969,9 @@ void Entity_Player::jacobs_curse_add(const JacobsCurseDelay& delay)
|
||||
// spills blood at low health, ends the floor's effects, restores what the floor gives back and evaluates its stats.
|
||||
void Entity_Player::level_start(bool isForced)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
ScopeExit levelPost = {[this, isForced] { player_level_post_start(*this, isForced); }};
|
||||
#endif
|
||||
delayedSfxId = 0;
|
||||
delayedSfxDelay = 0;
|
||||
moveToTarget = {};
|
||||
@@ -1460,9 +1472,15 @@ bool Entity_Player::is_body_layer(int layer)
|
||||
}
|
||||
|
||||
// 0075d850 Takes off an item's costume, from its Lazarus twin too when the item is shared, and redoes the costumes.
|
||||
// Co-op babies wear none.
|
||||
// Co-op babies wear none. Without vanilla parity a co-op ghost keeps its costumes, as REPENTOGON has it.
|
||||
void Entity_Player::RemoveCostume(ItemConfig_Item* item)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isFollowed = item && variant != PLAYER_VARIANT_COOP_BABY && !isCoopGhost;
|
||||
if (isFollowed && costume_pre_remove(*this, item)) return;
|
||||
if (isCoopGhost && !repentogonOptions.isVanillaParity) return;
|
||||
ScopeExit costumePost = {[&] { if (isFollowed) costume_post_remove(*this, item); }};
|
||||
#endif
|
||||
if (!item || variant == PLAYER_VARIANT_COOP_BABY || item->costume.anm2Path.empty()) return;
|
||||
|
||||
if (isValid && item->HasTags(TAG_LAZ_SHARED) && backupPlayer) backupPlayer->RemoveCostume(item);
|
||||
|
||||
@@ -1832,6 +1832,11 @@ public:
|
||||
bool isMarsDashReady = true;
|
||||
bool isPostLevelInitFinished = false;
|
||||
bool isUrethraBlocked = false;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
// REPENTOGON's health type tracking (EntityPlayerPlus): the last evaluated one, -1 before any change.
|
||||
int previousHealthType = -1;
|
||||
bool isEvaluatingHealthType = false;
|
||||
#endif
|
||||
// Set while EvaluateItems spawns the players Found Soul and Strawman give, who start without pickups.
|
||||
static inline bool isSpawningHelperPlayers = false;
|
||||
|
||||
@@ -1966,9 +1971,11 @@ public:
|
||||
void PlayCollectibleAnim(int collectible, bool isCheckBodyLayers, std::string_view animation, int frame);
|
||||
void PlayExtraAnimation(std::string_view animation, bool isUnknown);
|
||||
UseResult UseActiveItem(const ActiveUse& use);
|
||||
UseResult active_item_use(const ActiveUse& request);
|
||||
void trigger_collectible_effect_removed(ItemConfig_Item* item, int count);
|
||||
|
||||
private:
|
||||
bool collision_react(Entity* collider, bool isLow);
|
||||
void stats_reset();
|
||||
void tear_stats_reset();
|
||||
void sprites_load();
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <string>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/items.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr int CARD_ID_VANILLA_LAST = 97;
|
||||
// Endless Nameless' odds to copy a used card or pill, by its copies.
|
||||
@@ -111,6 +116,13 @@ RNG& Entity_Player::GetPillRNG(int pillEffect)
|
||||
// moving down. Full pockets drop their cards and pills first, and a helper player drops what it gets.
|
||||
void Entity_Player::AddPocketItem(int id, uint32_t pocketItemType)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
int callbackSlot = pocketItems[0].type == POCKET_ACTIVE && pocketItems[0].id > 0 ? 1 : 0;
|
||||
std::optional<int> added = pocket_pre_add(*this, (int)pocketItemType, id, callbackSlot);
|
||||
if (!added) return;
|
||||
id = *added;
|
||||
ScopeExit addPost = {[=, this] { pocket_post_add(*this, (int)pocketItemType, id, callbackSlot); }};
|
||||
#endif
|
||||
int maxPockets = (int)GetMaxPocketItems() + (pocketItemType == POCKET_ACTIVE ? 1 : 0);
|
||||
if (pocketItems[0].id != 0 && pocketItems[maxPockets - 1].id != 0)
|
||||
for (int slot = 0; slot < maxPockets; slot++)
|
||||
@@ -155,20 +167,34 @@ int Entity_Player::GetPill(int slot)
|
||||
return is_pocket_slot(slot) && pocketItems[slot].type == POCKET_PILL ? pocketItems[slot].id : 0;
|
||||
}
|
||||
|
||||
// 007a3cb0 Puts a card in a pocket slot, then updates the Red Key's door outlines.
|
||||
void Entity_Player::SetCard(int slot, int card)
|
||||
// Puts a card or pill in a pocket slot, then updates the Red Key's door outlines.
|
||||
static void pocket_slot_set(Entity_Player& player, int slot, PocketItem pocket)
|
||||
{
|
||||
if (!is_pocket_slot(slot)) return;
|
||||
pocketItems[slot] = {card, POCKET_CARD};
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<int> id = pocket_pre_add(player, pocket.type, pocket.id, slot);
|
||||
if (!id) return;
|
||||
pocket.id = *id;
|
||||
PocketItem replaced = player.pocketItems[slot];
|
||||
ScopeExit setPost = {[&] {
|
||||
pocket_post_remove(player, replaced.type, replaced.id, slot);
|
||||
pocket_post_add(player, pocket.type, pocket.id, slot);
|
||||
}};
|
||||
#endif
|
||||
player.pocketItems[slot] = pocket;
|
||||
g_game->room->UpdateRedKey();
|
||||
}
|
||||
|
||||
// 007a3cf0 Puts a pill in a pocket slot, then updates the Red Key's door outlines.
|
||||
// 007a3cb0 Puts a card in a pocket slot.
|
||||
void Entity_Player::SetCard(int slot, int card)
|
||||
{
|
||||
pocket_slot_set(*this, slot, {card, POCKET_CARD});
|
||||
}
|
||||
|
||||
// 007a3cf0 Puts a pill in a pocket slot.
|
||||
void Entity_Player::SetPill(int slot, int pillColor)
|
||||
{
|
||||
if (!is_pocket_slot(slot)) return;
|
||||
pocketItems[slot] = {pillColor, POCKET_PILL};
|
||||
g_game->room->UpdateRedKey();
|
||||
pocket_slot_set(*this, slot, {pillColor, POCKET_PILL});
|
||||
}
|
||||
|
||||
// 007717c0 How many trinkets the player holds: two with Mom's Purse or Belly Button.
|
||||
@@ -294,6 +320,11 @@ static std::string pocket_text(std::string_view text)
|
||||
bool pocket_item_collect(Entity_Pickup& pocket, Entity_Player& player)
|
||||
{
|
||||
if (player.IsHoldingItem()) return false;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isPocketed = g_game->challenge != CHALLENGE_CANTRIPPED;
|
||||
if (isPocketed && pocket_collect_is_cancelled(pocket, player)) return false;
|
||||
ScopeExit collectPost = {[&] { if (isPocketed) pocket_collect_post(pocket, player); }};
|
||||
#endif
|
||||
if (g_game->challenge == CHALLENGE_CANTRIPPED)
|
||||
{
|
||||
uint32_t item = player.AddItemCard((uint32_t)pocket.subtype & ~CARD_ITEM_FLAG);
|
||||
@@ -331,9 +362,12 @@ bool pocket_item_collect(Entity_Pickup& pocket, Entity_Player& player)
|
||||
|
||||
// 007b2230 Uses a card: its effect, the card held up unless hidden, the announcer naming it now and then, and the mods'
|
||||
// MC_USE_CARD. The random cards challenge swaps it for a random card. Tarot Cloth doubles a tarot card: the ones with
|
||||
// a doubled effect run it, the others run once more as a car battery's second use.
|
||||
// a doubled effect run it, the others run once more as a car battery's second use. A mod's MC_PRE_USE_CARD may cancel it.
|
||||
void Entity_Player::UseCard(int cardType, uint32_t useFlag)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (card_use_is_cancelled(*this, cardType, useFlag)) return;
|
||||
#endif
|
||||
ItemConfig_Card* card = cardType >= 0 ? g_manager->itemConfig.GetCard(cardType) : nullptr;
|
||||
if (!card) return;
|
||||
|
||||
@@ -370,9 +404,14 @@ void tears_up_unlock_check(Entity_Player& player)
|
||||
// instead), its name shows and its use counts, its effect runs, the announcer names it now and then and the mods see
|
||||
// it. A horse pill doubles the count and swaps the thumbs' sounds for louder ones. False PHD turns a bad pill into a
|
||||
// black heart and some damage. The random pills challenge shows a random pill's name, and the seeds hide or scramble
|
||||
// it. Netplay's remote players, whose pills the original keeps off the HUD, are offline.
|
||||
// it. Netplay's remote players, whose pills the original keeps off the HUD, are offline. A mod's MC_PRE_USE_PILL may
|
||||
// cancel it, and without vanilla parity MC_USE_PILL runs after it all, with the pill color too.
|
||||
void Entity_Player::UsePill(int pillEffect, int pillColor, uint32_t useFlags)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (pill_use_is_cancelled(*this, pillEffect, pillColor, useFlags)) return;
|
||||
ScopeExit usedPost = {[=, this] { pill_use_post(*this, pillEffect, pillColor, useFlags); }};
|
||||
#endif
|
||||
constexpr int FALSE_PHD_SHIFT = 72;
|
||||
constexpr int FALSE_PHD_PILLS[] = {PILLEFFECT_AMNESIA, PILLEFFECT_BAD_TRIP, PILLEFFECT_WIZARD,
|
||||
PILLEFFECT_PARALYSIS, PILLEFFECT_ADDICTED, PILLEFFECT_QUESTIONMARK,
|
||||
@@ -427,6 +466,9 @@ void Entity_Player::UsePill(int pillEffect, int pillColor, uint32_t useFlags)
|
||||
|
||||
if (isAnnounced && pill && pill->announcerVoice != 0)
|
||||
announcer_queue(*this, isHorse ? pill->announcerVoiceSuper : pill->announcerVoice, pill->announcerDelay, frames);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (repentogonOptions.isVanillaParity)
|
||||
#endif
|
||||
lua_engine_get().UsePill(pillEffect, this, useFlags);
|
||||
if (isHorse && sprite.IsPlaying("Happy"))
|
||||
{
|
||||
@@ -492,6 +534,9 @@ void Entity_Player::pocket_use_input()
|
||||
save.AddToCollection(COLLECTION_CARD);
|
||||
save.IncreaseEventCounter(EVENT_COUNTER_CARDS_USED, 1);
|
||||
pockets_shift(*this);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
pocket_post_remove(*this, POCKET_CARD, used.id, 0);
|
||||
#endif
|
||||
TriggerEchoChamber(POCKET_CARD, used.id);
|
||||
UseCard(used.id, USE_OWNED);
|
||||
if (used.id != CARD_WILD && used.id != CARD_QUESTIONMARK)
|
||||
@@ -512,6 +557,9 @@ void Entity_Player::pocket_use_input()
|
||||
bool isGoldenKept = (used.id & PILL_COLOR_MASK) == PILL_COLOR_GOLD &&
|
||||
GetCollectibleRNG(COLLECTIBLE_PHD).RandomInt(PERCENT) >= GOLDEN_PILL_KEEP_CHANCE;
|
||||
if (!isGoldenKept) pockets_shift(*this);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
pocket_post_remove(*this, POCKET_PILL, used.id, 0);
|
||||
#endif
|
||||
TriggerEchoChamber(POCKET_PILL, used.id);
|
||||
UsePill(effect, used.id, 0);
|
||||
wildCardItemType = WILD_CARD_PILL;
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
#include "entity/player/hud.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr int POOP_SPELL_PICK_SHIFT = 35;
|
||||
constexpr int POOP_SPELL_RARE_END = 4;
|
||||
@@ -247,6 +250,10 @@ void blue_baby_poop_update(Entity_Player& player)
|
||||
// small, each lit while the poop covers it and faint otherwise.
|
||||
void PlayerHUD::RenderSpellQueue(Vector at, float queueScale)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
HudElementScope elementScope(*this, HUD_ELEMENT_POOP_SPELL_QUEUE, at, queueScale);
|
||||
if (!elementScope.isDrawn) return;
|
||||
#endif
|
||||
ANM2& spells = hud->poopSpellsSprite;
|
||||
float inset = queueScale * SPELL_SLOT_INSET;
|
||||
spells.scale = vector_make(queueScale, queueScale);
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
#include <cmath>
|
||||
#include <map>
|
||||
#include <span>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// Dark Esau is called when Jacob's curse has this many frames left (Anima Sola with nothing to chain sets it there).
|
||||
constexpr int DARK_ESAU_CALL_FRAMES = 10;
|
||||
@@ -171,6 +174,10 @@ void abyss_use(ItemUse& use)
|
||||
if (!pickup.CanReroll() || pickup.IsShopItem() || pickup.variant != PICKUP_COLLECTIBLE ||
|
||||
pickup.subtype == 0 || pickup.timeout >= 1)
|
||||
continue;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PrePickupVoidedAbyss", MC_PRE_PICKUP_VOIDED_ABYSS, pickup.variant};
|
||||
if (!boolean_run(run, true, &pickup)) continue;
|
||||
#endif
|
||||
|
||||
locust_spawn(player, pickup.subtype, pickup.pos);
|
||||
pickup.Remove();
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/weapons.h"
|
||||
#endif
|
||||
|
||||
// The tear's size from its damage: a root, the item scale (above one it grows by its log) and a little of the damage.
|
||||
constexpr float TEAR_SCALE_ROOT = 0.23f;
|
||||
@@ -915,6 +918,9 @@ TearParams Entity_Player::GetTearHitParams(WeaponType weaponType, float damageSc
|
||||
NetplayManager& netplay = g_manager->netplayManager;
|
||||
if (netplay.is_online() && !netplay.IsIdxLocalPlayer(controllerIndex) && !g_game->deathmatchManager.is_active())
|
||||
params.tearColor._tint[TINT_ALPHA] *= (float)g_manager->optionsConfig.onlinePlayerOpacity * 0.09f + 0.1f;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
tear_hit_params_evaluate(*this, params, {weaponType, damageScale, displacement, source});
|
||||
#endif
|
||||
return params;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
#include "level/room.h"
|
||||
#include "game/manager.h"
|
||||
#include <algorithm>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
constexpr int BOOK_OF_SHADOWS_SOUND_END = 1027;
|
||||
|
||||
@@ -54,6 +58,11 @@ void TemporaryEffects::AddEffect(const TemporaryEffect& effect, bool isAddCostum
|
||||
}
|
||||
cacheFlags |= effect.item->cacheFlags;
|
||||
isEvaluateCachePending = true;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (effect.item && g_game->room && this == &g_game->room->temporaryEffects)
|
||||
item_callback_notify("PostRoomAddEffect", MC_POST_ROOM_ADD_EFFECT, effect.item, effect.item);
|
||||
else if (player) player_effect_post_add(*player, effect, isAddCostume, count);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 009302e0 Adds copies of a collectible's effect.
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
#include <algorithm>
|
||||
#include <set>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/items.h"
|
||||
#include "repentogon/player.h"
|
||||
#endif
|
||||
|
||||
// The trinkets' constants: Rosary Bead's Bible chance, the battery trinkets' achievement, Wooden Cross's mantles
|
||||
// counted in the high half of the mantle stacks, Mother's Kiss's hearts and Lil Clot's clots.
|
||||
@@ -203,13 +208,20 @@ Entity_Pickup* Entity_Player::DropTrinket(Vector position, bool isReplaceTick)
|
||||
else if (id == TRINKET_MOMS_TOENAIL && !(g_game->room->descriptor->flags & ROOM_DESCRIPTOR_FLAG_CLEAR) && pickup)
|
||||
moms_toenail_stomp(pickup->pos, stomps);
|
||||
if (cacheFlags) EvaluateItems();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
player_trinket_post_drop(*this, position, isReplaceTick, pickup);
|
||||
#endif
|
||||
return pickup;
|
||||
}
|
||||
|
||||
// 00771d30 Puts a trinket in the first free slot (two with Mom's Purse or Belly Button), wearing its costume, then
|
||||
// sets off its pickup effect. Three battery items held unlock an achievement. A helper player drops it at once.
|
||||
// Mods' MC_PRE_ADD_TRINKET may cancel or change it.
|
||||
void Entity_Player::AddTrinket(int type, bool isFirstTime)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!trinket_add_pre(*this, {type, isFirstTime})) return;
|
||||
#endif
|
||||
ItemConfig_Item* trinket = g_manager->itemConfig.GetTrinket(type & TRINKET_ID_MASK);
|
||||
if (!trinket) return;
|
||||
|
||||
@@ -251,9 +263,12 @@ static void trinket_cache_add(Entity_Player& player, uint32_t id)
|
||||
|
||||
// 007ad860 What picking a trinket up changes at once: the Bible's chance, the transformations it counts for, Duct
|
||||
// Tape's mode, Wooden Cross's mantles, Mother's Kiss's hearts, Gilded Key's key, Lil Clot's clots and the versus
|
||||
// trinkets. The trinket's stats are evaluated with the next frame.
|
||||
// trinkets. The trinket's stats are evaluated with the next frame. MC_POST_TRIGGER_TRINKET_ADDED follows.
|
||||
void Entity_Player::TriggerTrinketAdded(uint32_t trinketId, bool isFirstTime)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
ScopeExit addedPost = {[=, this] { trinket_added_post(*this, trinketId, isFirstTime); }};
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
if (variant != PLAYER_VARIANT_PLAYER) return;
|
||||
bool isGolden = trinketId & TRINKET_GOLDEN_FLAG;
|
||||
@@ -301,9 +316,12 @@ void Entity_Player::TriggerTrinketAdded(uint32_t trinketId, bool isFirstTime)
|
||||
|
||||
// 007adb30 What losing a trinket changes at once, undoing its pickup: the Bible's chance, the transformations, Wooden
|
||||
// Cross's mantles, Modeling Clay's copied item and the versus trinkets' effects. The stats are evaluated with the next
|
||||
// frame.
|
||||
// frame. MC_POST_TRIGGER_TRINKET_REMOVED follows.
|
||||
void Entity_Player::TriggerTrinketRemoved(uint32_t trinketId)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
ScopeExit removedPost = {[=, this] { trinket_removed_post(*this, trinketId); }};
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
if (variant != PLAYER_VARIANT_PLAYER) return;
|
||||
uint32_t id = trinketId & TRINKET_ID_MASK;
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
#include "entity/weapon/lasers.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr int SIREN_COPY_SPAWNER = 904;
|
||||
constexpr float LEADER_PUSH_REACH = 12;
|
||||
@@ -1233,6 +1236,9 @@ static void extra_player_update(Entity_Player& player)
|
||||
// The parts the plain path does not run yet stop the game until reached.
|
||||
void Entity_Player::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (update_pre_is_skipped({"PrePlayerUpdate", MC_PRE_PLAYER_UPDATE, variant}, this)) return Entity::Update();
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
DeathmatchManager& deathmatch = game.deathmatchManager;
|
||||
hud_update(*this);
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
#include "level/room.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// Stye's right eye tears float longer.
|
||||
constexpr float STYE_FALLING_ACCEL_SCALE = 0.5f;
|
||||
@@ -585,6 +588,9 @@ Entity_Laser* Entity_Player::FireTechLaser(const TechLaserShot& shot)
|
||||
: (aim.y <= -TECH_LASER_FACING || aim.x <= -TECH_LASER_FACING);
|
||||
laser->renderDepthOffset = isBehind ? TECH_LASER_BACK_DEPTH : TECH_LASER_FRONT_DEPTH;
|
||||
laser->isPlayerParams = true;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostFireTechLaser", MC_POST_FIRE_TECH_LASER, laser);
|
||||
#endif
|
||||
return laser;
|
||||
}
|
||||
|
||||
@@ -636,6 +642,9 @@ Entity_Laser* Entity_Player::FireTechXLaser(const TechXShot& shot)
|
||||
laser->isPlayerParams = true;
|
||||
laser->mass *= params.massMultiplier;
|
||||
laser->damageMultiplier = shot.damageMultiplier;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostFireTechXLaser", MC_POST_FIRE_TECH_X_LASER, laser);
|
||||
#endif
|
||||
return laser;
|
||||
}
|
||||
|
||||
@@ -656,6 +665,9 @@ Entity_Knife* Entity_Player::FireKnife(const KnifeShot& shot)
|
||||
knife->SetCollisionDamage(damage);
|
||||
static_cast<Entity_Knife*>(knife)->rotationOffset = normalize_angle_degrees(shot.rotationOffset);
|
||||
if (shot.isCantOverwrite) knife->AddEntityFlags(FLAG_DONT_OVERWRITE);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostFireKnife", MC_POST_FIRE_KNIFE, static_cast<Entity_Knife*>(knife));
|
||||
#endif
|
||||
return static_cast<Entity_Knife*>(knife);
|
||||
}
|
||||
|
||||
|
||||
+70
-1
@@ -12,6 +12,9 @@
|
||||
#include "level/room.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/status.h"
|
||||
#endif
|
||||
|
||||
// How long each status effect can add up to.
|
||||
constexpr int STATUS_MAX_FRAMES = 120;
|
||||
@@ -149,6 +152,10 @@ int Entity::apply_second_hand_duration(int duration, const EntityRef& source)
|
||||
// 006ad3c0 Freezes the entity (the head of a body sharing its status) unless a friend did it, tinted grey.
|
||||
void Entity::AddFreeze(const EntityRef& source, int duration, bool isIgnoreBossCooldown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
StatusApplyScope statusScope(STATUS_FREEZE, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -165,6 +172,10 @@ void Entity::AddFreeze(const EntityRef& source, int duration, bool isIgnoreBossC
|
||||
// (the source's player's melee damage without one). It turns greener the longer it lasts.
|
||||
void Entity::AddPoison(const EntityRef& source, int duration, float damage, bool isIgnoreBossCooldown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
StatusApplyScope statusScope(STATUS_POISON, *this, source, duration, damage, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source) || is_evil_charmed(*this)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
damage = tick_damage_get(*this, source, damage);
|
||||
@@ -248,6 +259,10 @@ static void charm_permanent(Entity& entity, Entity& head, bool isCharmed, bool i
|
||||
// source, and an enemy just charmed finds a new path.
|
||||
void Entity::AddCharmed(const EntityRef& source, int duration, bool isIgnoreBossCooldown, bool isAddEnemyKillScore)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
StatusApplyScope statusScope(STATUS_CHARMED, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (HasEntityFlags(FLAG_FRIENDLY)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -270,6 +285,10 @@ void Entity::AddCharmed(const EntityRef& source, int duration, bool isIgnoreBoss
|
||||
// tinted grey. An enemy just confused finds a new path.
|
||||
void Entity::AddConfusion(const EntityRef& source, int duration, bool isIgnoreBossCooldown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
StatusApplyScope statusScope(STATUS_CONFUSION, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source) || is_evil_charmed(*this)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -291,6 +310,10 @@ void Entity::AddConfusion(const EntityRef& source, int duration, bool isIgnoreBo
|
||||
// status effects while not frozen in ice. Heavy entities are pushed less and for less long, by the log of their mass.
|
||||
void Entity::AddKnockback(const EntityRef& source, Vector push, int duration, bool isImpactDamage)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
StatusApplyScope statusScope(STATUS_KNOCKBACK, *this, source, duration, push, isImpactDamage);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
constexpr float KNOCKBACK_LIGHT_MASS = 10;
|
||||
if (IsDamageSourceFriendly(source)) return;
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -313,6 +336,10 @@ void Entity::AddKnockback(const EntityRef& source, Vector push, int duration, bo
|
||||
// A poop turns golden instead.
|
||||
void Entity::AddMidasFreeze(const EntityRef& source, int duration, bool isIgnoreBossCooldown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
StatusApplyScope statusScope(STATUS_MIDAS_FREEZE, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -339,6 +366,10 @@ void Entity::AddMidasFreeze(const EntityRef& source, int duration, bool isIgnore
|
||||
// challenge a boss frightened by the player shrugs status off sooner. An enemy just frightened (or shrunk) flees anew.
|
||||
void Entity::AddFear(const EntityRef& source, int duration, bool isIgnoreBossCooldown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
StatusApplyScope statusScope(STATUS_FEAR, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source) || is_evil_charmed(*this)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -362,6 +393,10 @@ void Entity::AddFear(const EntityRef& source, int duration, bool isIgnoreBossCoo
|
||||
// (the source's player's melee damage without one). Its flicker comes from Update.
|
||||
void Entity::AddBurn(const EntityRef& source, int duration, float damage, bool isIgnoreBossCooldown)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
StatusApplyScope statusScope(STATUS_BURN, *this, source, duration, damage, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source) || is_evil_charmed(*this)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
damage = tick_damage_get(*this, source, damage);
|
||||
@@ -380,6 +415,11 @@ void Entity::AddBurn(const EntityRef& source, int duration, float damage, bool i
|
||||
// and damage come from Update.
|
||||
void Entity::AddBleeding(const EntityRef& source, int duration)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isIgnoreBossCooldown = false;
|
||||
StatusApplyScope statusScope(STATUS_BLEEDING, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -430,6 +470,10 @@ void Entity::RemoveStatusEffects()
|
||||
// status checks: its collision shrinks with its size, and an enemy just shrunk (or frightened) flees anew.
|
||||
void Entity::AddShrink(const EntityRef& source, int duration, bool isIgnoreBossCooldown, bool isForced)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
StatusApplyScope statusScope(STATUS_SHRINK, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if ((!isForced && IsDamageSourceFriendly(source)) || IsBoss()) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -452,6 +496,11 @@ void Entity::AddShrink(const EntityRef& source, int duration, bool isIgnoreBossC
|
||||
// whatever first spawned the source.
|
||||
void Entity::AddMagnetized(const EntityRef& source, int duration)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isIgnoreBossCooldown = false;
|
||||
StatusApplyScope statusScope(STATUS_MAGNETIZED, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -476,6 +525,11 @@ void Entity::AddMagnetized(const EntityRef& source, int duration)
|
||||
// spawned the source.
|
||||
void Entity::AddBaited(const EntityRef& source, int duration)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isIgnoreBossCooldown = false;
|
||||
StatusApplyScope statusScope(STATUS_BAITED, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -491,8 +545,13 @@ void Entity::AddBaited(const EntityRef& source, int duration)
|
||||
|
||||
// 006b77d0 Weakens the entity unless a friend did it, tinted purple, whatever its status guards.
|
||||
// The original ignores the duration it is given and always weakens for three frames or more.
|
||||
void Entity::AddWeakness(const EntityRef& source, int)
|
||||
void Entity::AddWeakness(const EntityRef& source, int requestedDuration)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isIgnoreBossCooldown = false;
|
||||
StatusApplyScope statusScope(STATUS_WEAKNESS, *this, source, requestedDuration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source)) return;
|
||||
int duration = apply_second_hand_duration(WEAKNESS_DURATION, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -507,6 +566,11 @@ void Entity::AddWeakness(const EntityRef& source, int)
|
||||
// 006b78d0 Marks the entity for Brimstone's bombs unless a friend did it, tinted red, whatever its status guards.
|
||||
void Entity::AddBrimstoneMark(const EntityRef& source, int duration)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isIgnoreBossCooldown = false;
|
||||
StatusApplyScope statusScope(STATUS_BRIMSTONE_MARK, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source)) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
@@ -521,6 +585,11 @@ void Entity::AddBrimstoneMark(const EntityRef& source, int duration)
|
||||
// 006b79d0 Ices the entity (never a boss) unless a friend did it, so it freezes solid when it dies.
|
||||
void Entity::AddIce(const EntityRef& source, int duration)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
bool isIgnoreBossCooldown = false;
|
||||
StatusApplyScope statusScope(STATUS_ICE, *this, source, duration, isIgnoreBossCooldown);
|
||||
if (statusScope.isCancelled) return;
|
||||
#endif
|
||||
if (IsDamageSourceFriendly(source) || IsBoss()) return;
|
||||
duration = apply_second_hand_duration(duration, source);
|
||||
Entity& head = *GetStatusEffectTarget();
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <filesystem>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// A bomb's fuse and damage, and the brimstone and giga bombs' own. Troll bombs light a random part of a second longer.
|
||||
constexpr int FUSE_FRAMES = 45;
|
||||
@@ -483,6 +486,9 @@ void Entity_Bomb::pulse_update(Entity_Player* spawner)
|
||||
// sound plays.
|
||||
void Entity_Bomb::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreBombUpdate", MC_PRE_BOMB_UPDATE, (int)variant}, false, this)) return Entity::Update();
|
||||
#endif
|
||||
if (isSkipNextUpdate)
|
||||
{
|
||||
isSkipNextUpdate = false;
|
||||
@@ -911,8 +917,16 @@ void Entity_Bomb::rocket_sprite_update(float shownAngle)
|
||||
// 006a5a60 Draws the bomb at its place: with costumes, the back costume, the bomb, then the others, each following the
|
||||
// bomb's first layer.
|
||||
// The original reads the first layer's frame without checking for one. Without one, the costumes are left out.
|
||||
void Entity_Bomb::Render(const Vector& offset)
|
||||
void Entity_Bomb::Render(const Vector& renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<Vector> moved =
|
||||
render_pre_run({"PreBombRender", MC_PRE_BOMB_RENDER, (int)variant}, this, renderOffset);
|
||||
if (!moved) return;
|
||||
const Vector& offset = *moved;
|
||||
#else
|
||||
const Vector& offset = renderOffset;
|
||||
#endif
|
||||
if (!isExists || !isVisible) return;
|
||||
if (isLoadCostumes) update_sparks();
|
||||
|
||||
@@ -989,7 +1003,19 @@ static void enemy_push(Entity_Bomb& bomb, Entity& collider)
|
||||
|
||||
// 006a5f00 Meets another entity: falling bombs and rockets pass tears and bombs, bombs pass pickups and slots, players
|
||||
// nudge it, its hit damages enemies once, and something low slows both down.
|
||||
// REPENTOGON's collision callbacks run around it.
|
||||
bool Entity_Bomb::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollisionCallbacks callbacks = {"PreBombCollision", MC_PRE_BOMB_COLLISION, MC_POST_BOMB_COLLISION, (int)variant};
|
||||
return collision_callbacks_run(*this, collider, isLow, callbacks, &Entity_Bomb::collision_react);
|
||||
#else
|
||||
return collision_react(collider, isLow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// HandleCollision's own code.
|
||||
bool Entity_Bomb::collision_react(Entity* collider, bool isLow)
|
||||
{
|
||||
LuaResult result = lua_engine_get().PreBombCollision(this, collider, isLow);
|
||||
if (result != LUA_RESULT_NIL) return result == LUA_RESULT_TRUE;
|
||||
|
||||
@@ -96,6 +96,7 @@ struct Entity_Bomb : Entity
|
||||
void update_sparks();
|
||||
|
||||
private:
|
||||
bool collision_react(Entity* collider, bool isLow);
|
||||
void fall_update(bool isBouncy);
|
||||
void pulse_update(Entity_Player* spawner);
|
||||
bool fuse_update(Entity_Player* spawner);
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
#include <bit>
|
||||
#include <cmath>
|
||||
#include <set>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/weapons.h"
|
||||
#endif
|
||||
|
||||
// An explosion's reach by its damage, a giga bomb's, and the crater's size at the smallest reach.
|
||||
constexpr float RADIUS_SMALL = 75;
|
||||
@@ -326,6 +329,9 @@ static void explosion_grid_break(const Explosion& explosion)
|
||||
// shrink one no player set off.
|
||||
void explosion_damage(Explosion explosion)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (explosion_damage_hook(explosion)) return;
|
||||
#endif
|
||||
if (is_scissored(explosion.source))
|
||||
{
|
||||
int scissors = g_game->playerManager.GetTrinketMultiplier(TRINKET_SAFETY_SCISSORS);
|
||||
@@ -770,6 +776,9 @@ static void giga_bomb_crater(const Explosion& explosion)
|
||||
// Bombs' eggs, Scatter Bombs' poison, Blood, Brimstone and Giga Bombs.
|
||||
void explosion_tear_flag_effects(const Explosion& explosion)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (explosion_tear_flag_effects_hook(explosion)) return;
|
||||
#endif
|
||||
const TearFlags& flags = explosion.tearFlags;
|
||||
Entity* source = explosion.source;
|
||||
if (flags[TEAR_BUTT_BOMB]) butt_bomb_spread(explosion);
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr float KNIFE_DAMAGE_DEFAULT = 22;
|
||||
constexpr float KNIFE_MAX_DISTANCE_DEFAULT = 100;
|
||||
@@ -855,6 +858,9 @@ void Entity_Knife::sword_beam_fire(Entity_Player* player)
|
||||
// the hit list's refresh, the mods' update and the grid it cuts. A knife whose owner lost its weapon goes.
|
||||
void Entity_Knife::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreKnifeUpdate", MC_PRE_KNIFE_UPDATE, (int)subtype}, false, this)) return Entity::Update();
|
||||
#endif
|
||||
if (!isInterpolating) friction *= KNIFE_FRICTION;
|
||||
Entity_Player* player = GetPlayer();
|
||||
|
||||
@@ -1606,8 +1612,16 @@ void Entity_Knife::render_orbit_trail(const Vector& offset)
|
||||
|
||||
// 00965d30 Draws a visible knife (none of a player's during a floor change): an orbiting thrown knife's trail first,
|
||||
// then the knife, then Dead Eye's mark over a club while its player holds charges.
|
||||
void Entity_Knife::Render(const Vector& offset)
|
||||
void Entity_Knife::Render(const Vector& renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<Vector> moved =
|
||||
render_pre_run({"PreKnifeRender", MC_PRE_KNIFE_RENDER, (int)variant}, this, renderOffset);
|
||||
if (!moved) return;
|
||||
const Vector& offset = *moved;
|
||||
#else
|
||||
const Vector& offset = renderOffset;
|
||||
#endif
|
||||
if (!isVisible) return;
|
||||
Entity_Player* player = GetPlayer();
|
||||
if (player && g_game->stageTransition.state != STAGE_TRANSITION_NONE) return;
|
||||
@@ -1645,7 +1659,19 @@ void Entity_Knife::Render(const Vector& offset)
|
||||
// thrown knife pushes bombs along; a vulnerable enemy (or fire, poop or TNT) not hit yet takes the knife's hit (a club's
|
||||
// scaled by its swing, Mom's Knife's by its charge and speed, with the player's tear effects one throw in six, or two
|
||||
// held) and its effects. A Lost Contact knife may destroy an enemy shot.
|
||||
// REPENTOGON's collision callbacks run around it.
|
||||
bool Entity_Knife::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollisionCallbacks callbacks = {"PreKnifeCollision", MC_PRE_KNIFE_COLLISION, MC_POST_KNIFE_COLLISION, (int)subtype};
|
||||
return collision_callbacks_run(*this, collider, isLow, callbacks, &Entity_Knife::collision_react);
|
||||
#else
|
||||
return collision_react(collider, isLow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// HandleCollision's own code.
|
||||
bool Entity_Knife::collision_react(Entity* collider, bool isLow)
|
||||
{
|
||||
constexpr float BOMB_PUSH = 0.6f;
|
||||
constexpr float BOMB_DRAG = 0.8f;
|
||||
|
||||
@@ -130,6 +130,7 @@ struct Entity_Knife : Entity
|
||||
void apply_hit_effects(const KnifeHit& hit);
|
||||
|
||||
private:
|
||||
bool collision_react(Entity* collider, bool isLow);
|
||||
bool held_update(Entity_Player* player);
|
||||
void ludovico_update();
|
||||
void path_update();
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
#include "entity/npc/basement.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr float KNIFE_CHARGE_DELAYS = 4;
|
||||
constexpr float KNIFE_CHARGE_MINIMUM = 0.001f;
|
||||
@@ -497,6 +500,9 @@ Entity_Knife* Weapon::fire_bone_club(Entity* clubParent, int clubVariant, bool i
|
||||
club.SetCollisionDamage(player->damage);
|
||||
club.rotationOffset = normalize_angle_degrees(rotationOffset);
|
||||
if (isCantOverwrite) club.AddEntityFlags(FLAG_DONT_OVERWRITE);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostFireBoneClub", MC_POST_FIRE_BONE_CLUB, &club);
|
||||
#endif
|
||||
club.spawnerEntity = owner;
|
||||
return &club;
|
||||
}
|
||||
@@ -731,8 +737,8 @@ Entity_Effect* Entity_Player::FireBrimstoneBall(const PosVel& shot, const Vector
|
||||
ball->timeout = BRIMSTONE_BALL_FRAMES;
|
||||
ball->lifespan = BRIMSTONE_BALL_FRAMES;
|
||||
ball->renderDepthOffset = TECH_LASER_FRONT_DEPTH;
|
||||
if (!HasCollectible(COLLECTIBLE_TECH_X)) return ball;
|
||||
|
||||
if (HasCollectible(COLLECTIBLE_TECH_X))
|
||||
{
|
||||
uint32_t ringSeed = Random();
|
||||
Entity_Laser* ring = static_cast<Entity_Laser*>(game_spawn({.position = ball->pos,
|
||||
.spawner = this,
|
||||
@@ -749,6 +755,10 @@ Entity_Effect* Entity_Player::FireBrimstoneBall(const PosVel& shot, const Vector
|
||||
ring->SetCollisionDamage(params.tearDamage);
|
||||
ring->radius = BRIMSTONE_BALL_RING_RADIUS;
|
||||
ring->spawnerEntity = this;
|
||||
}
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostFireBrimstoneBall", MC_POST_FIRE_BRIMSTONE_BALL, ball);
|
||||
#endif
|
||||
return ball;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
#include "game/sfx_manager.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr float THIN_SCALE_THRESHOLDS[] = {1.15f, 2.2f, 4.2f};
|
||||
constexpr float THIN_SCALE_DIVISORS[] = {1, 2, 4, 6};
|
||||
@@ -1012,6 +1015,9 @@ void Entity_Laser::color_cycle_update()
|
||||
// loop). Its first update sets it up instead: a static beam for Dogma, the Cage's Vis's own sprite.
|
||||
void Entity_Laser::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreLaserUpdate", MC_PRE_LASER_UPDATE, (int)variant}, false, this)) return Entity::Update();
|
||||
#endif
|
||||
if (tearFlags[TEAR_WAIT] && !IsCircleLaser() && timeout > 0) tear_wait_start();
|
||||
Entity* swirl = tearWaitEffect;
|
||||
if (swirl && static_cast<Entity_Effect*>(swirl)->state == 0 && waitFrames < LASER_WAIT_FRAMES)
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <map>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr float LASER_KNOCKBACK = 1.8f;
|
||||
constexpr float ATTRACTOR_NEAREST_START = 1e6f;
|
||||
@@ -128,6 +131,10 @@ static void laser_push(Entity_Laser& laser, Entity& entity, Vector direction, fl
|
||||
// spared. A Brimstone-marked entity takes a thick beam's hit harder, and Black Hp drops are rolled from its seed.
|
||||
void Entity_Laser::DoDamage(Entity* entity, float damage)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun post = {"PostLaserCollision", MC_POST_LASER_COLLISION, variant};
|
||||
ScopeExit postRun{[&] { callback_notify(lua_engine_get(), post, this, entity); }};
|
||||
#endif
|
||||
std::vector<uint32_t>& hits = hit_list_get();
|
||||
uint32_t hitIndex = entity->GetHitListIndex();
|
||||
auto slot = std::lower_bound(hits.begin(), hits.end(), hitIndex);
|
||||
@@ -499,6 +506,9 @@ void Entity_Laser::update_line_hits(float damage)
|
||||
float across = std::abs(direction.y * relative.x - direction.x * relative.y);
|
||||
float reach = variant == LASER_PRIDE ? vector_length(relative) * RING_REACH_SCALE : entity->size + size;
|
||||
if (across >= reach || along <= 0 || along >= std::abs(posOffset.y) + laserLength) continue;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreLaserCollision", MC_PRE_LASER_COLLISION, variant}, false, this, entity)) continue;
|
||||
#endif
|
||||
|
||||
DoDamage(entity, damage);
|
||||
if (is_knocked_back(*this, *entity)) laser_push(*this, *entity, direction, entity->mass);
|
||||
@@ -554,7 +564,12 @@ void Entity_Laser::update_line_hits(float damage)
|
||||
if (behindSquared < projection.distanceSquared) projection = {behindSquared, 0};
|
||||
}
|
||||
float reach = entity->size + size;
|
||||
if (reach * reach <= projection.distanceSquared)
|
||||
bool isMissed = reach * reach <= projection.distanceSquared;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun pre = {"PreLaserCollision", MC_PRE_LASER_COLLISION, variant};
|
||||
isMissed = isMissed || boolean_run(pre, false, this, entity);
|
||||
#endif
|
||||
if (isMissed)
|
||||
{
|
||||
travelled += length;
|
||||
continue;
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
#include "game/sfx_manager.h"
|
||||
#include "entity/weapon/fetus.h"
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr float LASER_INHERIT_SCALE = 0.4f;
|
||||
constexpr float FAMILIAR_EYE_SPREAD = 7;
|
||||
@@ -329,6 +332,9 @@ Entity_Laser* Weapon::FireBrimstone(const BrimstoneShot& shot)
|
||||
laser->isPlayerParams = true;
|
||||
laser->mass *= massMultiplier;
|
||||
laser->tearFlags = params.tearFlags;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostFireBrimstone", MC_POST_FIRE_BRIMSTONE, laser);
|
||||
#endif
|
||||
return laser;
|
||||
}
|
||||
|
||||
@@ -1323,6 +1329,11 @@ static void sneeze_blast(const SneezeHit& hit, Vector tip)
|
||||
// params at one and a half times the damage scale, and every burst is shielded. Whether it hurt an enemy.
|
||||
bool Weapon_Brimstone::fire_hitscan(const Vector& direction, float damageScale)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
auto sneeze = [&](const char* name, int callback) { unfiltered_notify(name, callback, owner, direction, damageScale); };
|
||||
sneeze("PreBrimstoneSneeze", MC_PRE_BRIMSTONE_SNEEZE);
|
||||
ScopeExit post{[&] { sneeze("PostBrimstoneSneeze", MC_POST_BRIMSTONE_SNEEZE); }};
|
||||
#endif
|
||||
SneezeHit hit;
|
||||
hit.color = get_laser_color();
|
||||
hit.owner = owner;
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The shot a fresh projectile is: its height, slight random fall, homing, curving and change defaults.
|
||||
constexpr float HEIGHT_START = -23;
|
||||
@@ -743,6 +746,10 @@ static void fly_ball_update(Entity_Projectile& ball)
|
||||
// parent.
|
||||
void Entity_Projectile::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreProjectileUpdate", MC_PRE_PROJECTILE_UPDATE, (int)variant}, false, this))
|
||||
return Entity::Update();
|
||||
#endif
|
||||
speedMultiplier = time_scale_get();
|
||||
if (pauseTimer > 0) pauseTimer--;
|
||||
if (projectileFlags & GRID_PASS_FLAGS) isCollidesWithGrid = false;
|
||||
@@ -1300,6 +1307,9 @@ void Entity_Projectile::death_update()
|
||||
if (projectileFlags & PROJECTILE_LASER_SHOT) laser_shot_dot_spawn();
|
||||
if (projectileFlags & PROJECTILE_SIDE_WAVE) side_wave_burst();
|
||||
if (variant == PROJECTILE_HEAD) head_splash();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"PostProjectileDeath", MC_POST_PROJECTILE_DEATH, (int)variant}, this);
|
||||
#endif
|
||||
Remove();
|
||||
if (variant == PROJECTILE_FIRE && spawnerType == ENTITY_BEAST) npc_sound_play(SOUND_BEAST_FIRE_RING, 1, 2, 1);
|
||||
}
|
||||
@@ -2391,8 +2401,16 @@ void Entity_Projectile::Interpolate()
|
||||
|
||||
// 0065cb60 Draws the shot, at the floor when it is rendered at the ground. A shot the Broken Modem froze draws
|
||||
// where it froze, scaled down and glitching.
|
||||
void Entity_Projectile::Render(const Vector& offset)
|
||||
void Entity_Projectile::Render(const Vector& renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<Vector> moved =
|
||||
render_pre_run({"PreProjectileRender", MC_PRE_PROJECTILE_RENDER, (int)variant}, this, renderOffset);
|
||||
if (!moved) return;
|
||||
const Vector& offset = *moved;
|
||||
#else
|
||||
const Vector& offset = renderOffset;
|
||||
#endif
|
||||
if (isRenderedAtGround) posOffset.y -= height;
|
||||
|
||||
bool isModemFrozen = HasEntityFlags(FLAG_FREEZE) && !vector_is_zero(modemPosition);
|
||||
@@ -2458,7 +2476,20 @@ void Entity_Projectile::update_height_collision()
|
||||
// 0065b670 Hits what it touches: a player above its reach (unless a hat or Infamy blocks it), an enemy when it is
|
||||
// friendly, and the familiars that take hits. Singe's ball, frozen enemies and poop break it. Whether the collision
|
||||
// is ignored. The Beast's lava ball never stops a collision.
|
||||
// REPENTOGON's collision callbacks run around it.
|
||||
bool Entity_Projectile::HandleCollision(Entity* collider, bool isLow)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CollisionCallbacks callbacks = {"PreProjectileCollision", MC_PRE_PROJECTILE_COLLISION, MC_POST_PROJECTILE_COLLISION,
|
||||
(int)variant};
|
||||
return collision_callbacks_run(*this, collider, isLow, callbacks, &Entity_Projectile::collision_react);
|
||||
#else
|
||||
return collision_react(collider, isLow);
|
||||
#endif
|
||||
}
|
||||
|
||||
// HandleCollision's own code.
|
||||
bool Entity_Projectile::collision_react(Entity* collider, bool isLow)
|
||||
{
|
||||
LuaResult luaResult = lua_engine_get().PreProjectileCollision(this, collider, isLow);
|
||||
if (luaResult == LUA_RESULT_TRUE) return true;
|
||||
|
||||
@@ -197,6 +197,7 @@ struct Entity_Projectile : Entity
|
||||
void update_height_collision();
|
||||
|
||||
private:
|
||||
bool collision_react(Entity* collider, bool isLow);
|
||||
float time_scale_get();
|
||||
bool modem_freeze_update();
|
||||
void animation_update();
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
#include "game/sfx_manager.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr float SWORD_LIFT = -10;
|
||||
constexpr float SWORD_CHARGE_DELAYS = 4;
|
||||
@@ -64,6 +67,9 @@ Entity_Knife* Weapon::FireSword(const KnifeShot& shot)
|
||||
}
|
||||
sword->rotationOffset = normalize_angle_degrees(shot.rotationOffset);
|
||||
if (shot.isCantOverwrite) sword->AddEntityFlags(FLAG_DONT_OVERWRITE);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostFireSword", MC_POST_FIRE_SWORD, sword);
|
||||
#endif
|
||||
return sword;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,12 @@
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/weapons.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
constexpr float TEAR_HEIGHT_START = -23;
|
||||
constexpr float TEAR_DAMAGE_DEFAULT = 3.5f;
|
||||
@@ -519,6 +525,9 @@ static void versus_circle_reflect(Entity_Tear& tear)
|
||||
// steer, grow, shrink, split, link and stick it.
|
||||
void Entity_Tear::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (boolean_run({"PreTearUpdate", MC_PRE_TEAR_UPDATE, (int)variant}, false, this)) return Entity::Update();
|
||||
#endif
|
||||
if (isFireSoundPending)
|
||||
{
|
||||
play_fire_sound();
|
||||
@@ -1430,8 +1439,16 @@ void Entity_Tear::big_spiral_apply(float strength)
|
||||
}
|
||||
|
||||
// 006790c0 Draws the tear with its halo, its tear effect behind or in front, and Dead Eye's glow.
|
||||
void Entity_Tear::Render(const Vector& offset)
|
||||
void Entity_Tear::Render(const Vector& renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
std::optional<Vector> moved =
|
||||
render_pre_run({"PreTearRender", MC_PRE_TEAR_RENDER, (int)variant}, this, renderOffset);
|
||||
if (!moved) return;
|
||||
const Vector& offset = *moved;
|
||||
#else
|
||||
const Vector& offset = renderOffset;
|
||||
#endif
|
||||
if (!isExists || !isVisible) return;
|
||||
|
||||
renderPosition = vector_add(render_position_get(vector_add(pos, posOffset), RENDER_SNAPPED), offset);
|
||||
@@ -2170,6 +2187,9 @@ void Entity_Tear::ApplyTearFlagEffects(Entity* entity, const Vector& position, c
|
||||
float damage)
|
||||
{
|
||||
if (!entity || (source && entity->IsDamageSourceFriendly(EntityRef(source)))) return;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (tear_flag_effects_hook({entity, position, flags, source, damage})) return;
|
||||
#endif
|
||||
|
||||
Vector direction = hit_direction_get(*entity, position, source);
|
||||
bool isActiveEnemy = entity->IsActiveEnemy(DEAD_EXCLUDED);
|
||||
|
||||
@@ -369,6 +369,7 @@ struct Entity_Tear : Entity
|
||||
float damage);
|
||||
|
||||
private:
|
||||
bool collision_react(Entity* collider, bool isLow);
|
||||
float animation_update();
|
||||
float spinning_animation_update();
|
||||
float fetus_animation_update();
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
#include "game/sfx_manager.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The splash a dying tear leaves: the poof sizes by its scale, the volumes and pitches of the sounds, the particles
|
||||
// the hard tears break into, Bob's head's and Ipecac's explosion, and the stains the plain tears leave.
|
||||
@@ -462,7 +465,12 @@ void Entity_Tear::death_update()
|
||||
if (splash.effect) poof_spawn(splash, explosionScale);
|
||||
if (std::find(TEAR_STAINING_VARIANTS.begin(), TEAR_STAINING_VARIANTS.end(), variant) != TEAR_STAINING_VARIANTS.end())
|
||||
blood_stains_spawn();
|
||||
if (isDead) Remove();
|
||||
if (!isDead) return;
|
||||
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"PostTearDeath", MC_POST_TEAR_DEATH, (int)variant}, this);
|
||||
#endif
|
||||
Remove();
|
||||
}
|
||||
|
||||
// Cricket's Body: four pieces at a random angle and its right angles, at the dying tear's speed (10 when it barely
|
||||
|
||||
+12
-1
@@ -14,6 +14,10 @@
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cstdio>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/saves.h"
|
||||
#endif
|
||||
|
||||
// The cutscene each ending plays, none for a death. Mom's Heart's first eleven kills each play the next of the Womb's
|
||||
// endings (cutscenes 4 to 14), any later one the credits.
|
||||
@@ -181,9 +185,16 @@ static void completion_mark_unlock(int completion, int playerType, int difficult
|
||||
|
||||
// 0095a7b0 Marks a completion for every main player (a twin once, the first of the pair), a risen Lazarus as Lazarus
|
||||
// II, then Mega Satan's and Mother's own unlocks.
|
||||
// Netplay is offline, so the online players' queued marks are left out.
|
||||
// Netplay is offline, so the online players' queued marks are left out. A mod may refuse or change the completion.
|
||||
void PlayerManager::unlock_completion_mark(int completionType)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!completion_event_pre(completionType)) return;
|
||||
ScopeExit post{[&] {
|
||||
CallbackRun run = {"PostCompletionEvent", MC_POST_COMPLETION_EVENT, completionType};
|
||||
callback_notify(lua_engine_get(), run, completionType);
|
||||
}};
|
||||
#endif
|
||||
Game* game = g_game;
|
||||
if (!game) return;
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@ extern "C"
|
||||
{
|
||||
#include "lua.h"
|
||||
}
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/level.h"
|
||||
#endif
|
||||
|
||||
constexpr const char* STAGES_XML = "stages.xml";
|
||||
constexpr const char* CURSES_XML = "curses.xml";
|
||||
@@ -1106,6 +1109,9 @@ void Game::Render()
|
||||
// or the online stats screen. The original's netplay player-list checks are is_online, as the game is offline.
|
||||
bool Game::IsPaused()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (isUpdateHeld) return true;
|
||||
#endif
|
||||
bool isOffline = !g_manager->netplayManager.is_online();
|
||||
|
||||
if (console.state != CONSOLE_CLOSED && isOffline) return true;
|
||||
|
||||
@@ -13,7 +13,11 @@
|
||||
#include "engine/kage_input.h"
|
||||
#include "engine/texture_cache.h"
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/collision.h"
|
||||
#include "repentogon/options.h"
|
||||
#include "repentogon/repentogon.h"
|
||||
#include "repentogon/saves.h"
|
||||
#endif
|
||||
#include <SDL3/SDL_mouse.h>
|
||||
#include <SDL3/SDL_video.h>
|
||||
@@ -607,6 +611,9 @@ void isaac_shutdown()
|
||||
data.Save();
|
||||
}
|
||||
if (manager.state == MANAGER_STATE_GAME) Game::Exit(true);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!repentogonOptions.isVanillaParity) mods_shutdown_notify(lua_engine_get());
|
||||
#endif
|
||||
log_printf(LOG_INFO, "Isaac has shut down successfully \n");
|
||||
}
|
||||
|
||||
@@ -1174,6 +1181,9 @@ void Manager::SetSaveSlot(uint32_t slot)
|
||||
}
|
||||
}
|
||||
currentSaveSlot = slot;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
save_slot_post(slot);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 00958aa0 Queues a new run on a character, challenge, seeds and difficulty: no saved run, rerun, debug run or daily.
|
||||
@@ -1460,6 +1470,9 @@ static void run_update(Manager& manager)
|
||||
entity->isInterpolating = false;
|
||||
}
|
||||
game.Update();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
grid_collision_cache_clear();
|
||||
#endif
|
||||
}
|
||||
else if (manager.optionsConfig.render.isInterpolationEnabled)
|
||||
game.interpolate_update();
|
||||
@@ -1598,6 +1611,9 @@ static void cursor_render(Manager& manager)
|
||||
// The mods' Workshop update screen is offline with Steam, and netplay draws nothing offline.
|
||||
void Manager::Render()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"MC_PRE_RENDER", MC_PRE_RENDER, std::nullopt});
|
||||
#endif
|
||||
KAGE::Graphics::Manager& graphics = KAGE::Graphics::manager;
|
||||
using KAGE::Graphics::PRESENT_FLUSH;
|
||||
using KAGE::Graphics::TARGET_SCREEN_SIZE;
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <optional>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/render.h"
|
||||
#endif
|
||||
|
||||
// classes.h declares the original's Lua imports, and its luaL_newstate differs from Lua's only in its return type.
|
||||
#define luaL_newstate lua_newstate_auxiliary
|
||||
@@ -595,6 +599,9 @@ void ModManager::LoadModContent()
|
||||
|
||||
g_manager->entityConfig.tainted_players_link();
|
||||
modDefaultsSprite.Load(MOD_DEFAULTS_SPRITE, GRAPHICS_LOAD);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("PostModsLoaded", MC_POST_MODS_LOADED);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 008f46f0 Adds each loaded mod's itempools.xml to the game's item pools, once a game exists.
|
||||
@@ -766,9 +773,16 @@ void ModManager::RenderCustomCharacterMenu(int characterId, Vector& renderPos, A
|
||||
{
|
||||
EntityConfig_Player* player = g_manager->entityConfig.GetPlayer(characterId);
|
||||
ANM2* sprite = character_sprite_play(characterId, PLAYER_SPRITE_MENU_BACKGROUND);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CharacterPage page = {sprite, defaultSprite, renderPos, characterId, sprite && player->isRenderCustomBackground};
|
||||
if (!character_page_pre(page)) return;
|
||||
#endif
|
||||
|
||||
if (!sprite || !player->isRenderCustomBackground) defaultSprite.RenderLayer(0, {renderPos});
|
||||
if (sprite) sprite->Render({renderPos});
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
character_page_post(page);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 008f8a60 Draws a modded character's game over sprite, when it brings one.
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
#include "game/game.h"
|
||||
#include "game/manager.h"
|
||||
#include "level/room.h"
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/audio.h"
|
||||
#endif
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <optional>
|
||||
@@ -455,6 +458,9 @@ void MusicManager::track_play(MusicChannel& channel, MusicTrack& track, float vo
|
||||
// 007e1d50 Plays a track from the start on the current channel at a volume, stopping both channels first.
|
||||
void MusicManager::Play(int musicId, float volume)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!music_play_pre(*this, musicId, volume, MUSIC_START_PLAY)) return;
|
||||
#endif
|
||||
if (!is_music_id_valid(musicId))
|
||||
{
|
||||
log_printf(LOG_ASSERT, "Music ID %d out of bounds.\n", musicId);
|
||||
@@ -482,6 +488,9 @@ void MusicManager::Play(int musicId, float volume)
|
||||
// other channel to the music volume. For the track already playing it only sets the target volume.
|
||||
void MusicManager::Crossfade(int musicId, float fadeRate)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!music_play_pre(*this, musicId, fadeRate, MUSIC_START_CROSSFADE)) return;
|
||||
#endif
|
||||
if (!is_music_id_valid(musicId))
|
||||
{
|
||||
log_printf(LOG_ASSERT, "Music ID %d out of bounds.\n", musicId);
|
||||
@@ -544,6 +553,9 @@ void MusicManager::Fadeout(float fadeRate)
|
||||
// The original's two unused arguments are dropped.
|
||||
void MusicManager::PlayJingle(int musicId)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!music_jingle_pre(musicId)) return;
|
||||
#endif
|
||||
if (!is_music_id_valid(musicId) || currentMusicId == MUSIC_BOSS_OVER_TWISTED) return;
|
||||
if (currentMusicId == MUSIC_REVERSE_GENESIS || tracks[musicId].path.empty()) return;
|
||||
|
||||
@@ -578,6 +590,9 @@ void MusicManager::Resume()
|
||||
// going silent at once in LAYER_MODE_REPLACE) with the channel updated right away.
|
||||
void MusicManager::EnableLayer(int layerId, LayerSwitch layerSwitch)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!music_layer_pre(layerId, LAYER_TOGGLE_ON)) return;
|
||||
#endif
|
||||
if (layerId < 0 || layerId >= MUSIC_LAYER_COUNT) return;
|
||||
|
||||
MusicChannel& channel = channels[currentChannel];
|
||||
@@ -602,6 +617,9 @@ void MusicManager::EnableLayer(int layerId, LayerSwitch layerSwitch)
|
||||
// 007e2410 Turns a layer of the current track off, to fade out.
|
||||
void MusicManager::DisableLayer(int layerId)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!music_layer_pre(layerId, LAYER_TOGGLE_OFF)) return;
|
||||
#endif
|
||||
if (layerId >= 0 && layerId < MUSIC_LAYER_COUNT) channels[currentChannel].enabledLayers.reset(layerId);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,11 @@
|
||||
#include <system_error>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/level.h"
|
||||
#include "repentogon/saves.h"
|
||||
#endif
|
||||
|
||||
constexpr int ACHIEVEMENT_NEVER = -2;
|
||||
constexpr int CUTSCENE_EPILOGUE = 3;
|
||||
@@ -1072,6 +1077,10 @@ bool PersistentGameData::TryUnlock(int achievementID)
|
||||
isChangesMade = true;
|
||||
check_challenge_unlocks();
|
||||
check_collection_unlocks();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PostAchievementUnlock", MC_POST_ACHIEVEMENT_UNLOCK, achievementID};
|
||||
callback_notify(lua_engine_get(), run, achievementID);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1085,9 +1094,12 @@ bool PersistentGameData::Unlocked(int achievementID)
|
||||
}
|
||||
|
||||
// 00929b40 Adds to an event counter (which stops at 0) and checks every unlock counters and completion marks give.
|
||||
// An id past the counters is ignored, where the game wrote past them.
|
||||
// An id past the counters is ignored, where the game wrote past them. A mod may refuse a character's completion mark.
|
||||
void PersistentGameData::IncreaseEventCounter(int eventCounter, int num)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!is_hook_inner() && completion_mark_hook(*this, eventCounter, num)) return;
|
||||
#endif
|
||||
if (isReadOnly || eventCounter < 0 || eventCounter >= EVENT_COUNTER_COUNT) return;
|
||||
|
||||
int& counter = eventCounters[eventCounter];
|
||||
@@ -1215,10 +1227,17 @@ void PersistentGameData::check_collection_unlocks()
|
||||
// 0092a7b0 Marks a challenge as won and unlocks its achievement.
|
||||
void PersistentGameData::AddChallenge(int challengeID)
|
||||
{
|
||||
if (isReadOnly || challengeID < 0 || challengeID >= CHALLENGE_COUNT) return;
|
||||
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (!challenge_done_pre(challengeID)) return;
|
||||
#endif
|
||||
if (!isReadOnly && challengeID >= 0 && challengeID < CHALLENGE_COUNT)
|
||||
{
|
||||
challenges[challengeID] = true;
|
||||
TryUnlock(CHALLENGE_WIN_ACHIEVEMENTS[challengeID]);
|
||||
}
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"PostChallengeDone", MC_POST_CHALLENGE_DONE, challengeID}, challengeID);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 0092b270 Stores the characters run with as a bit mask, unlocking an achievement once five have been.
|
||||
|
||||
@@ -15,6 +15,11 @@
|
||||
#include <ranges>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/items.h"
|
||||
#include "repentogon/saves.h"
|
||||
#endif
|
||||
|
||||
constexpr uint32_t ROOM_REF_STAGE_MASK = 0xffff;
|
||||
constexpr uint32_t ROOM_REF_HALF_MASK = 0xffff;
|
||||
@@ -107,6 +112,9 @@ static void ambush_resume(Ambush& ambush, int wave)
|
||||
// Netplay is offline.
|
||||
void Game::restore_game_state(GameState& state, GameRestore restore)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
game_state_callbacks_run(state, MC_PRE_GAME_STATE_RESTORE, MC_PRE_GLOWING_HOURGLASS_LOAD);
|
||||
#endif
|
||||
Manager& manager = *g_manager;
|
||||
uint64_t savedFlagsMask = (1ull << SAVED_GAME_STATE_FLAG_COUNT) - 1;
|
||||
|
||||
@@ -184,6 +192,9 @@ void Game::restore_game_state(GameState& state, GameRestore restore)
|
||||
if (ambush.isActive) ambush_resume(ambush, state.ambushWave);
|
||||
scoreSheet.restore_state(state.scoreSheet);
|
||||
for (Entity_Player* player : playerManager.playerList) player->update_mini_mush_costume();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
game_state_callbacks_run(state, MC_POST_GAME_STATE_RESTORE, MC_POST_GLOWING_HOURGLASS_LOAD);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Part of 00706020: the familiars and friendly enemies leave the room's lists (the state brings them back), counting
|
||||
@@ -963,6 +974,10 @@ static void dark_esau_restore(Entity_Player& player)
|
||||
// the co-op ghost's entrance and a sub player the Soul of the Forgotten no longer needs. Its stats are evaluated again.
|
||||
void Entity_Player::RestoreGameState_PostLevelInit(GameStatePlayer& saved)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
isFamiliarsRestoring = true;
|
||||
ScopeExit restored = {[] { isFamiliarsRestoring = false; }};
|
||||
#endif
|
||||
for (const FamiliarData& familiar : saved.familiars)
|
||||
{
|
||||
Vector spot = vector_add(pos, vector_scale(random_direction(), FAMILIAR_RESTORE_SCATTER));
|
||||
|
||||
+18
-1
@@ -7,6 +7,10 @@
|
||||
#include "game/manager.h"
|
||||
#include "engine/platform.h"
|
||||
#include "level/room.h"
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/saves.h"
|
||||
#endif
|
||||
|
||||
constexpr int CHARGER_MY_SHADOW = 1;
|
||||
constexpr int FAMILIAR_UMBILICAL_BABY = 240;
|
||||
@@ -29,6 +33,9 @@ static void versus_store(DeathmatchManager& manager, GameState& state)
|
||||
// The saved flags are the first 53 of the run's state flags.
|
||||
void Game::store_game_state(GameState& state)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
game_state_callbacks_run(state, MC_PRE_GAME_STATE_SAVE, MC_PRE_GLOWING_HOURGLASS_SAVE);
|
||||
#endif
|
||||
state.Clear();
|
||||
state.seeds = seedEffects;
|
||||
state.playerManagerSeed = playerManager.rng._seed;
|
||||
@@ -81,6 +88,9 @@ void Game::store_game_state(GameState& state)
|
||||
state.ambushWave = ambush.currentWave > 0 ? ambush.currentWave - 1 : ambush.currentWave;
|
||||
scoreSheet.store_state(state.scoreSheet);
|
||||
versus_store(deathmatchManager, state);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
game_state_callbacks_run(state, MC_POST_GAME_STATE_SAVE, MC_POST_GLOWING_HOURGLASS_SAVE);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 00705ee0 Saves the run for the Glowing Hourglass as the players enter a room, by the door they leave it through.
|
||||
@@ -492,8 +502,12 @@ void Entity_Player::StoreGameState(GameStatePlayer* saveState, bool isSaveTempor
|
||||
{
|
||||
if (entity->type != ENTITY_FAMILIAR) continue;
|
||||
Entity_Familiar& familiar = *static_cast<Entity_Familiar*>(entity);
|
||||
if (familiar.player == this && is_familiar_saved(familiar, isSaveTemporaryFamiliars))
|
||||
if (familiar.player != this || !is_familiar_saved(familiar, isSaveTemporaryFamiliars)) continue;
|
||||
|
||||
familiar.store_backup(&state.familiars.emplace_back());
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("EntitySave", MC_ENTITY_SAVE, entity);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
state.levelEffectItems = levelEffectItems;
|
||||
@@ -511,4 +525,7 @@ void Entity_Player::StoreGameState(GameStatePlayer* saveState, bool isSaveTempor
|
||||
state.queuedItem = queuedItem;
|
||||
state.temporaryEffects = temporaryEffects.effects;
|
||||
state.strengthMaxHearts = strengthMaxHearts;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
unfiltered_notify("EntitySave", MC_ENTITY_SAVE, (Entity*)this);
|
||||
#endif
|
||||
}
|
||||
@@ -2,6 +2,9 @@
|
||||
#include "engine/data.h"
|
||||
#include "game/music_manager.h"
|
||||
#include "game/manager.h"
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/audio.h"
|
||||
#endif
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
#include <optional>
|
||||
@@ -249,6 +252,9 @@ void SFXManager::Preload(int soundId)
|
||||
// Called without a pan (0092df00), it pans to the center.
|
||||
void SFXManager::Play(int soundId, SoundPlay play)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (sfx_play_hook(*this, soundId, play)) return;
|
||||
#endif
|
||||
SoundEffect* sound = sound_find(soundId);
|
||||
if (!sound) return;
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
#include <vector>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/level.h"
|
||||
#endif
|
||||
|
||||
constexpr int ROOM_INDEX_MIN = -20;
|
||||
constexpr int ROOM_INDEX_MAX = LEVEL_GRID_CELLS - 1;
|
||||
@@ -372,6 +375,9 @@ static void enter_door_open(Level& level, int previousType)
|
||||
// dropped, a mineshaft entrance marks its descent, the new room loads and its entry door opens, then the map updates.
|
||||
void Level::ChangeRoom(int targetRoomIdx, int dimension)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
change_room_pre(targetRoomIdx, dimension);
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
PersistentGameData& persistent = g_manager->persistentGameData;
|
||||
int newRoomIdx = std::clamp(targetRoomIdx, ROOM_INDEX_MIN, ROOM_INDEX_MAX);
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <optional>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/level.h"
|
||||
#endif
|
||||
|
||||
constexpr float TRAPDOOR_LOOP_FADE = 0.05f;
|
||||
constexpr float TRAPDOOR_HEARING_DISTANCE = 200;
|
||||
@@ -338,6 +341,9 @@ static void screen_effects_update(Game& game)
|
||||
// The online stats are not registered: Game's onlinePlayerStats stays a generated vector.
|
||||
void Game::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
isUpdateHeld = false;
|
||||
#endif
|
||||
if (console.update_state()) return;
|
||||
|
||||
trapdoor_loop_sfx_update(*this);
|
||||
@@ -389,6 +395,9 @@ void Game::Update()
|
||||
if (pauseScreen.is_pausing()) return;
|
||||
}
|
||||
if (isOffline && revivePlayerMenu.state != REVIVE_MENU_HIDDEN) return revivePlayerMenu.Update();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (game_update_is_skipped()) return;
|
||||
#endif
|
||||
|
||||
timers_update(*this);
|
||||
room->Update();
|
||||
|
||||
@@ -21,6 +21,10 @@
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
#include <utility>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/level.h"
|
||||
#endif
|
||||
|
||||
// A wave's difficulty by wave (one later on Hard), the room subtypes of normal and boss waves, how often a wave is
|
||||
// drawn again (the special rooms' stage the second time) before none is called, and the Death Certificate's
|
||||
@@ -132,6 +136,9 @@ static std::vector<std::pair<int, RoomEntry>> wave_entries_pick(Ambush& ambush)
|
||||
.subtype = isBossWave ? WAVE_SUBTYPE_BOSS : WAVE_SUBTYPE_NORMAL,
|
||||
.type = ROOM_CHALLENGE};
|
||||
RoomConfig_Room* wave = game.roomConfig.GetRandomRoom(ambush.waveRng.Next(), WEIGHT_REDUCE, query);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
wave = wave_room_select(wave, MC_PRE_SELECT_AMBUSH_WAVE, ambush.waveRng._seed);
|
||||
#endif
|
||||
if (!wave)
|
||||
{
|
||||
if (stageId == STAGE_ID_SPECIAL_ROOMS)
|
||||
@@ -193,6 +200,9 @@ void Ambush::SpawnWave()
|
||||
spawned->spawnGridIndex = cell;
|
||||
}
|
||||
wave_summoned();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"PostStartAmbushWave", MC_POST_START_AMBUSH_WAVE, std::nullopt}, false);
|
||||
#endif
|
||||
}
|
||||
|
||||
// A boss's pentagram where it is to rise, from the next seed.
|
||||
@@ -277,6 +287,9 @@ void Ambush::SpawnBossrushWave()
|
||||
boss_rush_ground_clear(boss.type, spot);
|
||||
}
|
||||
wave_summoned();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"PostStartAmbushWave", MC_POST_START_AMBUSH_WAVE, std::nullopt}, true);
|
||||
#endif
|
||||
}
|
||||
|
||||
// 00834350 Runs the fight: 30 frames after a wave's enemies (the Boss Rush's bosses) are gone the next is called, the
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
constexpr std::string_view DEFAULT_PROPS = "gfx/grid/props_01_basement.anm2";
|
||||
constexpr std::string_view DEFAULT_ROCKS = "gfx/grid/rocks_basement.png";
|
||||
@@ -359,6 +362,10 @@ bool Backdrop::LoadConfig(std::string_view path)
|
||||
// loads its graphics if asked.
|
||||
void Backdrop::Init(uint32_t id, bool isLoadGraphics)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PreBackdropChange", MC_PRE_BACKDROP_CHANGE, std::nullopt};
|
||||
id = (uint32_t)callback_integer_run(lua_engine_get(), run, (int)id, id);
|
||||
#endif
|
||||
Room& room = *g_game->room;
|
||||
|
||||
backdropId = (int)id < 0 || (int)id >= BACKDROP_COUNT ? 1 : id;
|
||||
@@ -577,6 +584,10 @@ void Backdrop::load_details()
|
||||
graphics.isCullOffscreen = false;
|
||||
render_ashpit_ash();
|
||||
pre_render_walls();
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"MC_POST_BACKDROP_PRE_RENDER_WALLS", MC_POST_BACKDROP_PRE_RENDER_WALLS,
|
||||
std::nullopt});
|
||||
#endif
|
||||
graphics.isCullOffscreen = true;
|
||||
gfx.reset();
|
||||
nlFloorGfx.reset();
|
||||
@@ -1815,6 +1826,9 @@ void Backdrop::render_wall_detail(const WallDetail& detail)
|
||||
// blends its floor, the others draw it opaque.
|
||||
void Backdrop::RenderFloor(Vector renderOffset, ColorMod color)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"MC_PRE_BACKDROP_RENDER_FLOOR", MC_PRE_BACKDROP_RENDER_FLOOR, std::nullopt}, &color);
|
||||
#endif
|
||||
KAGE::Graphics::Manager& graphics = KAGE::Graphics::manager;
|
||||
KAGE::Graphics::BlendMode savedBlend = graphics.blendMode;
|
||||
graphics.blend_set(backdropId == BACKDROP_GREED_SHOP ? KAGE::Graphics::BLEND_NORMAL : KAGE::Graphics::BLEND_OPAQUE);
|
||||
@@ -1961,6 +1975,9 @@ static void wall_surface_blit(KAGE::Graphics::ImageBase& surface, const SurfaceR
|
||||
// the wall surface's walls in the room's wall color, piece by piece around the floor.
|
||||
void Backdrop::RenderWalls(Vector renderOffset, ColorMod color)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"MC_PRE_BACKDROP_RENDER_WALLS", MC_PRE_BACKDROP_RENDER_WALLS, std::nullopt}, &color);
|
||||
#endif
|
||||
KAGE::Graphics::Manager& graphics = KAGE::Graphics::manager;
|
||||
|
||||
if (waterGfx) RenderWater(renderOffset);
|
||||
@@ -2172,6 +2189,9 @@ static std::span<const WaterStrip> water_strips_get(int shape)
|
||||
// the top and bottom walls, scrolling with the frames (backward for a reversed sheet), each pushed behind the walls.
|
||||
void Backdrop::RenderWater(Vector renderOffset)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"MC_PRE_BACKDROP_RENDER_WATER", MC_PRE_BACKDROP_RENDER_WATER, std::nullopt});
|
||||
#endif
|
||||
KAGE::Graphics::Manager& graphics = KAGE::Graphics::manager;
|
||||
KAGE::Graphics::BlendMode savedBlend = graphics.blendMode;
|
||||
Room& room = *g_game->room;
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
#include "level/room.h"
|
||||
#include <numeric>
|
||||
#include <utility>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The curses that shape the floor as it is laid out, which RemoveCurses leaves on.
|
||||
constexpr uint32_t FLOOR_SHAPING_CURSES = CURSE_OF_LABYRINTH | CURSE_OF_GIANT;
|
||||
@@ -181,5 +184,9 @@ bool Level::maze_swap_rooms(int roomIdx, int otherRoomIdx)
|
||||
|
||||
if (grid._type == GRID_DOOR || otherGrid._type == GRID_DOOR) std::swap(grid, otherGrid);
|
||||
}
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
CallbackRun run = {"PostSwapRooms", MC_POST_SWAP_ROOMS, std::nullopt};
|
||||
callback_notify(lua_engine_get(), run, GetRoomByIdx(roomIdx), GetRoomByIdx(otherRoomIdx));
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
@@ -4,6 +4,9 @@
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
#include <deque>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// A spot a candidate room may take beside a door: its top left cell and shape.
|
||||
struct ShapeSpot
|
||||
@@ -157,6 +160,11 @@ void LevelGenerator::Generate(const GenerationSettings& settings, const LevelGen
|
||||
if (rooms[deadEnds[j]].distanceFromStart > rooms[deadEnds[farthest]].distanceFromStart) farthest = j;
|
||||
std::swap(deadEnds[i], deadEnds[farthest]);
|
||||
}
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
constexpr int LAYOUT_GENERATED_PARAM = 12;
|
||||
CallbackRun run = {"PostLevelLayoutGenerated", MC_POST_LEVEL_LAYOUT_GENERATED, LAYOUT_GENERATED_PARAM};
|
||||
callback_notify(lua_engine_get(), run, LuaOpaque{});
|
||||
#endif
|
||||
}
|
||||
|
||||
// 009b04d0 Grows rooms breadth first from the start: each room taken from the queue offers its shuffled candidates,
|
||||
|
||||
+18
-1
@@ -23,6 +23,10 @@
|
||||
#include <cmath>
|
||||
#include <array>
|
||||
#include <span>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#include "repentogon/level.h"
|
||||
#endif
|
||||
|
||||
// A room of a Greed floor's fixed layout: its cell, shape and type, and the cell and side it joins the layout through
|
||||
// (none for the start room).
|
||||
@@ -465,6 +469,11 @@ static void greedier_champion_make(Room& room, RNG& rng)
|
||||
// the wave (a boss room for the boss waves) by the wave's seed. Greedier makes one of them a champion.
|
||||
void Room::SpawnGreedModeWave()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
ScopeExit post{[] {
|
||||
callback_notify(lua_engine_get(), {"PostStartGreedWave", MC_POST_START_GREED_WAVE, std::nullopt});
|
||||
}};
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
int wavesBefore = game.greedModeWave;
|
||||
uint32_t wave = std::min<uint32_t>((uint32_t)wavesBefore + 1, GREED_WAVE_LAST);
|
||||
@@ -513,6 +522,10 @@ void Room::SpawnGreedModeWave()
|
||||
.stageId = stageId,
|
||||
.type = wave < greed_boss_wave() ? ROOM_CHALLENGE : ROOM_BOSS};
|
||||
RoomConfig_Room* waveRoom = game.roomConfig.GetRandomRoom(rng.Next(), WEIGHT_KEEP, query);
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
uint32_t waveSeed = game.greedWaveSeeds[std::min<uint32_t>(wave, GREED_WAVE_SEED_COUNT - 1)];
|
||||
waveRoom = wave_room_select(waveRoom, MC_PRE_SELECT_GREED_WAVE, waveSeed);
|
||||
#endif
|
||||
|
||||
if (!waveRoom)
|
||||
{
|
||||
@@ -712,8 +725,12 @@ constexpr ColorMod GOLD_GRID_COLOR = {{1, 1, 1, 1}, {3, 1.8f, 0, 0.8f}, {0, 0, 0
|
||||
|
||||
// 007ebd50 Room::SpawnGridEntityDesc: a grid entity spawned on a free cell (a flat one where nothing collides, any
|
||||
// other where the path is not blocked) from a saved description, replacing what stood there.
|
||||
static bool room_grid_desc_spawn(Room& room, int gridIndex, const GridEntityDesc& desc)
|
||||
bool room_grid_desc_spawn(Room& room, int gridIndex, const GridEntityDesc& gridDesc)
|
||||
{
|
||||
GridEntityDesc desc = gridDesc;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
if (std::optional<bool> isSpawned = grid_desc_spawn_pre(room, gridIndex, desc)) return *isSpawned;
|
||||
#endif
|
||||
if ((uint32_t)gridIndex >= ROOM_GRID_CELLS)
|
||||
{
|
||||
log_printf(LOG_ASSERT, "SpawnGridEntity: Grid index invalid\n");
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The G FUEL seed's props: on the second and later floors, every fifth seed, and always on these stages.
|
||||
constexpr int GFUEL_STAGES[] = {3, 4, 11};
|
||||
@@ -92,6 +95,10 @@ void GridEntity_Decoration::subclass_init()
|
||||
// its color under the player.
|
||||
void GridEntity_Decoration::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
GridUpdateScope scope(*this, MC_PRE_GRID_ENTITY_DECORATION_UPDATE, MC_POST_GRID_ENTITY_DECORATION_UPDATE);
|
||||
if (scope.isSkipped) return;
|
||||
#endif
|
||||
if (variant == DECORATION_HIDDEN || !sprite.isLoaded)
|
||||
return;
|
||||
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
#include "level/room.h"
|
||||
#include "engine/seeds.h"
|
||||
#include <cmath>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// The rooms a door can lead to off the map: the Downpour's mirror and the Mines' shaft.
|
||||
constexpr int DOOR_TARGET_MIRROR = -100;
|
||||
@@ -829,6 +832,10 @@ static bool is_reopen_ready(GridEntity_Door& door)
|
||||
// hidden room's door for the Shiny Rock.
|
||||
void GridEntity_Door::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
GridUpdateScope scope(*this, MC_PRE_GRID_ENTITY_DOOR_UPDATE, MC_POST_GRID_ENTITY_DOOR_UPDATE);
|
||||
if (scope.isSkipped) return;
|
||||
#endif
|
||||
Room& room = *g_game->room;
|
||||
updateCount++;
|
||||
if (variant == DOOR_LOCKED_KEYFAMILIAR && (g_game->gameStateFlags & (1ull << GAME_STATE_MEGA_SATAN_DOOR_OPENED)))
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
#include "entity/player/stats.h"
|
||||
#include "level/room.h"
|
||||
#include "engine/seeds.h"
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// A grid fire's grid path while it stands, the odds a fresh one burns red, and its red tints.
|
||||
constexpr int GRID_FIRE_PATH = 1400;
|
||||
@@ -76,6 +79,10 @@ void GridEntity_Fire::subclass_init()
|
||||
// the nearest player in sight. Embers drift up from it, wavering, until their time is up.
|
||||
void GridEntity_Fire::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
GridUpdateScope scope(*this, MC_PRE_GRID_ENTITY_FIRE_UPDATE, MC_POST_GRID_ENTITY_FIRE_UPDATE);
|
||||
if (scope.isSkipped) return;
|
||||
#endif
|
||||
Game& game = *g_game;
|
||||
Room& room = *game.room;
|
||||
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
#include "game/game.h"
|
||||
#include "level/room.h"
|
||||
#include <string>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// A ledge cell shows one of the dungeon's floor tiles: Rotgut's at a random frame of its Floor, the others one of
|
||||
// three Floor animations.
|
||||
@@ -45,6 +48,10 @@ void GridEntity_Gravity::PostInit()
|
||||
// 0099b980 The players standing in it fall, and its tile animates.
|
||||
void GridEntity_Gravity::Update()
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
GridUpdateScope scope(*this, MC_PRE_GRID_ENTITY_GRAVITY_UPDATE, MC_POST_GRID_ENTITY_GRAVITY_UPDATE);
|
||||
if (scope.isSkipped) return;
|
||||
#endif
|
||||
Room& room = *g_game->room;
|
||||
for (Entity_Player* player : g_game->playerManager.playerList)
|
||||
if (room.GetGridIndex(player->pos) == gridIndex) player->AddEntityFlags(FLAG_APPLY_GRAVITY);
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
#include <cfloat>
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
#include "repentogon/callbacks.h"
|
||||
#endif
|
||||
|
||||
// TNT still standing before its output trigger blows it up.
|
||||
constexpr int TNT_STATE_STANDING_LAST = 3;
|
||||
@@ -165,6 +168,9 @@ void GridEntity::Init(uint32_t seed)
|
||||
spawnCount++;
|
||||
isInitialized = true;
|
||||
spawnFrame = g_game->frameCount;
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
callback_notify(lua_engine_get(), {"PostGridEntitySpawn", MC_POST_GRID_ENTITY_SPAWN, (int)type}, this);
|
||||
#endif
|
||||
}
|
||||
|
||||
// The entity as the room saves its cell.
|
||||
@@ -528,6 +534,15 @@ static void sacrifice_reward(GridEntity& spikes, Entity& victim)
|
||||
// What it hurts is pushed away, fire hisses, and spikes pay out a spike offer or a sacrifice.
|
||||
void GridEntity::hurt_func(Entity& entity, const GridHurt& hurt)
|
||||
{
|
||||
#ifdef ISAAC_REPENTOGON
|
||||
int gridType = type;
|
||||
auto run = [&](int callback) {
|
||||
return callback_boolean_get({"GridHurtDamage", callback, gridType}, this, &entity, hurt.playerDamage,
|
||||
hurt.damageFlags, hurt.damage, hurt.isIgnoreGridCollisionClass);
|
||||
};
|
||||
if (run(MC_GRID_HURT_DAMAGE)) return;
|
||||
ScopeExit post{[&] { run(MC_POST_GRID_HURT_DAMAGE); }};
|
||||
#endif
|
||||
if (is_spared(entity, hurt)) return;
|
||||
|
||||
EntityRef source;
|
||||
|
||||
Loaded 100 of 167 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user