Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | |
|
| | | if (attacker is GA_NpcClientFightNorm)
|
| | | {
|
| | | if ((target.ActorInfo.RealHp - (ulong)hurtValue) <= (target.ActorInfo.RealMaxHp * .5f))
|
| | | if ((target.ActorInfo.RealHp - (ulong)realHurtValue) <= (target.ActorInfo.RealMaxHp * .5f))
|
| | | {
|
| | | hurtValue = 0;
|
| | | realHurtValue = 0;
|
| | |
| | |
|
| | | if (_doReduceHp)
|
| | | {
|
| | | if (attacker is GA_NpcClientFightNorm || target is GA_NpcClientFightNorm)
|
| | | {
|
| | | target.ActorInfo.ReduceHp((uint)hurtValue);
|
| | | }
|
| | | else
|
| | | {
|
| | | target.ActorInfo.ReduceHp((uint)realHurtValue);
|
| | | }
|
| | | }
|
| | |
|
| | | if (target.ServerInstID == PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | |
| | | ItemTipUtility.Show(itemId);
|
| | | });
|
| | |
|
| | | m_Item.countText.gameObject.SetActive(count > 0);
|
| | | m_Item.countText.text = count.ToString();
|
| | |
|
| | | var eatTimes = 0;
|
| | |
|
| | | AlchemyDrugUseLimit drugUseLimit;
|