コード例 #1
0
	public void PotencyProcess(Msg_NpcSkillEffect _skill)
	{
		Tbl_MonsterSkill_Record skillRecord = AsTableManager.Instance.GetTbl_MonsterSkill_Record( _skill.skillTableIdx_);
		Tbl_MonsterSkillLevel_Record skillLvRecord = AsTableManager.Instance.GetTbl_MonsterSkillLevel_Record(_skill.skillLevel_, _skill.skillTableIdx_);//, _skill.chargeStep_);
		if( skillRecord != null && skillLvRecord != null)
		{
			Tbl_Skill_Potency potency = skillRecord.listSkillPotency[_skill.potencyIdx_];
			Tbl_SkillLevel_Potency lvPotency = skillLvRecord.listSkillLevelPotency[_skill.potencyIdx_];
			int potencyIdx = lvPotency.Potency_EffectIndex;
			if(PlayPotency(potencyIdx) == false)
			{
				Debug.LogError("PotencyProcessor: delivered message is Msg_NpcSkillEffect(Skill level table record:[index:" + skillLvRecord.Index +
					"][skill level:" + _skill.skillLevel_ + "]");
			}
			
			if( potency.Potency_Type == ePotency_Type.Balloon)
				m_Owner.HandleMessage( new Msg_BalloonIndicate( lvPotency));
		}
	}
コード例 #2
0
	public void PotencyProcess(Msg_NpcSkillEffect _attack)
	{
		m_Potency.PotencyProcess(_attack);
	}
コード例 #3
0
ファイル: AsCommonProcess.cs プロジェクト: ftcaicai/ArkClient
	//~$yde

	void NpcSkillEffect(byte[] _packet)
	{
		body_SC_NPC_SKILL_EFFECT skill = new body_SC_NPC_SKILL_EFFECT();
		skill.PacketBytesToClass(_packet);

		Msg_NpcSkillEffect msg = new Msg_NpcSkillEffect(skill);

		AsEntityManager.Instance.DispatchMessageByNpcSessionId(msg.npcIdx_, msg);
	}