Chicken Knife (Final Fantasy V)

The Chicken Knife is a weapon in Final Fantasy V, obtainable in Moore in the merged world. It is the strongest knife in the game, and also the strongest weapon for regular physical attacks in most practical scenarios, due to the wielder's agility being factored in the damage formula.
==Obtained==
The Chicken Knife is found in Moore in the merged world. The player has to choose between it and the Brave Blade. The player must head to the left of the inn and go as far as possible, then go down to two barrels in a line next to a tree, then head in front of the barrels and descend into the small building and into the woods. The directions here are: down, right, down, left, up, right, down. On the last direction, the party freezes and the screen goes fuzzy before two boxes and an old man appear. He tells the player to pick a box, the options being the Brave Blade on his left, and the Chicken Knife on his right. In the SNES and PS versions both can be obtained via the item transformation bug.
If the player chooses the Chicken Knife, the man turns into a skeleton and walks away while making chicken sounds. In the Japanese text he just has an unusual laugh.
==Mechanics==
===Overview===
The weapon's attack power scales with the number of escapes from battle, capping at 127 power at 254 escapes. When attacking with it, it has a 25% chance of making the party run from the fight, equivalent to the Thief's Flee command, unless the fight cannot be escaped from, in which case the attacker's turn is wasted. This can be prevented by using commands such as !RapidFire, !Mug, or !Aim, because only one ability per command can be activated at the same time (the auto-escape trait counts as the !Flee ability, and the ability from the command gets priority). Likewise, if the player equips the Chicken Knife in a character's left hand, and something like a Twin Lance in the same character's right hand, the escape effect can also be avoided even when using a simple physical attack, because !Attack itself is a command, and the always-occurring Twin Lance second attack counts as a special ability, and the order of attacks features the right hand first. This oversight was fixed in the Pixel Remaster version of the game.
At least in the Nintendo Switch Pixel Remaster, when using the Chicken Knife with !RapidFire, it always deals 20x its Attack bonus in damage if both the target and the user are in the front row, 10x Attack bonus if one is in the front and the other in the back row, or 5x when both are in the back row. 
=== Damage formula ===
The damage formula for the Chicken Knife is
:(Attack - Target's~Defense) \times ((Level \times Strength)//128 + (Level \times Agility)//128 + 2)
where:
* Attack is the attack value of the Chicken Knife (0 \sim 127), effectively number\_of\_runs // 2.
**number\_of\_runs is the number of escapes.
**// 2 represents an integer division by 2, effectively a 1-bit right shift.
*Target's Defense is the physical defense of the target.
*Level is the level of the Chicken Knife wielder, capped at 99 (i.e., levels 100 \sim 255, achievable with !Mix or !Drink, count as 99).
*Strength is the strength of the Chicken Knife wielder, capped at 99.
*Agility is the agility of the Chicken Knife wielder, capped at 99.
*// 128 represents an integer division by 128, effectively a 7-bit right shift.
* The +2 at the end of the multiplier serves the purpose of making such multiplier no smaller than 2, because:
** (Level \times Strength)//128 is 0 if (Level \times Strength) is \leq 128.
** (Level \times Agility)//128 is 0 if (Level \times Agility) is \leq 128.
A level 99 wielder of a maxed-out Chicken Knife can get their strength and agility boosted to 99 by Power Song (Power Drink does not work, as it is bugged), and Speed Song, respectively. The maximum damage of a physical attack against a target with 0 physical defense becomes 19558 (before the 9999 rescaling). With !RapidFire, each hit deals half damage (rounded down). Therefore, the max damage of each of the 4 hits becomes 9779, irrespective of the target's physical defense, which is ignored by !RapidFire.
== Bugs and glitches ==
=== Damage overflow ===
The !Dance ability triggers Sword Dance 25% of the time. Sword Dance is a physical attack that is four times stronger than a regular attack. As the maximum damage of a regular hit with the Chicken Knife is 19558, the theoretical maximum damage of a Sword Dance hit is 78232 (capped at 9999). However, due to an integer overflow that occurs before the 9999 cap is applied, only the value modulo 65536 counts. As such, if the uncapped damage is \geq 65536, only the excess part of it will be considered, resulting in lower damage than expected. Unlike overflows in other games, most notably the damage overflow glitch in Final Fantasy VII, the Chicken Knife damage does not become negative, because the corresponding variable is treated as an unsigned integer. This bug exists in the SNES, PS, and GBA versions of Final Fantasy V.
=== Level 255 + Hero Song overflow ===
Any character can have their level boosted to 255 for the duration of a battle by repeatedly applying the Dragon Power mix, among other methods. If a level 255 Chicken Knife wielder is exposed to the Hero Song, their nominal level will remain 255 throughout the battle (as confirmed by Scan), but the effective level used in the Chicken Knife's damage formula will overflow and restart from 1. As such, it is possible for a character with 99 strength and 99 agility to still deal low damage, by virtue of the effective level being low. Unlike overflows in other games the level does not become negative, because the corresponding variable is treated as an unsigned integer. This bug exists in the SNES, PS, and GBA versions of Final Fantasy V.
=== Berserker softlock ===
280px|right|thumb
In the SNES version, equipping the Chicken Knife on a Berserker can softlock the game. Normally, a party of four Berserkers cannot escape from battle. If a Berserker wielding the Chicken Knife attacks, and the auto-escape trait triggers, the party will not escape and any future damage becomes non-existent, making the battle unable to end.
The glitch was fixed in subsequent releases, starting from the PS version.
=== Agility bug ===
The Chicken Knife is unaffected by the agility bug that prevents knives, bows, boomerangs, ninja swords, and whips from fully benefiting from the Agility bonus in the multiplier portion of the damage formula.
=== Item transformation ===
In the SNES and PS versions unlimited copies of the Chicken Knife can be obtained via the item transformation bug, by transforming Rising Suns. That makes it possible to own both a Brave Blade, and a Chicken Knife, if the player chooses the Brave Blade in Moore. If the player picks the Chicken Knife, the Brave Blade becomes unattainable, because it is not possible to get a Brave Blade via the item transformation bug. That is the case because the Soot, which is the only item that morphs into a Brave Blade, is not equippable, which violates a pre-condition for the item transformation. The Chicken Knife can be transformed into a Soot via the same bug. However, it is impossible to transform the resulting Soot into a Brave Blade, because items obtained via item transformation must be unequipped and re-equipped before they can be transformed again, and the Soot is unequippable.
== Damage comparisons ==
=== Brave Blade ===
A maxed out Chicken Knife deals more damage than a maxed out Brave Blade in most scenarios. The damage formula for a maxed out Brave Blade is:
:(150 - Target's~Defense) \times ((Level * Strength)//128 + 2)
where the meaning of Target's Defense, Level, Strength, and // does not change with respect to the Chicken Knife damage formula.
Brave Blade misses out on the (Level \times Agility)//128 bonus in the multiplier, but provides a +5 strength, only relevant if the wielder does not in-battle max-out the strength stat via Power Song. More often than not, the agility bonus in the Chicken Knife formula overpowers the +23 attack (i.e., 150 - 127), and the +5 strength of the Brave Blade. The only exceptions are when the physical defense of the target is very high (e.g., Omega or Prototype), and/or the agility of the wielder is very low. When using !RapidFire, which ignores the target's physical defense, a Chicken Knife wielder with moderate agility will always deal more damage than a same-level and same-base-strength Brave Blade wielder, even taking into account the +5 strength from the Brave Blade.
=== Ultima Weapon ===
The Advance release adds new weapons with a higher attack value than a maxed out Brave Blade. The most notable is the Ultima Weapon with an attack value of 177 (the highest in the game), and +2 bonuses to the strength, agility, and vitality/stamina stats of the wielder. With the exception of the different attack value, and the different strength bonus, the damage formula for the Ultima Weapon is identical to the Brave Blade's. As such, when considering the difference in damage output between the Chicken Knife and the Ultima Weapon, the same conclusions apply. Since the Ultima Weapon has a higher attack value than a maxed out Brave Blade, the agility value the wielder needs to have for the Chicken Knife to dominate is higher. However, the agility value a Freelancer inherits from a mastered Thief is more than enough for the Chicken Knife to deal more damage than the Ultima Weapon in most scenarios.
Category:Weapons in Final Fantasy V