Rename and clean up MapleFamilyEntitlement

This commit is contained in:
P0nk
2021-09-09 21:17:31 +02:00
parent 3370152d58
commit 0c8bef6842
5 changed files with 29 additions and 29 deletions

View File

@@ -2,7 +2,7 @@ package net.server.channel.handlers;
import client.Character;
import client.Client;
import client.MapleFamilyEntitlement;
import client.FamilyEntitlement;
import client.MapleFamilyEntry;
import config.YamlConfig;
import net.AbstractPacketHandler;
@@ -30,8 +30,8 @@ public class FamilySummonResponseHandler extends AbstractPacketHandler {
if(accept && inviter.getMap() == map) { //cancel if inviter has changed maps
c.getPlayer().changeMap(map, map.getPortal(0));
} else {
inviterEntry.refundEntitlement(MapleFamilyEntitlement.SUMMON_FAMILY);
inviterEntry.gainReputation(MapleFamilyEntitlement.SUMMON_FAMILY.getRepCost(), false); //refund rep cost if declined
inviterEntry.refundEntitlement(FamilyEntitlement.SUMMON_FAMILY);
inviterEntry.gainReputation(FamilyEntitlement.SUMMON_FAMILY.getRepCost(), false); //refund rep cost if declined
inviter.sendPacket(PacketCreator.getFamilyInfo(inviterEntry));
inviter.dropMessage(5, c.getPlayer().getName() + " has denied the summon request.");
}