export const TRINKET_EFFECTS = {
  /// *** NOTE - Most "taggable" effects are triggered by an event, or a tick

  // Scopes - Allow for a chance for trinkets to be dropped when killing mobs
  "pb_gat:trinket_scout": { taggable: true },
  "pb_gat:trinket_lucky_scope": { taggable: true },
  "pb_gat:trinket_relic_scope": { effects: { strength: 1 }, taggable: true },
  "pb_gat:trinket_prophecy_scope": { effects: { strength: 1 }, taggable: true },

  // Boss trinkets
  "pb_gat:trinket_boss_dragon": { effects: { pearlCast: 1 }, taggable: true },
  "pb_gat:trinket_boss_warden": { effects: { strength: 4 }, cap: 4, taggable: true },
  "pb_gat:trinket_boss_wither": { taggable: true },

  // Add potion effects
  "pb_gat:trinket_speed": { effects: { speed: 1 } },
  "pb_gat:trinket_drake_pendant": { effects: { speed: 2 } },
  "pb_gat:trinket_water": { effects: { conduit_power: 1 }, cap: 1 },
  "pb_gat:trinket_leviathan_pearl": { effects: { conduit_power: 1, speed: 2 }, cap: 1 },
  "pb_gat:trinket_broken_blade": { effects: { strength: 1 }, taggable: true },
  "pb_gat:trinket_jump": { effects: { jump_boost: 1 }, taggable: true },
  "pb_gat:trinket_feather": { effects: { slow_falling: 1 }, cap: 1 },
  "pb_gat:trinket_fire": { effects: { fire_resistance: 1 }, cap: 1 },
  "pb_gat:trinket_weaving": { effects: { weaving: 1 }, cap: 1 },
  "pb_gat:trinket_invis": { effects: { invis: 1 } }, // Also checks for movement and can play animation
  "pb_gat:trinket_phantom_veil": { effects: { invis: 2 } }, // Invis + Armour if stacked
  "pb_gat:trinket_spectral_shard": { effects: { invis: 3 } }, // Invis + Armour default
  "pb_gat:trinket_ghost_feather": { effects: { invis: 3, slow_falling: 1 }, cap: 1 }, // Invis + Armour default

  // Immune potion effects
  "pb_gat:trinket_hunger": { removes: ["hunger"] },
  "pb_gat:trinket_nausea": { removes: ["nausea"] },
  "pb_gat:trinket_poison": { removes: ["poison", "fatal_poison"] },
  "pb_gat:trinket_fatigue": { removes: ["mining_fatigue"] },
  "pb_gat:trinket_wither": { removes: ["wither"] },
  "pb_gat:trinket_remedy_vial": { removes: ["poison", "fatal_poison", "hunger"] },
  "pb_gat:trinket_withered_eye": { removes: ["wither", "mining_fatigue"] },
  "pb_gat:trinket_miracle_eye": { removes: ["wither", "mining_fatigue", "poison", "fatal_poison", "hunger"] },
  "pb_gat:trinket_nebula_blossom": { removes: ["wither", "mining_fatigue", "nausea"], effects: { fire_resistance: 1 }, cap: 1 },
  "pb_gat:trinket_mythril_cloak": { handler: "handleFallDamage", removes: ["poison", "fatal_poison", "hunger"], effects: { weaving: 1 }, cap: 1 },
  "pb_gat:trinket_star_tincture": { removes: ["poison", "fatal_poison", "hunger", "nausea"], effects: { fire_resistance: 1 }, cap: 1 },
  "pb_gat:trinket_dragon_hide": { handler: "handleFallDamage", removes: ["wither", "mining_fatigue"], effects: { weaving: 1 }, cap: 1 },
  "pb_gat:trinket_ward_constellation": { removes: ["nausea"], effects: { fire_resistance: 1 }, cap: 1 },
  "pb_gat:trinket_cosmic_weave": { handler: "handleFallDamage", removes: ["nausea"], effects: { fire_resistance: 1, weaving: 1 }, cap: 1 },
  "pb_gat:trinket_pocket_singularity": { handler: "handleFallDamage", removes: ["hunger", "nausea", "poison", "fatal_poison", "mining_fatigue", "wither"], effects: { fire_resistance: 1 } },

  // Other effects
  "pb_gat:trinket_food": { taggable: true }, // Gives extra food buff when eating
  //"pb_gat:trinket_eat": { effects: { eat: 1 }, taggable: true }, // Auto eat food **ON HOLD UNTIL WE CAN GET ACCESS TO PLAYER FOOD LEVEL
  "pb_gat:trinket_eat": { taggable: true }, // Placeholder function - higher food buff when eating

  // Utility
  "pb_gat:trinket_light": { effects: { light: 1 }, taggable: true },
  "pb_gat:trinket_light_glow": { effects: { light: 2 }, taggable: true },
  "pb_gat:trinket_light_sniffer": { effects: { light: 1, ores: 2 }, taggable: true },
  "pb_gat:trinket_light_golden": { effects: { light: 2, ores: 2 }, taggable: true },
  "pb_gat:trinket_light_black": { effects: { light: 2, ores: 2, smelt: 2, magnet: 2 }, taggable: true },
  "pb_gat:trinket_light_big_sniffer": { effects: { light: 3, ores: 3 }, taggable: true },
  "pb_gat:trinket_light_lucky": { effects: { light: 3, ores: 3, magnet: 3, smelt: 3 }, taggable: true },
  "pb_gat:trinket_smelt": { effects: { smelt: 1 }, taggable: true },
  "pb_gat:trinket_pocket_inductor": { effects: { smelt: 2 }, taggable: true },
  "pb_gat:trinket_ores": { effects: { ores: 1 }, taggable: true },
  "pb_gat:trinket_golden_talisman": { effects: { ores: 2 }, taggable: true },
  "pb_gat:trinket_magnet": { effects: { magnet: 1 } },
  "pb_gat:trinket_shulker_coil": { effects: { magnet: 2 } },
  "pb_gat:trinket_gravity_resonator": { effects: { magnet: 2, smelt: 2 } },
  "pb_gat:trinket_fortune_generator": { effects: { magnet: 2, smelt: 2 }, taggable: true },


  // Combat and Movement
  "pb_gat:trinket_fall": { handler: "handleFallDamage" },
  "pb_gat:trinket_d_jump": { handler: "handleDoubleJump", taggable: true, cap: 1 },
  "pb_gat:trinket_crystal_wings": { handler: "handleDoubleJump", taggable: true }, // Gives extra food buff when eating
  "pb_gat:trinket_low_health": { effects: { low_health: 1 } },
  "pb_gat:trinket_molten_heart": { effects: { low_health: 2 } },
  "pb_gat:trinket_loot": { taggable: true },
  "pb_gat:trinket_wish_coin": { taggable: true },
  "pb_gat:trinket_knockback": { taggable: true },
  "pb_gat:trinket_heavy_dumbell": { taggable: true },
  "pb_gat:trinket_iron_core": { taggable: true, effects: { low_health: 2 } },
  "pb_gat:trinket_tiny_asteroid": { taggable: true, effects: { low_health: 2, invis: 2 } },
  "pb_gat:trinket_teleport": { taggable: true },
  "pb_gat:trinket_q_frog_leg": { taggable: true, effects: { jump_boost: 1 } },
  "pb_gat:trinket_thorns": { taggable: true },
  "pb_gat:trinket_comet_veil": { taggable: true, effects: { invis: 2 } },
  "pb_gat:trinket_razor_cable": { taggable: true },
  "pb_gat:trinket_xp": { taggable: true },
  "pb_gat:trinket_coin_amulet": { taggable: true },
  "pb_gat:trinket_veteran_belt": { taggable: true },
  "pb_gat:trinket_root": { taggable: true },
  "pb_gat:trinket_silk_springs": { handler: "handleFallDamage", effects: { weaving: 1 }, cap: 1 },
  "pb_gat:trinket_spectral_steel": { taggable: true, effects: { low_health: 2, invis: 3, slow_falling: 1 }, cap: 2 },
  "pb_gat:trinket_toxic_plasma": { taggable: true, effects: { invis: 3, slow_falling: 1 }, cap: 2 },
  "pb_gat:trinket_draconic_conduit": { taggable: true, effects: { jump_boost: 1, conduit_power: 1, speed: 2 }, cap: 2 },
  "pb_gat:trinket_clockwork_wings": { handler: "handleDoubleJump", taggable: true, effects: { jump_boost: 1 }, cap: 2 },
  "pb_gat:trinket_typhoon_wings": { handler: "handleDoubleJump", taggable: true, effects: { speed: 2, conduit_power: 2 }, cap: 2 },
  "pb_gat:trinket_void_emitter": { taggable: true, effects: { low_health: 3, invis: 3, slow_falling: 1 } },
  "pb_gat:trinket_wings_time": { handler: "handleDoubleJump", taggable: true, effects: { jump_boost: 1, speed: 2, conduit_power: 1 }, cap: 2 },
  "pb_gat:trinket_infinity_cube": { effects: { flight: 1 }, taggable: true },

  // TIER 5 - Combines most effects
  "pb_gat:trinket_pocket_universe": { handler: "handleFallDamage", removes: ["hunger", "nausea", "poison", "fatal_poison", "mining_fatigue", "wither"], effects: { fire_resistance: 1, flight: 1 }, taggable: true, cap: 1 },
  "pb_gat:trinket_light_supernova": { effects: { light: 3, ores: 3, magnet: 3, smelt: 3, pearlCast: 1 }, taggable: true, cap: 1 },
  "pb_gat:trinket_ruinous_blossom": { effects: { low_health: 3, invis: 3, slow_falling: 1 }, taggable: true, cap: 1 },
  "pb_gat:trinket_antimatter_wings": { handler: "handleDoubleJump", effects: { jump_boost: 1, speed: 2, conduit_power: 1, strength: 4 }, taggable: true, cap: 1 },

};