<commit_before>coffee = require 'coffee-script'
path = require('path').resolve(__dirname, '../../bw/data/items.coffee')
eval(coffee.compile(require('fs').readFileSync(path, 'utf8'), bare: true))

makeTypeResistBerry 'Roseli Berry', 'Fairy'
makeBoostOnTypeItem 'Luminous Moss', 'Water', specialDefense: 1
makeBoostOnTypeItem 'Snowball', 'Ice', attack: 1

makeItem "Weakness Policy", ->
  this::afterBeingHit = (move, user) ->
    if !move.isNonDamaging() &&
        move.typeEffectiveness(@battle, user, @pokemon) > 1
      @pokemon.boost(attack: 2, specialAttack: 2)
      @pokemon.useItem()<commit_msg>XY: Implement Pixie Plate.<commit_after>coffee = require 'coffee-script'
path = require('path').resolve(__dirname, '../../bw/data/items.coffee')
eval(coffee.compile(require('fs').readFileSync(path, 'utf8'), bare: true))

makeTypeResistBerry 'Roseli Berry', 'Fairy'
makeBoostOnTypeItem 'Luminous Moss', 'Water', specialDefense: 1
makeBoostOnTypeItem 'Snowball', 'Ice', attack: 1
makePlateItem 'Pixie Plate', 'Fairy'

makeItem "Weakness Policy", ->
  this::afterBeingHit = (move, user) ->
    if !move.isNonDamaging() &&
        move.typeEffectiveness(@battle, user, @pokemon) > 1
      @pokemon.boost(attack: 2, specialAttack: 2)
      @pokemon.useItem()
{'fraction_non_alphanumeric': 0.1664012738853503, 'fraction_numerical': 0.009554140127388535, 'mean_word_length': 5.316582914572864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '213424', 'n_tokens_mistral': 468, 'n_tokens_neox': 428, 'n_words': 90}