Skip to content

Commit fd95a17

Browse files
committed
Additional docs for upcoming 1.1.2
1 parent e25eccb commit fd95a17

17 files changed

Lines changed: 82 additions & 456 deletions

docs/docs/EntityEffect.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ tags:
88
--8<-- "docs/snippets/EntityClassDiagram_NewFunkyMode.md"
99
## Functions
1010

11-
### AddAquariusTearFlags () {: aria-label='Functions' }
12-
#### void GetAquariusTearFlags ( [TearFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/TearFlags.html) ) {: .copyable aria-label='Functions' }
13-
???+ info "Aquarius creep only"
14-
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`
11+
### AddTearFlags () {: aria-label='Functions' }
12+
#### void AddTearFlags ( [TearFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/TearFlags.html) ) {: .copyable aria-label='Functions' }
13+
???+ info "Applicable effects only"
14+
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`, `EffectVariant.BRIMSTONE_BALL`, `EffectVariant.TECH_DOT`, and `EffectVariant.CHAIN_LIGHTNING`.
1515

1616
___
17-
### ClearAquariusTearFlags () {: aria-label='Functions' }
18-
#### void GetAquariusTearFlags ( ) {: .copyable aria-label='Functions' }
19-
???+ info "Aquarius creep only"
20-
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`
17+
### ClearTearFlags () {: aria-label='Functions' }
18+
#### void ClearTearFlags ( ) {: .copyable aria-label='Functions' }
19+
???+ info "Applicable effects only"
20+
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`, `EffectVariant.BRIMSTONE_BALL`, `EffectVariant.TECH_DOT`, and `EffectVariant.CHAIN_LIGHTNING`.
2121

2222
___
2323
### CreateLight () {: aria-label='Functions' }
@@ -30,21 +30,27 @@ ___
3030
#### [EntityEffect](EntityEffect.md) CreateLootPreview ( [Vector](Vector.md) Position, [EntityPickup](EntityPickup.md) Owner, [EntityEffect](EntityEffect.md) Effect ) {: .copyable aria-label='Functions' }
3131

3232
___
33-
### GetAquariusTearFlags () {: aria-label='Functions' }
34-
#### [TearFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/TearFlags.html) GetAquariusTearFlags ( ) {: .copyable aria-label='Functions' }
35-
???+ info "Aquarius creep only"
36-
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`
33+
### GetGridEntityDesc () {: aria-label='Functions' }
34+
#### [GridEntityDesc](https://wofsauge.github.io/IsaacDocs/rep/GridEntityDesc.html) GetGridEntityDesc ( ) {: .copyable aria-label='Functions' }
35+
???+ info "Applicable effects only"
36+
Only works for `EffectVariant.GRID_ENTITY_PROJECTILE_HELPER`.
3737

3838
___
39-
### HasAquariusTearFlags () {: aria-label='Functions' }
40-
#### boolean GetAquariusTearFlags ( [TearFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/TearFlags.html) ) {: .copyable aria-label='Functions' }
41-
???+ info "Aquarius creep only"
42-
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`
39+
### GetTearFlags () {: aria-label='Functions' }
40+
#### [TearFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/TearFlags.html) GetTearFlags ( ) {: .copyable aria-label='Functions' }
41+
???+ info "Applicable effects only"
42+
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`, `EffectVariant.BRIMSTONE_BALL`, `EffectVariant.TECH_DOT`, and `EffectVariant.CHAIN_LIGHTNING`.
4343

4444
___
45-
### SetAquariusTearFlags () {: aria-label='Functions' }
46-
#### void GetAquariusTearFlags ( [TearFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/TearFlags.html) ) {: .copyable aria-label='Functions' }
47-
???+ info "Aquarius creep only"
48-
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`
45+
### HasTearFlags () {: aria-label='Functions' }
46+
#### boolean HasTearFlags ( [TearFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/TearFlags.html) ) {: .copyable aria-label='Functions' }
47+
???+ info "Applicable effects only"
48+
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`, `EffectVariant.BRIMSTONE_BALL`, `EffectVariant.TECH_DOT`, and `EffectVariant.CHAIN_LIGHTNING`.
49+
50+
___
51+
### SetTearFlags () {: aria-label='Functions' }
52+
#### void SetTearFlags ( [TearFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/TearFlags.html) ) {: .copyable aria-label='Functions' }
53+
???+ info "Applicable effects only"
54+
Only works for `EffectVariant.PLAYER_CREEP_HOLYWATER_TRAIL`, `EffectVariant.BRIMSTONE_BALL`, `EffectVariant.TECH_DOT`, and `EffectVariant.CHAIN_LIGHTNING`.
4955

5056
___

docs/docs/EntityPlayer.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ ___
6363
#### boolean HasCollectible ( [CollectibleType](https://wofsauge.github.io/IsaacDocs/rep/enums/CollectibleType.html) Collectible, boolean IgnoreModifiers = false, boolean IgnoreSpoof = false ) {: .copyable aria-label='Modified Functions' }
6464
Now accepts a `IgnoreSpoof` argument that ignores innate items.
6565

66+
___
67+
### ShootRedCandle () {: aria-label='Functions' }
68+
#### [EntityEffect](EntityEffect.md) ShootRedCandle ( [Vector](Vector.md) Direction ) {: .copyable aria-label='Functions' }
69+
Now returns the EntityEffect for the flame.
70+
6671
___
6772
### UseActiveItem () {: aria-label=' Modified Functions' }
6873
#### [UseActiveItemResultFlags](enums/UseActiveItemResultFlag.md) UseActiveItem ( [CollectibleType](https://wofsauge.github.io/IsaacDocs/rep/enums/CollectibleType.html) Item, [UseFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/UseFlag.html) UseFlags = 0, [ActiveSlot](https://wofsauge.github.io/IsaacDocs/rep/enums/ActiveSlot.html) Slot = -1, int CustomVarData = 0 ) {: .copyable aria-label='Modified Functions' }
@@ -99,7 +104,7 @@ Returns the true amount of charge added, which may have been capped by the targe
99104

100105
___
101106
### AddBoneOrbital () {: aria-label='Functions' }
102-
#### void AddBoneOrbital ( [Vector](Vector.md) Position ) {: .copyable aria-label='Functions' }
107+
#### [EntityFamiliar](EntityFamiliar.md) AddBoneOrbital ( [Vector](Vector.md) Position ) {: .copyable aria-label='Functions' }
103108

104109
___
105110
### AddCandyHeartBonus () {: aria-label='Functions' }
@@ -1009,12 +1014,7 @@ Call this after spawning characters with "special" tears (Forgotten, Lilith, Aza
10091014
___
10101015
### InitTwin () {: aria-label='Functions' }
10111016
#### [EntityPlayer](EntityPlayer.md) InitTwin ( [PlayerType](https://wofsauge.github.io/IsaacDocs/rep/enums/PlayerType.html) PlayerType ) {: .copyable aria-label='Functions' }
1012-
Initializes a new player that is controlled by the player's same controller.
1013-
1014-
???+ bug "Bug"
1015-
The twin player will desync from its main twin on save and continue. This softlocks the game in singleplayer, as the game prompts for a controller.
1016-
1017-
We've received confirmation from \_Kilburn that this is hardcoded to be handled on vanilla characters. We will need to add a workaround for this.
1017+
Initializes a "twin" player that is controlled by the player's same controller, similarly to Jacob & Esau.
10181018

10191019
___
10201020
### IsCollectibleAnimFinished () {: aria-label='Functions' }
@@ -1581,7 +1581,7 @@ Sets the active Weapon in the assigned `WeaponSlot`.
15811581

15821582
___
15831583
### ShootBlueCandle () {: aria-label='Functions' }
1584-
#### void ShootBlueCandle ( [Vector](Vector.md) Direction ) {: .copyable aria-label='Functions' }
1584+
#### [EntityEffect](EntityEffect.md) ShootBlueCandle ( [Vector](Vector.md) Direction ) {: .copyable aria-label='Functions' }
15851585
Makes the player shoot a blue flame from the Candle collectible.
15861586

15871587
___

docs/docs/Level.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ___
2828
___
2929
### FindValidRoomPlacementLocations () {: aria-label='Functions' }
3030
#### int[] FindValidRoomPlacementLocations ( [RoomConfigRoom](https://wofsauge.github.io/IsaacDocs/rep/RoomConfig_Room.html) RoomConfig, [Dimension](enums/Dimension.md) Dimension = -1, boolean AllowMultipleDoors = true, boolean AllowSpecialNeighbors = false ) {: .copyable aria-label='Functions' }
31-
#### int[] FindValidRoomPlacementLocations ( [RoomShape](https://wofsauge.github.io/IsaacDocs/rep/enums/RoomShape.html) RoomShape, [DoorMask](enums/DoorMask.md) DoorMask, [Dimension](enums/Dimension.md) Dimension = -1, boolean AllowMultipleDoors = true, boolean AllowSpecialNeighbors = false ) {: .copyable aria-label='Functions' }
31+
#### int[] FindValidRoomPlacementLocations ( [RoomShape](https://wofsauge.github.io/IsaacDocs/rep/enums/RoomShape.html) RoomShape = 1, [DoorMask](enums/DoorMask.md) DoorMask = -1, [Dimension](enums/Dimension.md) Dimension = -1, boolean AllowMultipleDoors = true, boolean AllowSpecialNeighbors = false ) {: .copyable aria-label='Functions' }
3232
Returns a table of room grid indices that would be valid locations to place the specified room using [TryPlaceRoom](Level.md#tryplaceroom).
3333

3434
Note that if you set `AllowSpecialNeighbors` to `true`, you can get weird placements next to the ultra secret room. You can use [GetNeighboringRooms](Level.md#getneighboringrooms) to confirm that potential neighbors are desired before placing your room.

docs/docs/Room.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ ___
1818
#### [LRoomTileDesc](LRoomTileDesc.md) GetLRoomTileDesc ( ) {: .copyable aria-label='Modified Functions' }
1919
Now returns a usable class. Describes the corners of an L-room shape (as divided horizontally into two rectangles), in grid coordinates.
2020

21+
___
22+
### SetRedHeartDamage () {: aria-label='Modified Functions' }
23+
#### void SetRedHeartDamage ( boolean Value = true ) {: .copyable aria-label='Modified Functions' }
24+
Now accepts an optional parameter, allowing the flag to be set to false.
25+
2126
___
2227
### SpawnGridEntity () {: aria-label='Modified Functions' }
2328
#### boolean SpawnGridEntity ( int GridIndex, [GridEntityType](https://wofsauge.github.io/IsaacDocs/rep/enums/GridEntityType.html) Type, int Variant = 0, int Seed = nil, int VarData = 0 ) {: .copyable aria-label='Modified Functions' }

docs/docs/RoomDescriptor.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ ___
8282
#### int GetTaintedKeeperCoinSpawns ( ) {: .copyable aria-label='Functions' }
8383
Prevent coin spawn from killed enemies on room reenter when counter reaches 10.
8484

85+
___
86+
### GetValidNeighborPlacementLocations () {: aria-label='Functions' }
87+
#### int[] GetValidNeighborPlacementLocations ( [RoomConfigRoom](https://wofsauge.github.io/IsaacDocs/rep/RoomConfig_Room.html) RoomConfig, boolean AllowMultipleDoors = true, boolean AllowSpecialNeighbors = false ) {: .copyable aria-label='Functions' }
88+
#### int[] GetValidNeighborPlacementLocations ( [RoomShape](https://wofsauge.github.io/IsaacDocs/rep/enums/RoomShape.html) RoomShape = 1, [DoorMask](enums/DoorMask.md) DoorMask = -1, boolean AllowMultipleDoors = true, boolean AllowSpecialNeighbors = false ) {: .copyable aria-label='Functions' }
89+
Returns a table of room grid indices that would be valid locations to place the specified room as a neighbor of this room using [TryPlaceRoom](Level.md#tryplaceroom).
90+
91+
See [TryPlaceRoom](Level.md#tryplaceroom) for more information on room placement and example code.
92+
8593
___
8694
### InitSeeds () {: aria-label='Functions' }
8795
#### void InitSeeds ( [RNG](RNG.md) RNG ) {: .copyable aria-label='Functions' }

docs/docs/TearParams.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
tags:
3+
- Class
4+
---
5+
# Class "TearParams"
6+
7+
## Variables
8+
### KnockbackMultiplier {: aria-label='Variables' }
9+
#### float KnockbackMultiplier {: .copyable aria-label='Variables'}
10+
11+
___
12+
### MassMultiplier {: aria-label='Variables' }
13+
#### float MassMultiplier {: .copyable aria-label='Variables'}
14+
15+
___
16+
### SpeedMultiplier {: aria-label='Variables' }
17+
#### float SpeedMultiplier {: .copyable aria-label='Variables'}
18+
19+
___
20+
### TearDisplacement {: aria-label='Variables' }
21+
#### int TearDisplacement {: .copyable aria-label='Variables'}
22+
Represents which eye the tear was shot from (`1` for the right eye, `-1` for the left eye).
23+
___

docs/docs/enums/ModCallbacks.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,12 @@ Now optionally accepts returning a table, with any combination of the following
128128

129129
Modified values are passed along to the remaining callbacks. Returning false to cancel the damage still skips the remaining callbacks.
130130

131+
???+ info "ExtraSource"
132+
ExtraSource is a new EntityRef passed to this callback in specific situations where the ""true"" source of the damage is obscured. For example, lasers and melee hitboxes provide their parent (ie, the player) instead of themselves as the damage Source. The laser/knife entity itself will be available as the ExtraSource! Gello and Brimstone Balls are also supported. Note that ExtraSource is nil if not available.
133+
131134
|ID|Name|Function Args|Optional Args|Return Type|
132135
|:--|:--|:--|:--|:--|
133-
|11 |MC_ENTITY_TAKE_DMG {: .copyable } | ([Entity](../Entity.md) Entity, float Damage, [DamageFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/DamageFlag.html) DamageFlags, [EntityRef](https://wofsauge.github.io/IsaacDocs/rep/EntityRef.html) Source, int DamageCountdown) | [EntityType](https://wofsauge.github.io/IsaacDocs/rep/enums/EntityType.html) | boolean or table |
136+
|11 |MC_ENTITY_TAKE_DMG {: .copyable } | ([Entity](../Entity.md) Entity, float Damage, [DamageFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/DamageFlag.html) DamageFlags, [EntityRef](https://wofsauge.github.io/IsaacDocs/rep/EntityRef.html) Source, int DamageCountdown, [EntityRef](https://wofsauge.github.io/IsaacDocs/rep/EntityRef.html) ExtraSource) | [EntityType](https://wofsauge.github.io/IsaacDocs/rep/enums/EntityType.html) | boolean or table |
134137

135138
### MC_PRE_MOD_UNLOAD
136139
Added boolean argument that identifies if it is running due to game shutdown.
@@ -393,9 +396,12 @@ Alternatively accepts `false` to cancel rendering
393396
### MC_POST_ENTITY_TAKE_DMG {: .copyable }
394397
Accepts no return parameters.
395398

399+
???+ info "ExtraSource"
400+
ExtraSource is a new EntityRef passed to this callback in specific situations where the ""true"" source of the damage is obscured. For example, lasers and melee hitboxes provide their parent (ie, the player) instead of themselves as the damage Source. The laser/knife entity itself will be available as the ExtraSource! Gello and Brimstone Balls are also supported. Note that ExtraSource is nil if not available.
401+
396402
|ID|Name|Function Args|Optional Args|Return Type|
397403
|:--|:--|:--|:--|:--|
398-
|1006 |MC_POST_ENTITY_TAKE_DMG {: .copyable } | ([Entity](../Entity.md) Entity, <br>float Damage, <br>[DamageFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/DamageFlag.html) DamageFlags, <br>[EntityRef](https://wofsauge.github.io/IsaacDocs/rep/EntityRef.html) Source, <br>int DamageCountdown) | [EntityType](https://wofsauge.github.io/IsaacDocs/rep/enums/EntityType.html) | void |
404+
|1006 |MC_POST_ENTITY_TAKE_DMG {: .copyable } | ([Entity](../Entity.md) Entity, <br>float Damage, <br>[DamageFlags](https://wofsauge.github.io/IsaacDocs/rep/enums/DamageFlag.html) DamageFlags, <br>[EntityRef](https://wofsauge.github.io/IsaacDocs/rep/EntityRef.html) Source, <br>int DamageCountdown, <br>[EntityRef](https://wofsauge.github.io/IsaacDocs/rep/EntityRef.html) ExtraSource) | [EntityType](https://wofsauge.github.io/IsaacDocs/rep/enums/EntityType.html) | void |
399405

400406
### MC_PRE_ENTITY_THROW {: .copyable }
401407
Accepts a [Vector](../Vector.md) which will modify the velocity of the thrown entity.
@@ -1509,13 +1515,6 @@ Return `true` to prevent the split, `false` to allow it even if blacklisted, or
15091515
|:--|:--|:--|:--|:--|
15101516
|1191 |MC_PRE_NPC_SPLIT {: .copyable } | ([EntityNPC](../EntityNPC.md) NPC, <br>boolean IsBlacklisted) | [EntityType](https://wofsauge.github.io/IsaacDocs/rep/enums/EntityType.html) | boolean |
15111517

1512-
### MC_PRE_OPENGL_RENDER {: .copyable }
1513-
Gets called right before the Manager::Render() function gets called.
1514-
1515-
|ID|Name|Function Args|Optional Args|Return Type|
1516-
|:--|:--|:--|:--|:--|
1517-
|1136 | MC_PRE_OPENGL_RENDER {: .copyable } | (VertexBuffer, <br>int shaderId, <br>RenderContext) | - | ? |
1518-
15191518
### MC_PRE_PAUSE_SCREEN_RENDER {: .copyable }
15201519
Can return `false` to prevent the pause screen from rendering. Doing so will also prevent the screen from darkening.
15211520

@@ -1718,12 +1717,6 @@ Alternative accepts `true`, which cancels trinket rendering.
17181717
|:--|:--|:--|:--|:--|
17191718
|1264 |MC_PRE_PLAYERHUD_TRINKET_RENDER {: .copyable } | (int Slot, <br>[Vector](../Vector.md) Position, <br>float Scale, <br>[EntityPlayer](../EntityPlayer.md) Player, <br>[Vector](../Vector.md) CropOffset) | int Slot | table or boolean |
17201719

1721-
### MC_PRE_PLAYER_APPLY_INNATE_COLLECTIBLE_NUM {: .copyable }
1722-
1723-
|ID|Name|Function Args|Optional Args|Return Type|
1724-
|:--|:--|:--|:--|:--|
1725-
|1092 |MC_PRE_PLAYER_APPLY_INNATE_COLLECTIBLE_NUM {: .copyable } | (int ModCount, <br>[EntityPlayer](../EntityPlayer.md) Player, <br>[CollectibleType](https://wofsauge.github.io/IsaacDocs/rep/enums/CollectibleType.html) Type, <br>boolean OnlyCountTrueItems) | - | int |
1726-
17271720
### MC_POST_PLAYER_COLLISION {: .copyable }
17281721
Runs after the on-collision code of this entity, assuming it wasn't skipped.
17291722

0 commit comments

Comments
 (0)