Removed regent count from homunculus functions.
Contributed by nasseka.
This commit is contained in:
@@ -67,6 +67,7 @@ public class RequestExEnchantHomunculusSkill implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
player.getVariables().set(PlayerVariables.HOMUNCULUS_UPGRADE_POINTS, points - 1);
|
player.getVariables().set(PlayerVariables.HOMUNCULUS_UPGRADE_POINTS, points - 1);
|
||||||
|
player.setSp(player.getSp() - SP_COST);
|
||||||
player.sendPacket(new ExEnchantHomunculusSkillResult(player, _slot, _skillNumber));
|
player.sendPacket(new ExEnchantHomunculusSkillResult(player, _slot, _skillNumber));
|
||||||
player.sendPacket(new ExHomunculusHPSPVP(player));
|
player.sendPacket(new ExHomunculusHPSPVP(player));
|
||||||
player.sendPacket(new ExShowHomunculusList(player));
|
player.sendPacket(new ExShowHomunculusList(player));
|
||||||
|
@@ -76,7 +76,7 @@ public class RequestExHomunculusInsert implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if ((player.getSp() >= SP_COST) && (spPoints < 10))
|
if ((player.getSp() >= SP_COST) && (spPoints < 10))
|
||||||
{
|
{
|
||||||
player.addExpAndSp(0, -SP_COST);
|
player.setSp(player.getSp() - SP_COST);
|
||||||
spPoints += 1;
|
spPoints += 1;
|
||||||
player.getVariables().set(PlayerVariables.HOMUNCULUS_SP_POINTS, spPoints);
|
player.getVariables().set(PlayerVariables.HOMUNCULUS_SP_POINTS, spPoints);
|
||||||
}
|
}
|
||||||
@@ -102,6 +102,8 @@ public class RequestExHomunculusInsert implements IClientIncomingPacket
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
player.getHomunculusList().refreshStats(true);
|
||||||
|
|
||||||
player.sendPacket(new ExShowHomunculusBirthInfo(player));
|
player.sendPacket(new ExShowHomunculusBirthInfo(player));
|
||||||
player.sendPacket(new ExHomunculusHPSPVP(player));
|
player.sendPacket(new ExHomunculusHPSPVP(player));
|
||||||
player.sendPacket(new ExHomunculusInsertResult(_type));
|
player.sendPacket(new ExHomunculusInsertResult(_type));
|
||||||
|
@@ -67,6 +67,7 @@ public class RequestExEnchantHomunculusSkill implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
player.getVariables().set(PlayerVariables.HOMUNCULUS_UPGRADE_POINTS, points - 1);
|
player.getVariables().set(PlayerVariables.HOMUNCULUS_UPGRADE_POINTS, points - 1);
|
||||||
|
player.setSp(player.getSp() - SP_COST);
|
||||||
player.sendPacket(new ExEnchantHomunculusSkillResult(player, _slot, _skillNumber));
|
player.sendPacket(new ExEnchantHomunculusSkillResult(player, _slot, _skillNumber));
|
||||||
player.sendPacket(new ExHomunculusHPSPVP(player));
|
player.sendPacket(new ExHomunculusHPSPVP(player));
|
||||||
player.sendPacket(new ExShowHomunculusList(player));
|
player.sendPacket(new ExShowHomunculusList(player));
|
||||||
|
@@ -76,7 +76,7 @@ public class RequestExHomunculusInsert implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if ((player.getSp() >= SP_COST) && (spPoints < 10))
|
if ((player.getSp() >= SP_COST) && (spPoints < 10))
|
||||||
{
|
{
|
||||||
player.addExpAndSp(0, -SP_COST);
|
player.setSp(player.getSp() - SP_COST);
|
||||||
spPoints += 1;
|
spPoints += 1;
|
||||||
player.getVariables().set(PlayerVariables.HOMUNCULUS_SP_POINTS, spPoints);
|
player.getVariables().set(PlayerVariables.HOMUNCULUS_SP_POINTS, spPoints);
|
||||||
}
|
}
|
||||||
@@ -102,6 +102,8 @@ public class RequestExHomunculusInsert implements IClientIncomingPacket
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
player.getHomunculusList().refreshStats(true);
|
||||||
|
|
||||||
player.sendPacket(new ExShowHomunculusBirthInfo(player));
|
player.sendPacket(new ExShowHomunculusBirthInfo(player));
|
||||||
player.sendPacket(new ExHomunculusHPSPVP(player));
|
player.sendPacket(new ExHomunculusHPSPVP(player));
|
||||||
player.sendPacket(new ExHomunculusInsertResult(_type));
|
player.sendPacket(new ExHomunculusInsertResult(_type));
|
||||||
|
Reference in New Issue
Block a user