|
|
|
|
@ -48,7 +48,7 @@ public class PickpocketUtils {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (((IMixinEntityPlayer)player).get_last_pickpocket_attempt() > (int)(System.currentTimeMillis() / 1000L - 4)) {
|
|
|
|
|
if (((IMixinEntityPlayer)player).get_last_pickpocket_attempt() > (int)(System.currentTimeMillis() / 1000L - 1) || ((ILootableEntity)(Object)target).get_last_pickpocket() > (int)(System.currentTimeMillis() / 1000L - 4)) {
|
|
|
|
|
if (random.nextInt(10000) == 1) {
|
|
|
|
|
player.addChatMessage(new ChatComponentTranslation("pickpocket.cooldown_alt"));
|
|
|
|
|
} else {
|
|
|
|
|
@ -115,7 +115,7 @@ public class PickpocketUtils {
|
|
|
|
|
|
|
|
|
|
DropTable table = new DropTable();
|
|
|
|
|
DropContext[] default_context = new DropContext[] {DropContext.PICKPOCKET};
|
|
|
|
|
table.drop_list.add(new SingleItemDrop(LOTRMod.silverCoin, null, 1.0F, 8, 16, false, false, default_context));
|
|
|
|
|
table.drop_list.add(new SingleItemDrop(LOTRMod.silverCoin, null, 1.0F, 8, 32, false, false, default_context));
|
|
|
|
|
if (entity instanceof LOTREntityMan) {
|
|
|
|
|
table.drop_list.add(new SingleItemDrop(Items.cooked_chicken, null, 0.2F, 1, 3, false, false, default_context));
|
|
|
|
|
table.drop_list.add(new SingleItemDrop(Items.book, null, 0.2F, 1, 3, false, false, default_context));
|
|
|
|
|
|