@@ -17,8 +17,14 @@ declare global {
1717 * @param duration The number of frames that the effect should apply for. The minimum is 2
1818 * frames.
1919 * @param damage The damage taken per tick. Each damage tick is 20 frames apart.
20+ * @param ignoreBosses Optional. Defaults to false.
2021 */
21- AddBurn : ( source : EntityRef , duration : int , damage : float ) => void ;
22+ AddBurn : (
23+ source : EntityRef ,
24+ duration : int ,
25+ damage : float ,
26+ ignoreBosses ?: boolean ,
27+ ) => void ;
2228
2329 /**
2430 * Adds a charmed effect to the entity.
@@ -27,21 +33,26 @@ declare global {
2733 * `EntityRef(undefined)`.
2834 * @param duration The number of frames that the effect should apply for. If set to -1, the
2935 * effect will be permanent and the entity will follow you to different rooms.
36+ * @param ignoreBosses Optional. Defaults to false.
3037 */
31- AddCharmed : ( source : EntityRef , duration : int ) => void ;
38+ AddCharmed : (
39+ source : EntityRef ,
40+ duration : int ,
41+ ignoreBosses ?: boolean ,
42+ ) => void ;
3243
3344 /**
3445 * Adds a confusion effect to the entity.
3546 *
3647 * @param source Required. If you do not want the effect to have a source, pass
3748 * `EntityRef(undefined)`.
3849 * @param duration The number of frames that the effect should apply for. The maximum is 150.
39- * @param ignoreBosses
50+ * @param ignoreBosses Optional. Defaults to false.
4051 */
4152 AddConfusion : (
4253 source : EntityRef ,
4354 duration : int ,
44- ignoreBosses : boolean ,
55+ ignoreBosses ? : boolean ,
4556 ) => void ;
4657
4758 /**
@@ -56,17 +67,23 @@ declare global {
5667 * @param source Required. If you do not want the effect to have a source, pass
5768 * `EntityRef(undefined)`.
5869 * @param duration The number of frames that the effect should apply for. The maximum is 150.
70+ * @param ignoreBosses Optional. Defaults to false.
5971 */
60- AddFear : ( source : EntityRef , duration : int ) => void ;
72+ AddFear : ( source : EntityRef , duration : int , ignoreBosses ?: boolean ) => void ;
6173
6274 /**
6375 * Adds a freeze effect to the entity.
6476 *
6577 * @param source Required. If you do not want the effect to have a source, pass
6678 * `EntityRef(undefined)`.
6779 * @param duration The number of frames that the effect should apply for. The maximum is 150.
80+ * @param ignoreBosses Optional. Defaults to false.
6881 */
69- AddFreeze : ( source : EntityRef , duration : int ) => void ;
82+ AddFreeze : (
83+ source : EntityRef ,
84+ duration : int ,
85+ ignoreBosses ?: boolean ,
86+ ) => void ;
7087
7188 /** Heals the entity. */
7289 AddHealth : ( hitPoints : float ) => void ;
@@ -80,8 +97,13 @@ declare global {
8097 * @param duration The number of frames that the effect should apply for. The maximum is 150.
8198 * (However, if a value higher than 150 is passed, the freeze will be reduced to
8299 * 150 frames, but the gold color will persist for the full duration.)
100+ * @param ignoreBosses Optional. Defaults to false.
83101 */
84- AddMidasFreeze : ( source : EntityRef , duration : int ) => void ;
102+ AddMidasFreeze : (
103+ source : EntityRef ,
104+ duration : int ,
105+ ignoreBosses ?: boolean ,
106+ ) => void ;
85107
86108 /**
87109 * Adds a poison effect to the entity.
@@ -91,17 +113,28 @@ declare global {
91113 * @param duration The number of frames that the effect should apply for. The minimum is 2
92114 * frames. The maximum is 150.
93115 * @param damage The damage taken per tick. Each damage tick is 20 frames apart.
116+ * @param ignoreBosses Optional. Defaults to false.
94117 */
95- AddPoison : ( source : EntityRef , duration : int , damage : float ) => void ;
118+ AddPoison : (
119+ source : EntityRef ,
120+ duration : int ,
121+ damage : float ,
122+ ignoreBosses ?: boolean ,
123+ ) => void ;
96124
97125 /**
98126 * Adds a shrink effect to the entity.
99127 *
100128 * @param source Required. If you do not want the effect to have a source, pass
101129 * `EntityRef(undefined)`.
102130 * @param duration The number of frames that the effect should apply for.
131+ * @param ignoreBosses Optional. Defaults to false.
103132 */
104- AddShrink : ( source : EntityRef , duration : int ) => void ;
133+ AddShrink : (
134+ source : EntityRef ,
135+ duration : int ,
136+ ignoreBosses ?: boolean ,
137+ ) => void ;
105138
106139 /**
107140 * Adds a slowing effect to the entity.
@@ -111,13 +144,15 @@ declare global {
111144 * @param duration The number of frames that the effect should apply for.
112145 * @param slowValue This is the multiplier applied to the entity's movement speed. For example,
113146 * a value of 0.5 would slow down the entity by 50%.
114- * @param slowColor
147+ * @param slowColor The color modification to make to the enemy.
148+ * @param ignoreBosses Optional. Defaults to false.
115149 */
116150 AddSlowing : (
117151 source : EntityRef ,
118152 duration : int ,
119153 slowValue : float ,
120154 slowColor : Color ,
155+ ignoreBosses ?: boolean ,
121156 ) => void ;
122157
123158 AddVelocity : ( velocity : Vector ) => void ;
@@ -209,6 +244,7 @@ declare global {
209244 IsVulnerableEnemy : ( ) => boolean ;
210245
211246 Kill : ( ) => void ;
247+ KillWithSource : ( source : EntityRef ) => void ;
212248 MultiplyFriction : ( value : float ) => void ;
213249 PostRender : ( ) => void ;
214250 Remove : ( ) => void ;
0 commit comments