Beispiel #1
0
        public static void TryShowCreepUIMessageInfo(Units inAttacker, Units inCreep, string inBattleMonsterCreepId, int inOldGroupType)
        {
            if (inAttacker == null || inCreep == null)
            {
                return;
            }
            CreepInfoType creepInfoType = CreepHelper.GetCreepInfoType(inCreep, inBattleMonsterCreepId, inOldGroupType);

            if (creepInfoType == CreepInfoType.creep_none)
            {
                return;
            }
            string creepUIMessageCampInfoContent = CreepHelper.GetCreepUIMessageCampInfoContent(inAttacker);

            if (creepInfoType == CreepInfoType.creep_in_control)
            {
                string promptId = PromptHelper.CreepInControlId(inAttacker);
                UIMessageBox.ShowKillPrompt(promptId, inAttacker.npc_id, inCreep.npc_id, EntityType.Hero, EntityType.Creep, string.Empty, string.Empty, TeamType.None, TeamType.None);
            }
            else if (creepInfoType == CreepInfoType.creep_killed)
            {
                string promptId2 = PromptHelper.CreepKilledId(inAttacker);
                UIMessageBox.ShowKillPrompt(promptId2, inAttacker.npc_id, inCreep.npc_id, EntityType.Hero, EntityType.Creep, string.Empty, string.Empty, TeamType.None, TeamType.None);
            }
            else if (creepInfoType == CreepInfoType.creep_gold_killed)
            {
                if (inAttacker.isPlayer || inAttacker.isMyTeam)
                {
                    string promptId3 = PromptHelper.CreepGoldKilledId(inAttacker);
                    UIMessageBox.ShowKillPrompt(promptId3, inAttacker.npc_id, inCreep.npc_id, EntityType.Hero, EntityType.Creep, string.Empty, string.Empty, TeamType.None, TeamType.None);
                }
            }
            else if (creepInfoType == CreepInfoType.creep_gold_plundered)
            {
                string promptId4 = PromptHelper.CreepGoldPlunderedId(inAttacker);
                UIMessageBox.ShowKillPrompt(promptId4, inAttacker.npc_id, inCreep.npc_id, EntityType.Hero, EntityType.Creep, string.Empty, string.Empty, TeamType.None, TeamType.None);
            }
            else if (creepInfoType == CreepInfoType.creep_spawn_assistantcreep)
            {
                string promptId5 = PromptHelper.AssistantCreepKilledId(inAttacker);
                UIMessageBox.ShowKillPrompt(promptId5, inAttacker.npc_id, inCreep.npc_id, EntityType.Hero, EntityType.Creep, string.Empty, string.Empty, TeamType.None, TeamType.None);
            }
            else if (creepInfoType == CreepInfoType.creep_spawn_assistantsoldier)
            {
                string promptId6 = PromptHelper.SoldierCreepKilledId(inAttacker);
                UIMessageBox.ShowKillPrompt(promptId6, inAttacker.npc_id, inCreep.npc_id, EntityType.Hero, EntityType.Creep, string.Empty, string.Empty, TeamType.None, TeamType.None);
            }
        }