예제 #1
0
        public void PaintWorld(WorldLayer layer)
        {
            var actors = Hud.Game.Actors;

            foreach (var actor in actors)
            {
                if (actor.SummonerAcdDynamicId == Hud.Game.Me.SummonerId)
                {
                    switch (actor.SnoActor.Sno)
                    {
                    case ActorSnoEnum._wizard_hydrahead_lightning_3:  // light
                    case ActorSnoEnum._wizard_hydrahead_arcane_3:     // arcane
                    case ActorSnoEnum._wizard_hydrahead_fire2_1:
                    case ActorSnoEnum._wizard_hydrahead_frost_2:
                        HydraDecorator.Paint(layer, actor, actor.FloorCoordinate.Offset(2f, 2f, 0), null);
                        break;

                    case ActorSnoEnum._wizard_hydrahead_big:     // mammoth
                        HydraDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                        break;

                    case ActorSnoEnum._dh_sentry:
                    case ActorSnoEnum._dh_sentry_addsmissiles:
                    case ActorSnoEnum._dh_sentry_addsduration:
                    case ActorSnoEnum._dh_sentry_tether:
                    case ActorSnoEnum._dh_sentry_addsheals:
                    case ActorSnoEnum._dh_sentry_addsshield:
                        if (!Hud.Game.Me.Powers.BuffIsActive(208610, 0))
                        {
                            SentryDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                        }
                        else
                        {
                            SentryWithCustomEngineeringDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                        }

                        break;

                    case ActorSnoEnum._x1_wizard_blackhole_cosmicgate_proxy:
                    case ActorSnoEnum._x1_wizard_blackhole_eventhorizon_proxy:
                    case ActorSnoEnum._x1_wizard_blackhole_supermassive_proxy:
                    case ActorSnoEnum._x1_wizard_blackhole_absolutezero_proxy:
                    case ActorSnoEnum._x1_wizard_blackhole_spellsteal_proxy:
                        BlackHoleDecorator.Paint(layer, actor, actor.FloorCoordinate.Offset(0, 0, 5.2f), null);
                        break;

                    case ActorSnoEnum._witchdoctor_spiritwalk_dummy_female:
                    case ActorSnoEnum._witchdoctor_spiritwalk_dummy:
                    {
                        var skill = Hud.Game.Me.Powers.UsedWitchDoctorPowers.SpiritWalk;
                        if (skill != null)
                        {
                            if (skill.Rune == 1)
                            {
                                SpiritWalkWithJauntDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                            }
                            else
                            {
                                SpiritWalkDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                            }
                        }
                    }

                    break;

                    case ActorSnoEnum._witchdoctor_bigbadvoodoo_fetish:
                    case ActorSnoEnum._witchdoctor_bigbadvoodoo_fetish_blue:
                    case ActorSnoEnum._witchdoctor_bigbadvoodoo_fetish_purple:
                    case ActorSnoEnum._witchdoctor_bigbadvoodoo_fetish_red:
                    case ActorSnoEnum._witchdoctor_bigbadvoodoo_fetish_yellow:
                    {
                        var skill = Hud.Game.Me.Powers.UsedWitchDoctorPowers.BigBadVoodoo;
                        if (skill != null)
                        {
                            if (skill.Rune == 1)
                            {
                                BigBadVoodooWithJungleDrumsDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                            }
                            else
                            {
                                BigBadVoodooDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                            }
                        }
                    }

                    break;
                    }
                }

                switch (actor.SnoActor.Sno)
                {
                case ActorSnoEnum._x1_wd_piranha_tornado_proxy:
                    PiranhadoDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._monk_innersanctuaryrune_duration_proxy:
                    InnerSanctuarySanctifiedGroundDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._x1_monk_innersanctuaryrune_forbidden_proxy:
                case ActorSnoEnum._x1_monk_innersanctuaryrune_intervene_proxy:
                case ActorSnoEnum._x1_monk_innersanctuary_proxy:
                    InnerSanctuaryDefaultDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._x1_monk_innersanctuaryrune_healing_proxy:
                    InnerSanctuarySafeHavenDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._x1_monk_innersanctuaryrune_protect_proxy:
                    InnerSanctuaryTempleOfProtecteionDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;
                }
            }
        }
예제 #2
0
        public void PaintWorld(WorldLayer layer)
        {
            var actors = Hud.Game.Actors;

            foreach (var actor in actors)
            {
                if (actor.SummonerAcdDynamicId == Hud.Game.Me.SummonerId)
                {
                    switch (actor.SnoActor.Sno)
                    {
                    case 81230:     // light
                    case 81232:     // arcane
                    case 325807:
                    case 83024:
                        HydraDecorator.Paint(layer, actor, actor.FloorCoordinate.Offset(2f, 2f, 0), null);
                        break;

                    case 83959:     // mammoth
                        HydraDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                        break;

                    case 141402:
                    case 150025:
                    case 150024:
                    case 168815:
                    case 150026:
                    case 150027:
                        if (!Hud.Game.Me.Powers.BuffIsActive(208610, 0))
                        {
                            SentryDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                        }
                        else
                        {
                            SentryWithCustomEngineeringDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                        }
                        break;

                    case 341426:
                    case 341411:
                    case 341381:
                    case 341396:
                    case 341441:
                        BlackHoleDecorator.Paint(layer, actor, actor.FloorCoordinate.Offset(0, 0, 5.2f), null);
                        break;

                    case 107705:
                    case 106584:
                    {
                        var skill = Hud.Game.Me.Powers.UsedWitchDoctorPowers.SpiritWalk;
                        if (skill != null)
                        {
                            if (skill.Rune == 1)
                            {
                                SpiritWalkWithJauntDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                            }
                            else
                            {
                                SpiritWalkDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                            }
                        }
                    }
                    break;

                    case 117574:
                    case 182276:
                    case 182278:
                    case 182271:
                    case 182283:
                    {
                        var skill = Hud.Game.Me.Powers.UsedWitchDoctorPowers.BigBadVoodoo;
                        if (skill != null)
                        {
                            if (skill.Rune == 1)
                            {
                                BigBadVoodooWithJungleDrumsDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                            }
                            else
                            {
                                BigBadVoodooDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                            }
                        }
                    }
                    break;
                    }
                }
                switch (actor.SnoActor.Sno)
                {
                case 357846:
                    PiranhadoDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 149848:
                    InnerSanctuarySanctifiedGroundDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 320136:
                case 319583:
                case 319337:
                    InnerSanctuaryDefaultDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 320135:
                    InnerSanctuarySafeHavenDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 319776:
                    InnerSanctuaryTempleOfProtecteionDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;
                }
            }
        }