AbstractNpcInfo.java

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
InShadow
Posts: 12
Joined: Sun Sep 09, 2007 3:49 pm

AbstractNpcInfo.java

Post by InShadow »

» Find Revision
L2J Revision Number: 2938
L2JDP Revision Number: 5983

I am just curious, why we need another parameter "L2Character attacker" in AbstractNpcInfo constructor, since this parameter is not used anywhere in this super class.

Code: Select all

     public AbstractNpcInfo(L2Character cha, L2Character attacker)    {        _isSummoned = cha.isShowSummonAnimation();        _x = cha.getX();        _y = cha.getY();        _z = cha.getZ();        _heading = cha.getHeading();        _mAtkSpd = cha.getMAtkSpd();        _pAtkSpd = cha.getPAtkSpd();        _runSpd = cha.getTemplate().baseRunSpd;        _walkSpd = cha.getTemplate().baseWalkSpd;        _swimRunSpd = _flRunSpd = _flyRunSpd = _runSpd;        _swimWalkSpd = _flWalkSpd = _flyWalkSpd = _walkSpd;    } 
Would be probably nicer to remove it. :)
User avatar
DrHouse
L2j Inner Circle
L2j Inner Circle
Posts: 912
Joined: Mon Jan 22, 2007 12:14 am
Location: Spain

Re: AbstractNpcInfo.java

Post by DrHouse »

Thanks, you are right. I have commited it plus a little fix I have detected after checking it again
Image

Leadership and management are not talk and talk, but talk and do

Proud of being a part of this project
Post Reply