Advertisement
_Kilburn

Repentance v1.7.5 modding API changes

Nov 10th, 2021
18,097
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  1. General changes:
  2. - Fixed custom sounds not working
  3. - Fixed several methods from the TemporaryEffects class crashing the game
  4. - Fixed mods re-enabling themselves upon updating
  5. - Added support for USE_NOANIM and USE_NOCOSTUME to EntityPlayer:AddCard and EntityPlayer:AddPill
  6. - Fixed a crash caused by EntityPlayer:GetBombVariant
  7. - Modified MC_EXECUTE_CMD Lua callback to provide a reference to the player that ran the command
  8. - Removed ItemConfig:GetCostumes() (it never actually did anything)
  9. - Added missing STATE_ATTACK5 enum from NpcState
  10. - Fixed all NpcState enums after STATE_ATTACK4 having an incorrect value
  11. - Renamed TRINKET_FIRECRACKER and TRINKET_GIANT_BEAN enums to TRINKET_SHORT_FUSE and TRINKET_GIGANTE_BEAN
  12. - Increased max animations per ANM2 file from 64 to 256
  13. - Console commands now refer to items, cards, pills and entities by their English name regardless of the current language settings
  14. - Added a "Force Water" hint entity (970.1.11) which forces the current room to be flooded regardless of the current level
  15. - Added PoopSpellType and LaserSubType enums
  16. - Shaders now accept the #version preprocessor directive, however the "lowp" and "mediump" keywords must be removed if any preprocessor directive is present (these never actually did anything on PC)
  17.  
  18. New bindings:
  19. - float Isaac.GetScreenWidth()
  20. - float Isaac.GetScreenHeight()
  21. - float Isaac.GetScreenPointScale()
  22. - void EntityPlayer:AnimatePickup(Sprite Sprite, boolean HideShadow = false, string AnimName = "Pickup")
  23. * Plays a pickup animation using any supplied Sprite object
  24. * HideShadow should be usually set to true when rendering a sprite with a custom shadow layer
  25. - void EntityPlayer:UsePoopSpell(PoopSpellType Type)
  26. * Triggers one of Tainted ???'s poop spells (see PoopSpellType enum)
  27. - int EntityPlayer:GetMaxPoopMana()
  28. * Returns the max amount of poop consumables that can be held by the player
  29. - void EntityPlayer:AddPoopMana(int Num)
  30. * Adds (or remove) poop consumables from the player
  31. - int EntityPlayer:GetPoopMana()
  32. * Returns how many poop consumables the player is currently holding
  33. - float EntityPlayer.TearRange
  34. * Can be used to get or set the player's tear range in MC_EVALUATE_CACHE
  35. - PoopSpellType EntityPlayer:GetPoopSpell(int Position)
  36. * Returns the poop spell at the given position in the player's spell queue
  37. - boolean Room:TrySpawnDevilRoomDoor(boolean Animate = false, boolean Force = false)
  38. * Attempts to spawn a door to the devil or angel room
  39. * This usually does nothing inside of non-boss rooms unless Force is set to true
  40. - boolean Room:TrySpawnBossRushDoor(boolean IgnoreTime = false, boolean Force = false)
  41. * Attempts to spawn a door to the boss rush
  42. * This usually does nothing outside of Mom's boss room unless Force is set to true
  43. - boolean Room:TrySpawnMegaSatanRoomDoor(boolean Force = false)
  44. * Attempts to spawn a door to Mega Satan
  45. * This usually does nothing outside of the starting room of the Chest/Dark Room unless Force is set to true
  46. - boolean Room:TrySpawnBlueWombDoor(boolean FirstTime = true, boolean IgnoreTime = false, boolean Force = false)
  47. * Attempts to spawn a door to the Blue Womb
  48. * This usually does nothing outside of Mom's Heart's boss room unless Force is set to true
  49. - boolean Room:TrySpawnTheVoidDoor(boolean Force = false)
  50. * Attempts to spawn a door to a room containing a Void portal
  51. * This usually does nothing outside of Hush's boss room unless Force is set to true
  52. - boolean Room:TrySpawnSecretExit(boolean Animate = false, boolean Force = false)
  53. * Attempts to spawn a door to the Downpour, Mines or Mausoleum depending on the current floor
  54. * This usually does nothing outside of boss rooms unless Force is set to true
  55. - boolean Room:TrySpawnSecretShop(boolean Force = false)
  56. * Attempts to spawn a trapdoor to the Member Card shop within the current room
  57. * This usually does nothing outside of shops or if the player doesn't hold a Member Card unless Force is set to true
  58. - boolean Room:TrySpawnSpecialQuestDoor()
  59. * Attempts to spawn either a door to the Mirror Dimension in Downpour, or the abandoned mineshaft in the Mines
  60. - void Room:TriggerClear(boolean Silent = false)
  61. * Triggers all room clear effects (does not actually clear the room)
  62. * Door opening sounds can be muted by setting Silent to true
  63. - boolean Room:HasLava()
  64. * Returns true if the room contains lava pits
  65. - float Room:GetLavaIntensity()
  66. * Usually returns 1, unless the lava is in the process of being cooled down by Flush! or other room flooding effects, in which case this will gradually decrease down to 0
  67. - void Room:StopRain()
  68. * Stops any rain effects in the room
  69. - Vector Room:GetWaterCurrent()
  70. * Returns a vector corresponding to any water current in the room
  71. - void Room:InvalidatePickupVision()
  72. * Causes chest previews from Guppy's Eye to be updated on the next frame
  73. - boolean Room:IsMirrorWorld()
  74. * Returns true if the player is inside the mirror dimension
  75. - boolean Room:HasCurseMist()
  76. * Returns true if the player is inside the abandoned mineshaft
  77. - boolean Level:MakeRedRoomDoor(int CurrentRoomIdx, DoorSlot Slot)
  78. * Attempts to create a red room door in the given room at the given door slot
  79. * Returns true on success
  80. - float Level:GetPlanetariumChance()
  81. * Returns the probability of getting a Planetarium (in the 0-1 range)
  82. - boolean Level:IsAscent()
  83. * Returns true if the player is in the Ascent
  84. - boolean Level:IsPreAscent()
  85. * Returns true if the player is in the version of Mausoleum/Gehenna II leading to the Ascent
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement