Removed regent count from homunculus functions.

Contributed by nasseka.
This commit is contained in:
MobiusDevelopment 2021-06-07 22:22:11 +00:00
parent b597d83f70
commit 02ecd10bb6
4 changed files with 10 additions and 4 deletions

View File

@ -67,6 +67,7 @@ public class RequestExEnchantHomunculusSkill implements IClientIncomingPacket
}
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 ExHomunculusHPSPVP(player));
player.sendPacket(new ExShowHomunculusList(player));

View File

@ -76,7 +76,7 @@ public class RequestExHomunculusInsert implements IClientIncomingPacket
{
if ((player.getSp() >= SP_COST) && (spPoints < 10))
{
player.addExpAndSp(0, -SP_COST);
player.setSp(player.getSp() - SP_COST);
spPoints += 1;
player.getVariables().set(PlayerVariables.HOMUNCULUS_SP_POINTS, spPoints);
}
@ -102,8 +102,10 @@ public class RequestExHomunculusInsert implements IClientIncomingPacket
break;
}
}
player.getHomunculusList().refreshStats(true);
player.sendPacket(new ExShowHomunculusBirthInfo(player));
player.sendPacket(new ExHomunculusHPSPVP(player));
player.sendPacket(new ExHomunculusInsertResult(_type));
}
}
}

View File

@ -67,6 +67,7 @@ public class RequestExEnchantHomunculusSkill implements IClientIncomingPacket
}
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 ExHomunculusHPSPVP(player));
player.sendPacket(new ExShowHomunculusList(player));

View File

@ -76,7 +76,7 @@ public class RequestExHomunculusInsert implements IClientIncomingPacket
{
if ((player.getSp() >= SP_COST) && (spPoints < 10))
{
player.addExpAndSp(0, -SP_COST);
player.setSp(player.getSp() - SP_COST);
spPoints += 1;
player.getVariables().set(PlayerVariables.HOMUNCULUS_SP_POINTS, spPoints);
}
@ -102,8 +102,10 @@ public class RequestExHomunculusInsert implements IClientIncomingPacket
break;
}
}
player.getHomunculusList().refreshStats(true);
player.sendPacket(new ExShowHomunculusBirthInfo(player));
player.sendPacket(new ExHomunculusHPSPVP(player));
player.sendPacket(new ExHomunculusInsertResult(_type));
}
}
}