Addition of fishing zones.
Addition of fish exp and sp. Give exp and sp after fishing. Missing baits added to L2PcInstance. Contributed by darky999.
This commit is contained in:
@ -43,6 +43,8 @@ public class L2Fish implements Cloneable
|
||||
private final double _gutsCheckProbability;
|
||||
private final double _cheatingProb;
|
||||
private final int _fishGrade;
|
||||
private static long _fishExp;
|
||||
private static long _fishSp;
|
||||
|
||||
public L2Fish(StatsSet set)
|
||||
{
|
||||
@ -63,6 +65,8 @@ public class L2Fish implements Cloneable
|
||||
_gutsCheckProbability = set.getDouble("gutsCheckProbability"); // TODO: Support needed.
|
||||
_cheatingProb = set.getDouble("cheatingProb"); // TODO: Support needed.
|
||||
_fishGrade = getGradeId(set.getString("fishGrade"));
|
||||
_fishExp = set.getLong("fishExp");
|
||||
_fishSp = set.getLong("fishSp");
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -222,6 +226,22 @@ public class L2Fish implements Cloneable
|
||||
_fishGroup = fg;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the fish Exp.
|
||||
*/
|
||||
public Long getExp()
|
||||
{
|
||||
return _fishExp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the fish Sp.
|
||||
*/
|
||||
public Long getSp()
|
||||
{
|
||||
return _fishSp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name the Group Name.
|
||||
* @return the fish Group Id.
|
||||
|
Reference in New Issue
Block a user