Commit to "tameness" name over "closeness" for pets, fix scripts
This commit is contained in:
@@ -53,7 +53,7 @@ public final class PetCommandHandler extends AbstractPacketHandler {
|
||||
}
|
||||
|
||||
if (Randomizer.nextInt(100) < petCommand.getProbability()) {
|
||||
pet.gainClosenessFullness(chr, petCommand.getIncrease(), 0, command);
|
||||
pet.gainTamenessFullness(chr, petCommand.getIncrease(), 0, command);
|
||||
chr.getMap().broadcastMessage(PacketCreator.commandResponse(chr.getId(), petIndex, false, command, false));
|
||||
} else {
|
||||
chr.getMap().broadcastMessage(PacketCreator.commandResponse(chr.getId(), petIndex, true, command, false));
|
||||
|
||||
@@ -81,7 +81,7 @@ public final class PetFoodHandler extends AbstractPacketHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
pet.gainClosenessFullness(chr, (pet.getFullness() <= 75) ? 1 : 0, 30, 1); // 25+ "emptyness" to get +1 closeness
|
||||
pet.gainTamenessFullness(chr, (pet.getFullness() <= 75) ? 1 : 0, 30, 1); // 25+ "emptyness" to get +1 tameness
|
||||
InventoryManipulator.removeFromSlot(c, InventoryType.USE, pos, (short) 1, false);
|
||||
} finally {
|
||||
useInv.unlockInventory();
|
||||
|
||||
@@ -419,7 +419,7 @@ public final class UseCashItemHandler extends AbstractPacketHandler {
|
||||
Pair<Integer, Boolean> pair = pet.canConsume(itemId);
|
||||
|
||||
if (pair.getRight()) {
|
||||
pet.gainClosenessFullness(player, pair.getLeft(), 100, 1, true);
|
||||
pet.gainTamenessFullness(player, pair.getLeft(), 100, 1, true);
|
||||
remove(c, position, itemId);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user