/
BossSkillsPlugin.cs
399 lines (372 loc) · 19.6 KB
/
BossSkillsPlugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
// adaptation of StormReaver v6 xml theme
// ActorSnoEnum conversion by DysfunctionaI
namespace Turbo.Plugins.Jack.Monsters
{
using SharpDX.Direct2D1;
using System.Collections.Generic;
using System.Linq;
using Turbo.Plugins.Default;
public class BossSkillsPlugin : BasePlugin, IInGameWorldPainter
{
public Dictionary<ActorSnoEnum, WorldDecoratorCollection> SnoMapping { get; set; }
////private GroundLabelDecorator debugDecorator;
public BossSkillsPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
SnoMapping = new Dictionary<ActorSnoEnum, WorldDecoratorCollection>();
//<!-- add ground circle to RG Tornado/EnergyTwister (Sand Shaper/Saxtris):
//139741 ZoltunKulle_EnergyTwister Energy Twister -->
//<RG_Tornado_ET enabled="1" keywords="snos=139741">
// <ground_circle enabled="1" radius="10" stroke="2" dash="Dash" color="160,255,50,50" />
//</RG_Tornado_ET>
SnoMapping.Add(ActorSnoEnum._zoltunkulle_energytwister, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 10,
Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 2, DashStyle.Dash)
},
new GroundLabelDecorator(Hud)
{
CountDownFrom = 30,
TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
},
new GroundTimerDecorator(Hud)
{
CountDownFrom = 30,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(230, 255, 200, 200, 0),
Radius = 30,
}));
//<!-- add ground circle to RG AOE DOT Poison 10y (The Choker):
//360046 X1_Unique_Monster_Generic_AOE_DOT_Poison_10foot -->
//<RG_AOE_Poison_1 enabled="1" keywords="snos=360046">
// <ground_circle enabled="1" radius="10" stroke="2" dash="Dash" color="160,255,50,50" />
//</RG_AOE_Poison_1>
SnoMapping.Add(ActorSnoEnum._x1_unique_monster_generic_aoe_dot_poison_10foot, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 10,
Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 2, DashStyle.Dash)
}));
//<!-- add ground circle to AOE DOT Poison 20y:
//363358 X1_Unique_Monster_Generic_AOE_DOT_Poison_20foot -->
//<RG_AOE_Poison_2 enabled="1" keywords="snos=363358">
// <ground_circle enabled="1" radius="20" stroke="2" dash="Dash" color="160,255,50,50" />
//</RG_AOE_Poison_2>
SnoMapping.Add(ActorSnoEnum._x1_unique_monster_generic_aoe_dot_poison_20foot, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 20,
Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 2, DashStyle.Dash)
}));
//<!-- add ground circle to RG Fire Pentagram / Impact, AOE DOT Fire:
//159163 g_monster_projectile_fire_impact
//359693 X1_Unique_Monster_Generic_AOE_DOT_Fire_10foot -->
//<RG_Fire_Pentagram enabled="1" keywords="snos=159163|359693">
// <ground_circle enabled="1" radius="11.5" stroke="5" dash="Dash" color="120,255,255,255" />
//</RG_Fire_Pentagram>
SnoMapping.Add(ActorSnoEnum._g_monster_projectile_fire_impact, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 11.5f,
Brush = Hud.Render.CreateBrush(120, 255, 255, 255, 5, DashStyle.Dash)
}));
SnoMapping.Add(ActorSnoEnum._x1_unique_monster_generic_aoe_dot_fire_10foot, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 11.5f,
Brush = Hud.Render.CreateBrush(120, 255, 255, 255, 5, DashStyle.Dash)
},
new GroundLabelDecorator(Hud)
{
CountDownFrom = 15,
TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
},
new GroundTimerDecorator(Hud)
{
CountDownFrom = 15,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(230, 255, 255, 255, 0),
Radius = 30,
}));
//<!-- add ground circle to RG Dangerous skills:
//Falling Rocks:
// 368453 x1_LR_Boss_MalletDemon_FallingRocks (Perendi)
// 374732 x1_Pand_Cellar_FallingRock Falling Debris
// 3026 a2dun_Zolt_Random_FallingRocks_C
//Meteor Strike (Stonesinger):
// 378237 X1_LR_Boss_AsteroidRain
//Gas Cloud (Ghom):
// 93837 Gluttony_gasCloud_proxy
//-->
//<RG_Dangerous_Skills1 enabled="1" keywords="snos=93837|368453|374732|3026|378237">
// <ground_circle enabled="1" radius="20" stroke="2" dash="Dash" color="160,255,50,50" />
//</RG_Dangerous_Skills1>
var rgDangerousSkillDecorator = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 20,
Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 2, DashStyle.Dash)
});
SnoMapping.Add(ActorSnoEnum._x1_lr_boss_malletdemon_fallingrocks, rgDangerousSkillDecorator);
SnoMapping.Add(ActorSnoEnum._x1_pand_cellar_fallingrock, rgDangerousSkillDecorator);
SnoMapping.Add(ActorSnoEnum._a2dun_zolt_random_fallingrocks_c, rgDangerousSkillDecorator);
SnoMapping.Add(ActorSnoEnum._gluttony_gascloud_proxy, new WorldDecoratorCollection(
new GroundLabelDecorator(Hud)
{
CountDownFrom = 75,
TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
},
new GroundTimerDecorator(Hud)
{
CountDownFrom = 75,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(128, 160, 255, 160, 0),
Radius = 30,
}));
//<!-- add ground circle to RG Ice Circles 12y? (Rime):
//359703 X1_Unique_Monster_Generic_AOE_DOT_Cold_10foot -->
//<RG_Rime_Ice1 enabled="1" keywords="snos=359703">
// <ground_circle enabled="1" radius="12" color="100,150,150,150" stroke="2" dash="Dash" />
//</RG_Rime_Ice1>
SnoMapping.Add(ActorSnoEnum._x1_unique_monster_generic_aoe_dot_cold_10foot, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 12,
Brush = Hud.Render.CreateBrush(100, 150, 150, 150, 2, DashStyle.Dash)
}));
//<!-- add ground circle to RG Ice Circles 22y? (Rime):
//363356 X1_Unique_Monster_Generic_AOE_DOT_Cold_20foot -->
//<RG_Rime_Ice2 enabled="1" keywords="snos=363356">
// <ground_circle enabled="1" radius="22" color="100,150,150,150" stroke="2" dash="Dash" />
//</RG_Rime_Ice2>
SnoMapping.Add(ActorSnoEnum._x1_unique_monster_generic_aoe_dot_cold_20foot, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 22,
Brush = Hud.Render.CreateBrush(100, 150, 150, 150, 2, DashStyle.Dash)
}));
//<!-- add ground circle to RG Ice Projectile (Rime):
//377087 X1_Unique_Monster_Generic_Projectile_Cold -->
//<RG_Rime_Ice_Projectiles enabled="1" keywords="snos=377087">
// <ground_circle enabled="1" radius="3" color="100,150,150,150" stroke="2" dash="Dash" />
//</RG_Rime_Ice_Projectiles>
SnoMapping.Add(ActorSnoEnum._x1_unique_monster_generic_projectile_cold, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 3,
Brush = Hud.Render.CreateBrush(100, 150, 150, 150, 2, DashStyle.Dash)
}));
//<!-- ============================== -->
//<!-- add ground circle to Diablo Ring of Fire:
//226350 Diablo_ringofFire_damageArea -->
//<Diablo_Ring_of_Fire enabled="1" keywords="snos=226350">
// <ground_circle enabled="1" radius="15" stroke="3" dash="Dash" color="160,255,50,50" />
//</Diablo_Ring_of_Fire>
SnoMapping.Add(ActorSnoEnum._diablo_ringoffire_damagearea, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 15,
Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 3, DashStyle.Dash)
}));
//<!-- add ground circle to Maghda/Uber Maghda Punish Projectile:
//166686 Maghda_Punish_projectile
//278340 UberMaghda_Punish_projectile -->
//<Maghda_Punish_Projectile enabled="1" keywords="snos=166686|278340">
// <ground_circle enabled="1" radius="3" stroke="2" dash="Dash" color="160,255,50,50" />
//</Maghda_Punish_Projectile>
SnoMapping.Add(ActorSnoEnum._maghda_punish_projectile, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 3,
Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 2, DashStyle.Dash)
}));
SnoMapping.Add(ActorSnoEnum._ubermaghda_punish_projectile, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 3,
Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 2, DashStyle.Dash)
}));
//<!-- add ground circle to Zoltun Kulle Slow-Time Bubble:
//185924 zoltunKulle_slowTime_bubble -->
//<Zoltun_Kulle_SlowTime_Bubble enabled="1" keywords="snos=185924">
// <ground_circle enabled="1" radius="20" stroke="2" dash="Dash" color="160,255,50,255" />
//</Zoltun_Kulle_SlowTime_Bubble>
SnoMapping.Add(ActorSnoEnum._zoltunkulle_slowtime_bubble, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 20,
Brush = Hud.Render.CreateBrush(160, 255, 50, 255, 2, DashStyle.Dash)
},
new GroundLabelDecorator(Hud)
{
CountDownFrom = 16,
TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
},
new GroundTimerDecorator(Hud)
{
CountDownFrom = 16,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(230, 255, 50, 50, 0),
Radius = 30,
}));
//<!-- add ground circle to Adria skills:
//360738 X1_Adria_arcanePool / 358404 X1_Adria_blood_large
//292507 x1_Adria_Arena_FloorPanel_Active / 292508 x1_Adria_Arena_FloorPanel_Telegraph
//363873 x1_Adria_cauldron_spawn_Projectile / 338889 x1_Adria_bouncingProjectile -->
//<Adria_Arcane_Pool enabled="1" keywords="snos=360738|292507|292508">
// <ground_circle enabled="1" radius="6" stroke="2" dash="Dash" color="180,255,50,255" />
//</Adria_Arcane_Pool>
var adriaArcanePool = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 6,
Brush = Hud.Render.CreateBrush(180, 255, 50, 255, 2, DashStyle.Dash)
});
SnoMapping.Add(ActorSnoEnum._x1_adria_arcanepool, adriaArcanePool);
SnoMapping.Add(ActorSnoEnum._x1_adria_arena_floorpanel_active, adriaArcanePool);
SnoMapping.Add(ActorSnoEnum._x1_adria_arena_floorpanel_telegraph, adriaArcanePool);
//<Adria_Blood_Pool enabled="1" keywords="snos=358404">
// <ground_circle enabled="1" radius="12" stroke="1" dash="Dash" color="200,255,0,150" />
//</Adria_Blood_Pool>
SnoMapping.Add(ActorSnoEnum._x1_adria_blood_large, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 12,
Brush = Hud.Render.CreateBrush(200, 255, 0, 150, 1, DashStyle.Dash)
}));
//<Adria_Blood_Drops enabled="1" keywords="snos=363873|338889">
// <ground_circle enabled="1" radius="2" stroke="2" dash="Dash" color="200,255,150,255" />
//</Adria_Blood_Drops>
SnoMapping.Add(ActorSnoEnum._x1_adria_cauldron_spawn_projectile, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 2,
Brush = Hud.Render.CreateBrush(200, 255, 150, 255, 2, DashStyle.Dash)
}));
SnoMapping.Add(ActorSnoEnum._x1_adria_bouncingprojectile, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 2,
Brush = Hud.Render.CreateBrush(200, 255, 150, 255, 2, DashStyle.Dash)
}));
//credits to SeaDragon
//Geyser_Tethrys 315366 Duration=3 radius=15
//Sandmonster_Turret 434201 Duration=20 radius=-1
//Hamelin_Rat_Swarm 427170 radius=7.5 I don't remember the duration,Maybe 60
SnoMapping.Add(ActorSnoEnum._x1_adria_geyser, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 15,
Brush = Hud.Render.CreateBrush(200, 255, 150, 255, 2, DashStyle.Dash)
},
new GroundLabelDecorator(Hud)
{
CountDownFrom = 3,
TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
},
new GroundTimerDecorator(Hud)
{
CountDownFrom = 3,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(230, 255, 150, 255, 0),
Radius = 30,
}));
SnoMapping.Add(ActorSnoEnum._p4_lr_boss_sandmonster_turret, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = -1,
Brush = Hud.Render.CreateBrush(200, 255, 150, 255, 2, DashStyle.Dash)
},
new GroundLabelDecorator(Hud)
{
CountDownFrom = 20,
TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
},
new GroundTimerDecorator(Hud)
{
CountDownFrom = 20,
BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
BackgroundBrushFill = Hud.Render.CreateBrush(230, 255, 150, 255, 0),
Radius = 30,
}));
SnoMapping.Add(ActorSnoEnum._p4_ratking_ratballmonster, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 7.5f,
Brush = Hud.Render.CreateBrush(200, 255, 150, 255, 2, DashStyle.Dash)
}
//,
//new GroundLabelDecorator(Hud)
//{
// CountDownFrom = 3,
// TextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 200, 200, true, false, 128, 0, 0, 0, true),
//},
//new GroundTimerDecorator(Hud)
//{
// CountDownFrom = 3,
// BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
// BackgroundBrushFill = Hud.Render.CreateBrush(230, 255, 150, 255, 0),
// Radius = 30,
//}
));
/////////////////
// Key Wardens //
/////////////////
//<!-- Xah'Rith the Keywarden, ACT3 / Rain of Corpses, pending:
//260762 Uber_Morlu_GroundBomb_Pending -->
//<XahRith_Skills1 enabled="1" keywords="snos=260762">
// <ground_circle enabled="1" radius="12" stroke="2" dash="Dash" color="200,255,50,255" />
//</XahRith_Skills1>
SnoMapping.Add(ActorSnoEnum._uber_morlu_groundbomb_pending, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 12,
Brush = Hud.Render.CreateBrush(200, 255, 50, 255, 2, DashStyle.Dash)
}));
//<!-- Xah'Rith the Keywarden, ACT3 / Rain of Corpses, impact:
//260761 Uber_Morlu_FrozenZombie_proxyActor -->
//<XahRith_Skills2 enabled="1" keywords="snos=260761">
// <ground_circle enabled="1" radius="12" stroke="2" dash="Dash" color="200,255,50,100" />
//</XahRith_Skills2>
SnoMapping.Add(ActorSnoEnum._uber_morlu_frozenzombie_proxyactor, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 12,
Brush = Hud.Render.CreateBrush(200, 255, 50, 100, 2, DashStyle.Dash)
}));
//<!-- Xah'Rith the Keywarden, ACT3 / Rain of Corpses, DOT:
//260812 Unique_Monster_IceTrail -->
//<XahRith_Skills3 enabled="1" keywords="snos=260812">
// <ground_circle enabled="1" radius="12" stroke="2" dash="Dash" color="200,255,0,0" />
//</XahRith_Skills3>
SnoMapping.Add(ActorSnoEnum._unique_monster_icetrail, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 12,
Brush = Hud.Render.CreateBrush(200, 255, 0, 0, 2, DashStyle.Dash)
}));
//debugDecorator = new GroundLabelDecorator(Hud)
//{
// TextFont = Hud.Render.CreateFont("tahoma", 12, 255, 255, 255, 255, false, false, true),
// BorderBrush = Hud.Render.CreateBrush(180, 255, 50, 255, 2, DashStyle.Dash),
//};
}
public void PaintWorld(WorldLayer layer)
{
var bossSkills = Hud.Game.Actors.Where(a => SnoMapping.ContainsKey(a.SnoActor.Sno));
foreach (var skill in bossSkills)
{
SnoMapping[skill.SnoActor.Sno].Paint(layer, skill, skill.FloorCoordinate, string.Empty);
}
//foreach (var actor in Hud.Game.Actors)
//{
// debugDecorator.Paint(actor, actor.FloorCoordinate, actor.SnoActor.Sno.ToString());
//}
}
}
}