Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | |
|
| | | if (attacker is GA_NpcClientFightNorm)
|
| | | {
|
| | | if (target.ActorInfo.RealHp <= (target.ActorInfo.RealMaxHp * .5f))
|
| | | if ((target.ActorInfo.RealHp - (ulong)hurtValue) <= (target.ActorInfo.RealMaxHp * .5f))
|
| | | {
|
| | | hurtValue = 0;
|
| | | realHurtValue = 0;
|
| | | }
|
| | | }
|
| | | else if (target is GA_NpcClientFightNorm)
|
| | |
| | | public static DropItem Drop(int _id, Vector3 _position, Camera _camera)
|
| | | {
|
| | | var dropItemType = ItemToDropType(_id);
|
| | | var _valiPos = _position;
|
| | | GActor.TryGetValidPos(_position, ref _valiPos);
|
| | | var _validPos = _position;
|
| | | GActor.TryGetValidPos(_position, ref _validPos);
|
| | | _validPos.y = _position.y;
|
| | | var dropItem = DropItemPool.RequireDropItem(dropItemType);
|
| | | dropItem.transform.SetParentEx(HUDCenter.hudRoot.dropItemCanvas.transform, Vector3.zero, Quaternion.identity, Vector3.one);
|
| | | dropItem.DropAt(_id, _valiPos, _camera);
|
| | | dropItem.DropAt(_id, _validPos, _camera);
|
| | | return dropItem;
|
| | | }
|
| | |
|